fastlane: Deliver does not work with multiple-team iTunes Connect account
New Issue Checklist
- Updated fastlane to the latest version
- I have read the Contribution Guidelines
Issue Description
Trying to use deliver using and Apple Id which is on several team (10 for that matters).
I am calling deliver passing my iTunes Connect accountId (numerical) in the team_id parameter and my Apple Developer Team Id in the dev_portal_team_idparameter (alphanumerical one).
Despite #4746 Deliver fais with error : `our Apple ID account is attached to other iTunes providers. You will need to specify which provider you intend to submit content to by using the -itc_provider command.``
Complete output when running fastlane, including the stack trace and command used
¨¨¨
00:02:34.049 [09:59:35]: ---------------------
00:02:34.049 [09:59:35]: --- Step: deliver ---
00:02:34.050 [09:59:35]: ---------------------
00:02:34.066 [09:59:35]: Login to iTunes Connect (nicolas.braun@applidium.com)
00:02:36.964 [09:59:37]: Login successful
00:02:37.569
00:02:37.571 +--------------------+--------------------------------------------------+
00:02:37.571 | deliver 1.12.0 Summary |
00:02:37.572 +--------------------+--------------------------------------------------+
00:02:37.572 | username | nicolas.braun@applidium.com |
00:02:37.572 | team_id | ITUNES_TEAM_ID |
00:02:37.572 | dev_portal_team_id | APPLE_DEV_TEAM_ID |
00:02:37.573 | team_name | NAME |
00:02:37.573 | app_identifier | BUNDLE |
00:02:37.573 | submit_for_review | false |
00:02:37.573 | automatic_release | false |
00:02:37.573 | metadata_path | fastlane/XX/metadata |
00:02:37.573 | screenshots_path | fastlane/XX/screenshots |
00:02:37.574 | skip_screenshots | true |
00:02:37.574 | skip_metadata | true |
00:02:37.574 | force | true |
00:02:37.574 | ipa | /Users/slave/Jenkins/workspace/XX/XX.ipa |
00:02:37.574 | app_version | 6.6.3 |
00:02:37.574 | skip_binary_upload | false |
00:02:37.575 +--------------------+--------------------------------------------------+
00:02:37.575
00:02:37.575 [09:59:38]: Making sure the latest version on iTunes Connect matches '6.6.3' from the ipa file...
INFO [2016-06-01 11:10:09.81]: Making sure the latest version on iTunes Connect matches '6.6.3' from the ipa file...
INFO [2016-06-01 11:10:11.58]: '6.6.3' is the latest version on iTunes Connect
INFO [2016-06-01 11:10:13.19]: Uploading binary to iTunes Connect
INFO [2016-06-01 11:10:13.39]: Wrote XML data to '/tmp/507107090.itmsp'
INFO [2016-06-01 11:10:13.39]: Going to upload updated app to iTunes Connect
INFO [2016-06-01 11:10:13.39]: This might take a few minutes, please don't interrupt the script
DEBUG [2016-06-01 11:10:13.47]: /Applications/Xcode.app/Contents/Applications/Application\ Loader.app/Contents/itms/java/bin/java -Djava.ext.dirs=/Applications/Xcode.app/Contents/Applications/Application\ Loader.app/Contents/itms/java/lib/ext -XX:NewSize=2m -Xms32m -Xmx1024m -Xms1024m -Djava.awt.headless=true -Dsun.net.http.retryPost=false -classpath /Applications/Xcode.app/Contents/Applications/Application\ Loader.app/Contents/itms/lib/itmstransporter-launcher.jar com.apple.transporter.Application -m upload -u nicolas.braun@applidium.com -p YourPassword -f /tmp/507107090.itmsp -t Signiant -k 100000 2>&1
DEBUG [2016-06-01 11:10:17.22]: [Transporter]: INFO: Transporter is searching for updated software components.
DEBUG [2016-06-01 11:10:18.54]: [Transporter]: INFO: Transporter is up-to-date.
DEBUG [2016-06-01 11:10:18.78]: [Transporter]: INFO: Logging configured successfully.
DEBUG [2016-06-01 11:10:18.78]: [Transporter]: DEBUG: Attempting refresh of configuration data from https://contentdelivery.itunes.apple.com/transporter/Defaults.properties
DEBUG [2016-06-01 11:10:18.94]: [Transporter]: DEBUG: Configuration refresh successful.
DEBUG [2016-06-01 11:10:18.95]: [Transporter]: DEBUG: Saving configuration to local path: /Users/nicolas.braun/.itmstransporter/Defaults.properties
DEBUG [2016-06-01 11:10:18.95]: [Transporter]: INFO: iTMSTransporter : iTunes Store Transporter [1.8.8]
DEBUG [2016-06-01 11:10:18.95]: [Transporter]: INFO: OS identifier: Mac OS X 10.11.5 (x86_64); jvm=24.80-b07; jre=1.7.0-internal-root_2015_05_12_09_52-b00
DEBUG [2016-06-01 11:10:18.95]: [Transporter]: INFO: Memory: [JVM] 884M free, 982M total, 982M max [System] (Physical) 125M free, 8192M total (Swap) 1085M free, 4096M total
DEBUG [2016-06-01 11:10:18.96]: [Transporter]: INFO: Upload mode selected.
DEBUG [2016-06-01 11:10:18.97]: [Transporter]: INFO: Examining the package at: /tmp/507107090.itmsp
DEBUG [2016-06-01 11:10:18.97]: [Transporter]: INFO: Ensuring that package has well formed metadata file...
DEBUG [2016-06-01 11:10:18.97]: [Transporter]: DEBUG: Getting case-sensitive metadata xml filename...
DEBUG [2016-06-01 11:10:18.97]: [Transporter]: INFO: Gathering the list of valid files from the package ...
DEBUG [2016-06-01 11:10:18.97]: [Transporter]: DEBUG: 0483c647d731eed58fbfd8c44e78ebb3.ipa will be verified by Apple's web service to determine if it is a valid file.
DEBUG [2016-06-01 11:10:18.97]: [Transporter]: DEBUG: metadata.xml will be verified by Apple's web service to determine if it is a valid file.
DEBUG [2016-06-01 11:10:18.97]: [Transporter]: INFO: Finished gathering the list of valid files from the package.
DEBUG [2016-06-01 11:10:18.97]: [Transporter]: DEBUG: Case-sensitive metadata filename is: metadata.xml
DEBUG [2016-06-01 11:10:19.03]: [Transporter]: INFO: Performing authentication of package 507107090.itmsp ...
DEBUG [2016-06-01 11:10:19.03]: [Transporter]: DBG-X: Memory: [JVM] 874M free, 982M total, 982M max [System] (Physical) 113M free, 8192M total (Swap) 1085M free, 4096M total
DEBUG [2016-06-01 11:10:19.03]: [Transporter]: DBG-X: Memory: [JVM] 874M free, 982M total, 982M max [System] (Physical) 113M free, 8192M total (Swap) 1085M free, 4096M total
DEBUG [2016-06-01 11:10:19.03]: [Transporter]: DBG-X: Using operation named: authenticateForSession
DEBUG [2016-06-01 11:10:19.03]: [Transporter]: DBG-X: Apple's web service operation input parameters:
DEBUG [2016-06-01 11:10:19.03]: [Transporter]: DBG-X: parameter Application = iTMSTransporter
DEBUG [2016-06-01 11:10:19.03]: [Transporter]: DBG-X: parameter BaseVersion = 1.8.8
DEBUG [2016-06-01 11:10:19.03]: [Transporter]: DBG-X: parameter OSIdentifier = Mac OS X 10.11.5 (x86_64); jvm=24.80-b07; jre=1.7.0-internal-root_2015_05_12_09_52-b00
DEBUG [2016-06-01 11:10:19.04]: [Transporter]: DBG-X: parameter Password = **hidden value**
DEBUG [2016-06-01 11:10:19.04]: [Transporter]: DBG-X: parameter TransporterArguments = -m upload -u nicolas.braun@applidium.com -p **hidden value** -f /tmp/507107090.itmsp -t Signiant -k 100000
DEBUG [2016-06-01 11:10:19.04]: [Transporter]: DBG-X: parameter Username = nicolas.braun@applidium.com
DEBUG [2016-06-01 11:10:19.04]: [Transporter]: DBG-X: parameter Version = 1.8.8
DEBUG [2016-06-01 11:10:19.04]: [Transporter]: DBG-X: parameter iTMSTransporterMode = upload
DEBUG [2016-06-01 11:10:19.04]: [Transporter]: INFO: id = 20160601111019-547
DEBUG [2016-06-01 11:10:19.82]: [Transporter]: DBG-X: Apple's web service operation return value:
DEBUG [2016-06-01 11:10:19.82]: [Transporter]: DBG-X: parameter SessionId = CIanDBIQPFVCjdDpQ1WZAyO49Rdp2Q==
DEBUG [2016-06-01 11:10:19.82]: [Transporter]: DBG-X: parameter SharedSecret = 56127ce5-828d-417d-a0cf-90a478a6133d
DEBUG [2016-06-01 11:10:19.82]: [Transporter]: DBG-X: Deflated 451 bytes to 392
DEBUG [2016-06-01 11:10:19.82]: [Transporter]: DBG-X: Using operation named: validateMetadata
DEBUG [2016-06-01 11:10:19.82]: [Transporter]: DBG-X: Apple's web service operation input parameters:
DEBUG [2016-06-01 11:10:19.82]: [Transporter]: DBG-X: parameter Application = iTMSTransporter
DEBUG [2016-06-01 11:10:19.82]: [Transporter]: DBG-X: parameter BaseVersion = 1.8.8
DEBUG [2016-06-01 11:10:19.82]: [Transporter]: DBG-X: parameter Files = [0483c647d731eed58fbfd8c44e78ebb3.ipa, metadata.xml]
DEBUG [2016-06-01 11:10:19.82]: [Transporter]: DBG-X: parameter Metadata = <?xml version="1.0" encoding="UTF-8"?>
DEBUG [2016-06-01 11:10:19.83]: [Transporter]: DBG-X: parameter MetadataChecksum = 350463776e957930299b68ba86622432
DEBUG [2016-06-01 11:10:19.83]: [Transporter]: DBG-X: parameter MetadataCompressed = (suppressed)
DEBUG [2016-06-01 11:10:19.84]: [Transporter]: DBG-X: parameter OSIdentifier = Mac OS X 10.11.5 (x86_64); jvm=24.80-b07; jre=1.7.0-internal-root_2015_05_12_09_52-b00
DEBUG [2016-06-01 11:10:19.84]: [Transporter]: DBG-X: parameter PackageName = 507107090.itmsp
DEBUG [2016-06-01 11:10:19.84]: [Transporter]: DBG-X: parameter PackageSize = 30718048
DEBUG [2016-06-01 11:10:19.84]: [Transporter]: DBG-X: parameter Throttle = 100000
DEBUG [2016-06-01 11:10:19.84]: [Transporter]: DBG-X: parameter TransporterArguments = -m upload -u nicolas.braun@applidium.com -p **hidden value** -f /tmp/507107090.itmsp -t Signiant -k 100000
DEBUG [2016-06-01 11:10:19.84]: [Transporter]: DBG-X: parameter Username = nicolas.braun@applidium.com
DEBUG [2016-06-01 11:10:19.84]: [Transporter]: DBG-X: parameter Version = 1.8.8
DEBUG [2016-06-01 11:10:19.84]: [Transporter]: DBG-X: parameter iTMSTransporterMode = upload
DEBUG [2016-06-01 11:10:19.84]: [Transporter]: INFO: id = 20160601111019-608
DEBUG [2016-06-01 11:10:33.56]: [Transporter]: DBG-X: Apple's web service operation return value:
DEBUG [2016-06-01 11:10:33.56]: [Transporter]: DBG-X: parameter ErrorMessage = Your Apple ID account is attached to other iTunes providers. You will need to specify which provider you intend to submit content to by using the -itc_provider command. Please contact us if you have questions or need help. (1627)
DEBUG [2016-06-01 11:10:33.56]: [Transporter]: DBG-X: parameter Errors = [Your Apple ID account is attached to other iTunes providers. You will need to specify which provider you intend to submit content to by using the -itc_provider command. Please contact us if you have questions or need help. (1627)]
DEBUG [2016-06-01 11:10:33.56]: [Transporter]: DBG-X: parameter ErrorCode = 1627
DEBUG [2016-06-01 11:10:33.56]: [Transporter]: DBG-X: parameter Success = false
ERROR [2016-06-01 11:10:33.56]: [Transporter Error Output]: Your Apple ID account is attached to other iTunes providers. You will need to specify which provider you intend to submit content to by using the -itc_provider command. Please contact us if you have questions or need help. (1627)
DEBUG [2016-06-01 11:10:33.56]: [Transporter]: DBG-X: The error code is: 1627
ERROR [2016-06-01 11:10:33.77]: Transporter transfer failed.
Configuration Files
Very complicated Fastfile but here is an extract of the store lane
lane :store do |options|
update_fastlane
default_build_lane(options)
ENV["FASTLANE_PASSWORD"] = ENV["APPLE_ID_ITUNES_CONNECT_PASSWORD"] if ENV["APPLE_ID_ITUNES_CONNECT_PASSWORD"]
deliver(
username: ENV["APPLE_ID_ITUNES_CONNECT"],
team_id: ENV["TEAM_ID_ITC"],
dev_portal_team_id: ENV["TEAM_ID"],
team_name: ENV["TEAM_NAME"],
app_identifier: ENV['APP_BUNDLE'],
submit_for_review: options[:review],
automatic_release: options[:autorelease],
metadata_path: metadata_path,
screenshots_path: screenshots_path,
skip_screenshots: !options[:screenshots],
skip_metadata: !options[:metadata],
force: true
)
end
end
Environment
fastlane version : 1.92.0 deliver version : 1.12.0
Do you use bundler to execute fastlane (i.e. bundle exec fastlane)?
No but my project has a gemfile that fastlane executes (bundle install) before updating itself
Do you use a Ruby environment manager (e.g. chruby, rbenv, rvm)?
Rbenv.
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 22 (16 by maintainers)
That’s great news!
Unfortunately that option had already been shipped out into the wild, and still has a matching option on the
pilotside. Because we do our best not to make backwards-incompatible changes, we’ll leave that option in, even though it is no longer connected to this particular feature.Thanks for all your help!
I’d love to find the time to do it. Will see if I can!
@mfurtak Sorry I red the commit too fast. This works ! Thanks a lot. I believe you can remove the
dev_portal_team_idoption which is not necessary ?Ok @mfurtak !
I made some local tests and reproduced all above bugs called iTMSTransporter directly in CLI I tried to list my account using the command from @simonmitchell on #1524 and it seems that for some of my account the
shortNameis not equal to the team identifier in Apple Dev. I suspect it concerns the team that have been migrated once / or the very old ones (2007 for some)I tried passing this value to the
itc_providerparameter and it works Clearly this quote from Apple is falseI am not familiar with the whole fastlane internal flow but at some point this means • Either power-user will have to know and pass the value to fastlane (maybe an action can return the value) • You will have to call this method, search the team matching the one from iTunes Connect (I suspect long names are the same) and pass this has
itc_providerparameter.Happy to help further