Closed MattCheetham closed 7 years ago
@MattCheetham Have you tried providing that parameter? It seems like this is the most viable workaround. We provide sane defaults but sometimes you need to manually set things. Thanks!
Is there any way for fastlane to detect this value automatically? Sorry, I don't have an account handy that requires this parameter
@TKBurner Providing that parameter and removing the --team_id one spits out the error
Multiple iTunes Connect teams found, please enter the number of the team you want to use:
Note: to automatically choose the team, provide either the iTunes Connect Team ID, or the Team Name in your fastlane/Appfile:
Proivding both --team_id and --itc_provider also still errors
ERROR [2016-10-18 08:27:09.65]: [Transporter Error Output]: Unable to find an iTunes Connect user for username email@domain.com and provider 351910. This username may not be enabled for iTunes Connect. Contact your team admin for assistance. (1296)
DEBUG [2016-10-18 08:27:09.65]: [Transporter]: DBG-X: The error code is: 1296
ERROR [2016-10-18 08:27:09.75]: Transporter transfer failed.
WARN [2016-10-18 08:27:09.75]:
ERROR [2016-10-18 08:27:09.75]: Unable to find an iTunes Connect user for username email@domain.com and provider 351910. This username may not be enabled for iTunes Connect. Contact your team admin for assistance. (1296)
ERROR [2016-10-18 08:27:09.81]: Unable to find an iTunes Connect user for username email@domain.com and provider 351910. This username may not be enabled for iTunes Connect. Contact your team admin for assistance. (1296)
Return status of iTunes Transporter was 1: Unable to find an iTunes Connect user for username email@domain.com and provider 351910. This username may not be enabled for iTunes Connect. Contact your team admin for assistance. (1296)
The call to the iTMSTransporter completed with a non-zero exit status: 1. This indicates a failure.
/Users/matthewcheetham/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/fastlane_core-0.52.1/lib/fastlane_core/ui/interface.rb:145:in `user_error!': [!] Error uploading ipa file, for more information see above (FastlaneCore::Interface::FastlaneError)
from /Users/matthewcheetham/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/fastlane_core-0.52.1/lib/fastlane_core/ui/ui.rb:14:in `method_missing'
from /Users/matthewcheetham/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/pilot-1.10.1/lib/pilot/build_manager.rb:22:in `upload'
from /Users/matthewcheetham/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/pilot-1.10.1/lib/pilot/commands_generator.rb:59:in `block (2 levels) in run'
from /Users/matthewcheetham/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/commander-4.4.0/lib/commander/command.rb:178:in `call'
from /Users/matthewcheetham/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/commander-4.4.0/lib/commander/command.rb:153:in `run'
from /Users/matthewcheetham/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/commander-4.4.0/lib/commander/runner.rb:444:in `run_active_command'
from /Users/matthewcheetham/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/fastlane_core-0.52.1/lib/fastlane_core/ui/fastlane_runner.rb:36:in `run!'
from /Users/matthewcheetham/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/commander-4.4.0/lib/commander/delegates.rb:15:in `run!'
from /Users/matthewcheetham/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/pilot-1.10.1/lib/pilot/commands_generator.rb:135:in `run'
from /Users/matthewcheetham/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/pilot-1.10.1/lib/pilot/commands_generator.rb:15:in `start'
from /Users/matthewcheetham/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/pilot-1.10.1/bin/pilot:6:in `<top (required)>'
from /Users/matthewcheetham/.rbenv/versions/2.3.0/bin/pilot:23:in `load'
from /Users/matthewcheetham/.rbenv/versions/2.3.0/bin/pilot:23:in `<main>'
Matthews-MBP:Local iOS matthewcheetham$
@KrauseFx Sorry I don't have any idea how you can go about this automatically. It seems even providing the right info doesn't work although I'm still not sure why.
@MattCheetham Does this account have an admin role on iTC?
@TKBurner We have the "App Manager" role on that account
@MattCheetham Can you try with an account with admin privileges and let me know if that clears things up for you? Because of certain API permissions beyond our control you might need to be in this role. Thanks!
@TKBurner Hmm I'll give it a try. Curious as to why that would affect one specific app on the account where all the other submit fine with the same account permission setup.
It's a client's account so will need to get them to bump us to admin and then I'll get back to you.
@MattCheetham Interesting. That shouldn't be the case, but maybe something is weird here. Let me know what happens with the change. Thanks!
@TKBurner Okay so I didn't get around to elevating access on that account but the issue has popped up again on a new app that we've just set up under another account (That is also a linked account like the original issue). I've verified that I can upload fine through Xcode and we are an Admin on this account.
So we're actually building this new one through Bitrise and submitting using the deliver step. I'm at a bit of a loss of how to fix this as the error just says to provide --itc_provider to iTMSTransporter which I obviously can't do.
Okay so the command that Bitrise runs is deliver --username username@domain.com --app 1180912547 --team_name '3 SIDED CUBE DESIGN LTD' --ipa '/Users/matthewcheetham/Downloads/Ready for Business.ipa' --skip_screenshots --skip_metadata --force
which fails
I ran it locally and also get the failure.
However adding the --itc_provider
key does fix the issue and the upload succeeds. So it does look like it's something to do with the --team_name
or --team_id
identifying correctly. Unfortunately, I have no way to pass --itc_provider in Bitrise but I'll link them to this issue as they have been following too and maybe it is something that they can provide functionality for.
The command that succeeds is deliver --username username@domain.com --app 1180912547 --team_name '3 SIDED CUBE DESIGN LTD' --ipa '/Users/matthewcheetham/Downloads/Ready for Business.ipa' --skip_screenshots --skip_metadata --force --itc_provider "3SIDEDCUBEDESIGNLTD"
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates.
Please make sure to update to the latest fastlane
version and check if that solves the issue. Let us know if that works for you by adding a comment :+1:
Have the same issue with such code:
pilot(
ipa: ipa,
skip_waiting_for_build_processing: true,
team_id: itc_team_id,
username: apple_username,
)
for some teams (not all).
Adding itc_provider: itc_provider
helped.
itc_provider
i've take from (second column)
/Applications/Xcode-8.2.1.app/Contents/Applications/Application\ Loader.app/Contents/itms/bin/iTMSTransporter -m provider -u 'USER' -p "PASSWORD" -account_type itunes_connect -v off
itc_provider
is sometimes (not always) the same team_id
from Developer Portal.
Hope it helps.
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates.
Please make sure to update to the latest fastlane
version and check if that solves the issue. Let us know if that works for you by adding a comment :+1:
This issue will be auto-closed because there hasn't been any activity for a few months. Feel free to open a new one if you still experience this problem :+1:
New Issue Checklist
Issue Description
Pilot is asking for itc_provider when trying to upload an app. We use Deliver and Pilot on a few of our apps on the same account but for some reason this one specific app refuses to submit and the iTMSTransporter issue bubbles up despite us providing team name. Originally the issue was popping up in Bitrise CI for us but I tried exporting the IPA myself and using Pilot via the command line with no success. Not sure where I'm going wrong here. As far as I can see providing itc_provider isn't necessary because I provide team name and looking at the logs it seems to identify the team correctly from this but fail on upload. Please let me know if there are any further details I can provide that would be of use.
Complete output when running fastlane, including the stack trace and command used
Configuration Files
N/A
Environment
fastlane 1.105.2
Do you use bundler to execute fastlane (i.e.
bundle exec fastlane
)? NoDo you use a Ruby environment manager (e.g.
chruby
,rbenv
,rvm
)? Yes.rbenv
on this machine on2.3.0