fastlane: Fastlane doesn't seem to 'play nicely' with automatic code signing
New Issue Checklist
- [y ] Updated fastlane to the latest version
- [y ] I have read the Contribution Guidelines
Issue Description
I have a new Xcode 8 app with an iMessage plugin and shared app group entitlement. I selected the ‘automatically manage code signing’ box in xcode, and it looks like finally XCode does a good job. I can archive and upload to iTunes from XCode
Unfortunately, fastlane can no longer build an upload a binary for me. I have tried adding sigh to the flow and it seems happy enough - but doesn’t make iTunes happy
Complete output when running fastlane, including the stack trace and command used
...
[11:24:29]: Successfully exported and compressed dSYM file
[11:24:29]: Successfully exported and signed the ipa file:
[11:24:29]: /Users/rob/tmp/FastlaneBuild/Poop Pack.ipa
[11:24:29]: ------------------
[11:24:29]: --- Step: sigh ---
[11:24:29]: ------------------
+-------------------------------------+-------------------------------+
| Summary for sigh 1.11.1 |
+-------------------------------------+-------------------------------+
| adhoc | false |
| development | false |
| skip_install | false |
| force | false |
| app_identifier | com.HobbyistSoftware.poop |
| username | hobbyist@hobbyistsoftware.com |
| team_id | JHV5RC82C3 |
| ignore_profiles_with_different_name | false |
| skip_fetch_profiles | false |
| skip_certificate_verification | false |
+-------------------------------------+-------------------------------+
...
[11:25:55]: Going to upload updated app to iTunes Connect
[11:25:55]: This might take a few minutes. Please don't interrupt the script.
[11:26:35]: [Transporter Error Output]: ERROR ITMS-90161: "Invalid Provisioning Profile. The provisioning profile included in the bundle com.HobbyistSoftware.poop [Payload/Poop Pack.app] is invalid. [Missing code-signing certificate]. A Distribution Provisioning profile should be used when submitting apps to the App Store. For more information, visit the iOS Developer Portal."
[11:26:35]: Transporter transfer failed.
[11:26:35]:
[11:26:35]: ERROR ITMS-90161: "Invalid Provisioning Profile. The provisioning profile included in the bundle com.HobbyistSoftware.poop [Payload/Poop Pack.app] is invalid. [Missing code-signing certificate]. A Distribution Provisioning profile should be used when submitting apps to the App Store. For more information, visit the iOS Developer Portal."
[11:26:35]: ERROR ITMS-90161: "Invalid Provisioning Profile. The provisioning profile included in the bundle com.HobbyistSoftware.poop [Payload/Poop Pack.app] is invalid. [Missing code-signing certificate]. A Distribution Provisioning profile should be used when submitting apps to the App Store. For more information, visit the iOS Developer Portal."
Return status of iTunes Transporter was 1: ERROR ITMS-90161: "Invalid Provisioning Profile. The provisioning profile included in the bundle com.HobbyistSoftware.poop [Payload/Poop Pack.app] is invalid. [Missing code-signing certificate]. A Distribution Provisioning profile should be used when submitting apps to the App Store. For more information, visit the iOS Developer Portal."
The call to the iTMSTransporter completed with a non-zero exit status: 1. This indicates a failure.
[11:26:35]: Variable Dump:
[11:26:35]: {:DEFAULT_PLATFORM=>:ios, :PLATFORM_NAME=>:ios, :LANE_NAME=>"ios release", :BUILD_NUMBER=>"22", :IPA_OUTPUT_PATH=>"/Users/rob/tmp/FastlaneBuild/Poop Pack.ipa", :DSYM_OUTPUT_PATH=>"/Users/rob/tmp/FastlaneBuild/Poop Pack.app.dSYM.zip", :XCODEBUILD_ARCHIVE=>"/Users/rob/Library/Developer/Xcode/Archives/2016-09-29/Poop Pack 2016-09-29 11.22.49.xcarchive", :SIGH_PROFILE_PATH=>"/Users/rob/Documents/Development/Mac/iPhone/PoopPack/AppStore_com.HobbyistSoftware.poop.mobileprovision", :SIGH_PROFILE_PATHS=>["/Users/rob/Documents/Development/Mac/iPhone/PoopPack/AppStore_com.HobbyistSoftware.poop.mobileprovision"], :SIGH_UDID=>"75fce413-4882-4aac-afa8-c28a2c3b77a7", :SIGH_PROFILE_TYPE=>"app-store"}
[11:26:35]: Could not upload binary to iTunes Connect. Check out the error above
+------+-------------------------------------+-------------+
| fastlane summary |
+------+-------------------------------------+-------------+
| Step | Action | Time (in s) |
+------+-------------------------------------+-------------+
| 1 | Verifying required fastlane version | 0 |
| 2 | default_platform | 0 |
| 3 | increment_build_number | 0 |
| 4 | gym | 102 |
| 5 | sigh | 11 |
| 6 | deliver | 115 |
+------+-------------------------------------+-------------+
[11:26:35]: fastlane finished with errors
Configuration Files
Please copy the complete content of your Fastfile and any other configuration files you use below:
Fastfile:
desc "Deploy a new version to the App Store"
lane :release do
# match(type: "appstore")
# snapshot
increment_build_number
gym # Build your app - more options available
sigh
deliver(
skip_screenshots: true,
skip_metadata: false,
submit_for_review: false,
automatic_release: true)
# frameit
end
Deliverfile
scheme "Poop"
output_directory "~/tmp/FastlaneBuild"
use_legacy_build_api true
Environment
fastlane version (run fastlane -v):
fastlane 1.104.0
Do you use bundler to execute fastlane (i.e. bundle exec fastlane)?
no
Do you use a Ruby environment manager (e.g. chruby, rbenv, rvm)?
rvm
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 16 (7 by maintainers)
Hi @TKBurner thanks for the response.
The docs seem to imply that we can use automatic signing if we’re only developing on a single computer.
That works for me with some apps - but not with others. Is that now a bug I should report separately?
@ConfusedVorlon @hdoria @Cyclic This is a topic of great discussion this week with the core team. We definitely want to improve expectations or behavior around this. Thanks! 👍 👍