Closed greghopkins closed 6 years ago
The failure is in your project configuration. Match is pulling the cert/profile, but it's not set in your xcodeproj file. Check out the docs codesigning guide on ways to solve that.
@johnknapprs While I provided the info for the failing run on CircleCI, the local execution, with the exact same XCode project, works just fine. I've been through the codesigning docs - which was how I got the thing running locally.
Got this problem (a few times) as well, I usually do two things :
~/Library/MobileDevice/Provisioning Profiles
and running match againHey @greghopkins,
I've been encountering the same thing recently on Travis & have found that you need all the provisioning profiles / certs which you are referencing in the Xcode project in order to use a provisioning profile not specified in the xcode project.
Locally fastlane works fine because you have all the profiles present, but this isn't the case in the CI (potentially)
What I do now is use match to pull in all the profiles then run fastlane.
This then allows me to use the Release configuration to export with say a Development or Adhoc profile even though Xcode says the Release configuration should use Appstore.
What I think happens is that gym builds the whole app, exports it & then resigns it. Because it does the export it needs the Xcode specified profile, then applies the profile you specified.
Regards, Lee
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
When running locally, the configuration below is successful. When running in CircleCI, however, it fails.
I have compared the output of
fastlane env
on both - and there are minimal differences. I can include the differences if it is useful but, as an example, CircleCI uses XCode 9.4, I am using 9.4.1 - none of the differences (of which there are only a few) occur on major versions of anything.The output captured below is from the run on CircleCI.
Ultimately, the error is:
Code Signing Error: No profiles for 'com.foo.bar' were found: Xcode couldn't find any iOS App Development provisioning profiles matching 'com.foo.bar'. Automatic signing is disabled and unable to generate a profile. To enable automatic signing, pass -allowProvisioningUpdates to xcodebuild.
This is strange because the mapping is well established a bit further up in the log.
The way I read the log, it looks like
match
successfully installed the correct certs & profiles.Complete output when running fastlane, including the stack trace and command used
Environment
โ fastlane environment โ
### Stack | Key | Value | | --------------------------- | -------------------------------------------------- | | OS | 10.13.3 | | Ruby | 2.4.4 | | Bundler? | true | | Git | git version 2.17.1 | | Installation Source | ~/mobile-app/vendor/bundle/ruby/2.4.0/bin/fastlane | | Host | Mac OS X 10.13.3 (17D102) | | Ruby Lib Dir | ~/.rubies/ruby-2.4.4/lib | | OpenSSL Version | OpenSSL 1.0.2o 27 Mar 2018 | | Is contained | false | | Is homebrew | false | | Is installed via Fabric.app | false | | Xcode Path | /Applications/Xcode-9.4.app/Contents/Developer/ | | Xcode Version | 9.4 | ### System Locale | Variable | Value | | | -------- | ----- |- | | LANG | en_US.UTF-8 | โ | | LC_ALL | en_US.UTF-8 | โ | | LANGUAGE | | | ### fastlane files:`./fastlane/Fastfile`
```ruby platform :ios do before_all do setup_circle_ci end lane :beta do match type: 'development' gym export_method: 'development' end end ````./fastlane/Appfile`
```ruby app_identifier 'com.foo.bar' apple_id 'developer@coolplace.com' team_id 'TEAMID1234' ````./fastlane/Gymfile`
```ruby project 'platforms/ios/mobileapp.xcodeproj' output_directory 'output' ````./fastlane/Matchfile`
```ruby git_url 'git@github.com:MyOrg/certificates.git' force_for_new_devices true ```Loaded gems
| Gem | Version | | ------------------------- | ------------ | | did_you_mean | 1.1.0 | | bundler | 1.16.2 | | io-console | 0.4.6 | | CFPropertyList | 3.0.0 | | concurrent-ruby | 1.0.5 | | i18n | 0.9.5 | | minitest | 5.11.3 | | thread_safe | 0.3.6 | | tzinfo | 1.2.5 | | activesupport | 4.2.10 | | public_suffix | 2.0.5 | | addressable | 2.5.2 | | atomos | 0.1.2 | | babosa | 1.0.2 | | claide | 1.0.2 | | fuzzy_match | 2.0.4 | | nap | 1.1.0 | | cocoapods-core | 1.5.3 | | cocoapods-deintegrate | 1.0.2 | | cocoapods-downloader | 1.2.1 | | cocoapods-plugins | 1.0.0 | | cocoapods-search | 1.0.0 | | cocoapods-stats | 1.0.0 | | netrc | 0.11.0 | | cocoapods-trunk | 1.3.0 | | cocoapods-try | 1.1.0 | | colored2 | 3.1.2 | | escape | 0.0.4 | | fourflusher | 2.0.1 | | gh_inspector | 1.1.3 | | molinillo | 0.6.5 | | ruby-macho | 1.2.0 | | nanaimo | 0.2.6 | | xcodeproj | 1.5.9 | | cocoapods | 1.5.3 | | colored | 1.2 | | highline | 1.7.10 | | commander-fastlane | 4.4.6 | | declarative | 0.0.10 | | declarative-option | 0.1.0 | | unf_ext | 0.0.7.5 | | unf | 0.1.4 | | domain_name | 0.5.20180417 | | dotenv | 2.5.0 | | emoji_regex | 0.1.1 | | excon | 0.62.0 | | multipart-post | 2.0.0 | | faraday | 0.15.2 | | http-cookie | 1.0.3 | | faraday-cookie_jar | 0.0.6 | | faraday_middleware | 0.12.2 | | fastimage | 2.1.3 | | jwt | 2.1.0 | | little-plugger | 1.1.4 | | multi_json | 1.13.1 | | logging | 2.2.2 | | memoist | 0.16.0 | | os | 0.9.6 | | signet | 0.8.1 | | googleauth | 0.6.2 | | httpclient | 2.8.3 | | mime-types-data | 3.2016.0521 | | mime-types | 3.1 | | uber | 0.1.0 | | representable | 3.0.4 | | retriable | 3.1.2 | | google-api-client | 0.21.2 | | json | 2.1.0 | | mini_magick | 4.5.1 | | multi_xml | 0.6.0 | | plist | 3.4.0 | | rubyzip | 1.2.1 | | security | 0.1.3 | | naturally | 2.2.0 | | simctl | 1.6.5 | | slack-notifier | 2.3.2 | | terminal-notifier | 1.8.0 | | unicode-display_width | 1.4.0 | | terminal-table | 1.8.0 | | tty-screen | 0.6.4 | | tty-cursor | 0.5.0 | | tty-spinner | 0.8.0 | | word_wrap | 1.0.0 | | rouge | 2.0.7 | | xcpretty | 0.2.8 | | xcpretty-travis-formatter | 1.0.0 |