UnexpectedResponse on downloading wildcard developer profile
chezzdev opened this issue · 1 comments
Hello everyone!
I'm signing archive of my application with wildcard development provisioning profile (just set in project, no additional actions during the build). Later on exporting step I resign it with corresponding distribution profile. Now I want to launch an application build on remote build-machine and before archiving I want to ensure that wildcard provisioning profile is on my machine. So I use sigh like this:
sigh -a "com.mycompany.*" -n "iOSTeam Provisioning Profile: com.mycompany.*" --development
By the log you can see that sigh thinks the profile doesn't exist and tries to create one whereupon gets "unexpected response" about duplicate profiles.
The only duplicate I can think of is XC Ad Hoc: com.mycompany.*
which has the same bundle (wildcard) but different type and name. Here's the log:
[16:15:48]: Starting login with user 'me@mycompany.org'
[16:15:50]: Successfully logged in
[16:15:50]: Fetching profiles...
[16:15:55]: No existing profiles, creating a new one for you
[16:16:00]: Creating new provisioning profile for 'com.mycompany.*' with name 'iOSTeam Provisioning Profile: com.mycompany.*'
/usr/local/lib/ruby/gems/2.2.0/gems/spaceship-0.14.2/lib/spaceship/client.rb:263:in `parse_response': {"responseId"=>"f47d85c0-8dc9-4f2d-91b5-db344a5380bc", "resultCode"=>35, "resultString"=>"There were errors in the data supplied. Please correct and re-submit.", "userString"=>"Multiple profiles found with the name 'iOSTeam Provisioning Profile: com.mycompany.*'. Please remove the duplicate profiles and try again.", "creationTimestamp"=>"2015-12-04T13:16:03Z", "protocolVersion"=>"QH65B2", "requestId"=>nil, "userLocale"=>"en_US", "requestUrl"=>"https://developer.apple.com/services-account/QH65B2/account/ios/profile/createProvisioningProfile.action", "httpCode"=>200, "validationMessages"=>[{"validationKey"=>"provisioningProfileName", "validationUserMessage"=>"Multiple profiles found with the name 'iOSTeam Provisioning Profile: com.mycompany.*'. Please remove the duplicate profiles and try again."}]} (Spaceship::Client::UnexpectedResponse)
from /usr/local/lib/ruby/gems/2.2.0/gems/spaceship-0.14.2/lib/spaceship/portal/portal_client.rb:334:in `create_provisioning_profile!'
from /usr/local/lib/ruby/gems/2.2.0/gems/spaceship-0.14.2/lib/spaceship/portal/provisioning_profile.rb:222:in `block in create!'
from /usr/local/lib/ruby/gems/2.2.0/gems/spaceship-0.14.2/lib/spaceship/client.rb:178:in `call'
from /usr/local/lib/ruby/gems/2.2.0/gems/spaceship-0.14.2/lib/spaceship/client.rb:178:in `with_retry'
from /usr/local/lib/ruby/gems/2.2.0/gems/spaceship-0.14.2/lib/spaceship/portal/provisioning_profile.rb:221:in `create!'
from /usr/local/lib/ruby/gems/2.2.0/gems/sigh-1.2.0/lib/sigh/runner.rb:109:in `create_profile!'
from /usr/local/lib/ruby/gems/2.2.0/gems/sigh-1.2.0/lib/sigh/runner.rb:39:in `run'
from /usr/local/lib/ruby/gems/2.2.0/gems/sigh-1.2.0/lib/sigh/manager.rb:7:in `start'
from /usr/local/lib/ruby/gems/2.2.0/gems/sigh-1.2.0/bin/sigh:34:in `block (2 levels) in run'
from /usr/local/lib/ruby/gems/2.2.0/gems/commander-4.3.5/lib/commander/command.rb:178:in `call'
from /usr/local/lib/ruby/gems/2.2.0/gems/commander-4.3.5/lib/commander/command.rb:178:in `call'
from /usr/local/lib/ruby/gems/2.2.0/gems/commander-4.3.5/lib/commander/command.rb:153:in `run'
from /usr/local/lib/ruby/gems/2.2.0/gems/commander-4.3.5/lib/commander/runner.rb:428:in `run_active_command'
from /usr/local/lib/ruby/gems/2.2.0/gems/commander-4.3.5/lib/commander/runner.rb:68:in `run!'
from /usr/local/lib/ruby/gems/2.2.0/gems/commander-4.3.5/lib/commander/delegates.rb:15:in `run!'
from /usr/local/lib/ruby/gems/2.2.0/gems/sigh-1.2.0/bin/sigh:89:in `run'
from /usr/local/lib/ruby/gems/2.2.0/gems/sigh-1.2.0/bin/sigh:107:in `<top (required)>'
from /usr/local/bin/sigh:23:in `load'
from /usr/local/bin/sigh:23:in `<main>'
Would appreciate any thoughts on this issue. Thanks in advance.
This issue was migrated to fastlane/fastlane#1763. Please post all further comments there.
fastlane
is now a mono repo, you can read more about the change in our blog post. All tools are now available in the fastlane main repo 🚀