fastlane: App packaging is returning an error
New Issue Checklist
- Updated fastlane to the latest version
- I read the Contribution Guidelines
- I read docs.fastlane.tools
- I searched for existing GitHub issues
Issue Description
When using fastlane beta, I keep getting an error at the point where the app is packaging up. It exits with a Exit status: 70.
This is the whole message of the error:
2017-09-05 10:18:42.249 xcodebuild[86003:39884346] [MT] IDEDistribution: Step failed: <IDEDistributionSigningAssetsStep: 0x7fc0436f3bd0>: Error Domain=IDEDistributionSigningAssetStepErrorDomain Code=0 “Locating signing assets failed.” UserInfo={NSLocalizedDescription=Locating signing assets failed., IDEDistributionSigningAssetStepUnderlyingErrors=( “Error Domain=IDEProfileLocatorErrorDomain Code=1 "No profiles for ‘com.app.id’ were found" UserInfo={NSLocalizedDescription=No profiles for ‘com.app.id’ were found, NSLocalizedRecoverySuggestion=Xcode couldn’t find any iOS App Store provisioning profiles matching ‘com.app.id’. Automatic signing is disabled and unable to generate a profile. To enable automatic signing, pass -allowProvisioningUpdates to xcodebuild.}” )} error: exportArchive: No profiles for ‘com.app.id’ were found
Error Domain=IDEProfileLocatorErrorDomain Code=1 “No profiles for 'com.app.id were found” UserInfo={NSLocalizedDescription=No profiles for ‘com.app.id’ were found, NSLocalizedRecoverySuggestion=Xcode couldn’t find any iOS App Store provisioning profiles matching ‘com.app.id’. Automatic signing is disabled and unable to generate a profile. To enable automatic signing, pass -allowProvisioningUpdates to xcodebuild.}
** EXPORT FAILED ** [10:18:42]: Exit status: 70
Captured Output
Command Used: beta
Output/Log
Successfully loaded Appfile at path '/Users/reshadfarid/Xcode/appname/fastlane/Appfile'
- app_identifier: 'nl.appname'
- apple_id: 'name@domain.com'
- team_id: '35FV9Y7DCZ'
- itc_team_id: '118086626'
-------
+---------------+--------------------------------------+
| Summary for cert 2.55.0 |
+---------------+--------------------------------------+
| development | false |
| force | false |
| username | name@domain.com |
| team_id | 35FV9Y7DCZ |
| keychain_path | /Users/reshadfarid/Library/Keychain |
| | s/login.keychain-db |
| platform | ios |
+---------------+--------------------------------------+
+-------------------------------------+------------------------+
| Summary for sigh 2.55.0 |
+-------------------------------------+------------------------+
| adhoc | false |
| development | false |
| skip_install | false |
| force | false |
| app_identifier | nl.appname |
| username | name@domain.com |
| team_id | 35FV9Y7DCZ |
| ignore_profiles_with_different_name | false |
| cert_id | MEZZ5N3K63 |
| skip_fetch_profiles | false |
| skip_certificate_verification | false |
| platform | ios |
+-------------------------------------+------------------------+
/Users/reshadfarid/Xcode/appname/AppStore_nl.appname.mobileprovision
+--------------------------------------+--------------------------------------+
| Summary for gym 2.55.0 |
+--------------------------------------+--------------------------------------+
| scheme | appname |
| workspace | appname.xcworkspace |
| export_method | app-store |
| export_options.provisioningProfiles | nl.appname |
| .nl.appname | |
| destination | generic/platform=iOS |
| output_name | appname |
| build_path | /Users/reshadfarid/Library/Develope |
| | r/Xcode/Archives/2017-09-05 |
| clean | false |
| output_directory | . |
| silent | false |
| skip_package_ipa | false |
| buildlog_path | ~/Library/Logs/gym |
| xcode_path | /Applications/Xcode-beta.app |
+--------------------------------------+--------------------------------------+
+--------------------------------------+----------------------+
| Generated Build Command |
+--------------------------------------+----------------------+
| Option | Value |
+--------------------------------------+----------------------+
| set -o pipefail && | |
| xcodebuild | |
| -workspace appname.xcworkspace | |
| -scheme appname | |
| -destination | generic/platform=iOS |
| -archivePath | |
| /Users/reshadfarid/Library/Develope | |
| r/Xcode/Archives/2017-09-05/ProActi | |
| ve\ 2017-09-05\ 10.30.19.xcarchive | |
| archive | |
| | tee | |
| /Users/reshadfarid/Library/Logs/gym | |
| /appname-appname.log | |
| | xcpretty | |
+--------------------------------------+----------------------+
+--------------------------------------+--------------------------------------+
| Generated Package Command |
+--------------------------------------+--------------------------------------+
| Option | Value |
+--------------------------------------+--------------------------------------+
| /usr/bin/xcrun | |
| /Users/reshadfarid/.fastlane/bin/bu | |
| ndle/lib/ruby/gems/2.2.0/gems/fastl | |
| ane-2.55.0/gym/lib/assets/wrap_xcod | |
| ebuild/xcbuild-safe.sh | |
| -exportArchive | |
| -exportOptionsPlist | /var/folders/3h/rqdx57296kn4d3wr5b3 |
| | rph080000gn/T/gym_config20170905-86 |
| | 267-n3wy67.plist |
| -archivePath | |
| /Users/reshadfarid/Library/Develope | |
| r/Xcode/Archives/2017-09-05/ProActi | |
| ve\ 2017-09-05\ 10.30.19.xcarchive | |
| -exportPath | /var/folders/3h/rqdx57296kn4d3wr5b3 |
| | rph080000gn/T/gym_output20170905-86 |
| | 267-cd5op9 |
+--------------------------------------+--------------------------------------+
RVM detected, forcing to use system ruby
Now using system ruby.
+ xcodebuild -exportArchive -exportOptionsPlist /var/folders/3h/rqdx57296kn4d3wr5b3rph080000gn/T/gym_config20170905-86267-n3wy67.plist -archivePath '/Users/reshadfarid/Library/Developer/Xcode/Archives/2017-09-05/appname 2017-09-05 10.30.19.xcarchive' -exportPath /var/folders/3h/rqdx57296kn4d3wr5b3rph080000gn/T/gym_output20170905-86267-cd5op9
2017-09-05 10:32:02.031 xcodebuild[88689:39946073] [MT] IDEDistribution: -[IDEDistributionLogging _createLoggingBundleAtPath:]: Created bundle at path '/var/folders/3h/rqdx57296kn4d3wr5b3rph080000gn/T/appname_2017-09-05_10-32-02.030.xcdistributionlogs'.
2017-09-05 10:32:05.853 xcodebuild[88689:39946073] [MT] IDEDistribution: Step failed: <IDEDistributionSigningAssetsStep: 0x7fa289108e60>: Error Domain=IDEDistributionSigningAssetStepErrorDomain Code=0 "Locating signing assets failed." UserInfo={NSLocalizedDescription=Locating signing assets failed., IDEDistributionSigningAssetStepUnderlyingErrors=(
"Error Domain=IDEProfileLocatorErrorDomain Code=1 \"No profiles for 'nl.appname' were found\" UserInfo={NSLocalizedDescription=No profiles for 'nl.appname' were found, NSLocalizedRecoverySuggestion=Xcode couldn't find any iOS App Store provisioning profiles matching 'nl.appname'. Automatic signing is disabled and unable to generate a profile. To enable automatic signing, pass -allowProvisioningUpdates to xcodebuild.}"
)}
error: exportArchive: No profiles for 'nl.appname' were found
Error Domain=IDEProfileLocatorErrorDomain Code=1 "No profiles for 'nl.appname' were found" UserInfo={NSLocalizedDescription=No profiles for 'nl.appname' were found, NSLocalizedRecoverySuggestion=Xcode couldn't find any iOS App Store provisioning profiles matching 'nl.appname'. Automatic signing is disabled and unable to generate a profile. To enable automatic signing, pass -allowProvisioningUpdates to xcodebuild.}
** EXPORT FAILED **
+---------------+------------------------------+
| Build environment |
+---------------+------------------------------+
| xcode_path | /Applications/Xcode-beta.app |
| gym_version | 2.55.0 |
| export_method | app-store |
| sdk | iPhoneOS11.0.sdk |
+---------------+------------------------------+
+------+---------------------+-------------+
| fastlane summary |
+------+---------------------+-------------+
| Step | Action | Time (in s) |
+------+---------------------+-------------+
| 1 | Verifying required | 0 |
| | fastlane version | |
| 2 | default_platform | 0 |
| 3 | cocoapods | 6 |
| 4 | cert | 5 |
| 5 | sigh | 6 |
| 💥 | gym | 109 |
+------+---------------------+-------------+
✅ fastlane environment ✅
Stack
Key | Value |
---|---|
OS | 10.12.6 |
Ruby | 2.2.4 |
Bundler? | false |
Git | git version 2.13.5 (Apple Git-94) |
Installation Source | ~/.fastlane/bin/bundle/bin/fastlane |
Host | Mac OS X 10.12.6 (16G29) |
Ruby Lib Dir | ~/.fastlane/bin/bundle/lib |
OpenSSL Version | OpenSSL 1.0.2g 1 Mar 2016 |
Is contained | false |
Is homebrew | true |
Is installed via Fabric.app | false |
Xcode Path | /Applications/Xcode-beta.app/Contents/Developer/ |
Xcode Version | 9.0 |
System Locale
Variable | Value | |
---|---|---|
LANG | en_US.UTF-8 | ✅ |
LC_ALL | en_US.UTF-8 | ✅ |
LANGUAGE | en_US.UTF-8 | ✅ |
fastlane files:
`./fastlane/Fastfile`
# More documentation about how to customize your build
# can be found here:
# https://docs.fastlane.tools
fastlane_version "1.109.0"
# This value helps us track success metrics for Fastfiles
# we automatically generate. Feel free to remove this line
# once you get things running smoothly!
generated_fastfile_id "92b68a0f-ad0b-4380-b68d-7d7062077eb2"
default_platform :ios
# Fastfile actions accept additional configuration, but
# don't worry, fastlane will prompt you for required
# info which you can add here later
lane :test do
scan(
scheme: "appname",
workspace: "appname.xcworkspace",
skip_build: true
)
end
lane :beta do
cocoapods
cert
sigh
# build your iOS app
gym(
scheme: "appname",
workspace: "appname.xcworkspace",
export_method: "app-store"
)
# upload to Testflight
pilot(skip_waiting_for_build_processing: true)
# slack(
# slack_url: "https://hooks.slack.com/services/IDS"
# )
end
`./fastlane/Appfile`
app_identifier "nl.appname" # The bundle identifier of your app
apple_id "name@domain.com" # Your Apple email address
team_id "35FV9Y7DCZ" # Developer Portal Team ID
itc_team_id "118086626"
# you can even provide different app identifiers, Apple IDs and team names per lane:
# More information: https://github.com/fastlane/fastlane/blob/master/fastlane/docs/Appfile.md
fastlane gems
Gem | Version | Update-Status |
---|---|---|
fastlane | 2.55.0 | ✅ Up-To-Date |
Loaded fastlane plugins:
No plugins Loaded
Loaded gems
Gem | Version |
---|---|
slack-notifier | 1.5.1 |
CFPropertyList | 2.3.5 |
claide | 1.0.2 |
colored2 | 3.1.2 |
nanaimo | 0.2.3 |
xcodeproj | 1.5.1 |
rouge | 1.11.1 |
xcpretty | 0.2.6 |
terminal-notifier | 1.7.1 |
unicode-display_width | 1.1.3 |
terminal-table | 1.7.3 |
plist | 3.2.0 |
public_suffix | 2.0.5 |
addressable | 2.5.1 |
multipart-post | 2.0.0 |
word_wrap | 1.0.0 |
tty-screen | 0.5.0 |
babosa | 1.0.2 |
colored | 1.2 |
highline | 1.7.8 |
commander-fastlane | 4.4.5 |
excon | 0.55.0 |
faraday | 0.12.1 |
unf_ext | 0.0.7.4 |
unf | 0.1.4 |
domain_name | 0.5.20170404 |
http-cookie | 1.0.3 |
faraday-cookie_jar | 0.0.6 |
fastimage | 2.1.0 |
gh_inspector | 1.0.3 |
json | 1.8.1 |
mini_magick | 4.5.1 |
multi_json | 1.12.1 |
multi_xml | 0.6.0 |
rubyzip | 1.2.1 |
security | 0.1.3 |
xcpretty-travis-formatter | 0.0.4 |
dotenv | 2.2.0 |
bundler | 1.14.6 |
faraday_middleware | 0.11.0.1 |
uber | 0.0.15 |
declarative | 0.0.9 |
declarative-option | 0.1.0 |
representable | 3.0.4 |
retriable | 2.1.0 |
mime-types-data | 3.2016.0521 |
mime-types | 3.1 |
little-plugger | 1.1.4 |
logging | 2.2.2 |
jwt | 1.5.6 |
memoist | 0.15.0 |
os | 0.9.6 |
signet | 0.7.3 |
googleauth | 0.5.1 |
httpclient | 2.8.3 |
google-api-client | 0.13.5 |
psych | 2.0.8 |
libxml-ruby | 3.0.0 |
generated on: 2017-09-05
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Reactions: 4
- Comments: 23 (4 by maintainers)
@WedgeSparda
The error message is not logic since automatic signing is already enabled. But I managed to solve it anyways by giving the argument like so
Same problem here. Was working perfectly with XCode 8. Now with XCode 9 got this error every time.
This is still happening in Xcode Version 9.0 (9A235). The change provided by @reshadf works but I would love to find out why this change was needed in the first place. On Xcode 8 the following setup worked great:
@rmyers0819 you probably forgot a comma.