Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

App packaging is returning an error #10251

Closed
4 tasks done
reshadf opened this issue Sep 5, 2017 · 23 comments
Closed
4 tasks done

App packaging is returning an error #10251

reshadf opened this issue Sep 5, 2017 · 23 comments

Comments

@reshadf
Copy link

reshadf commented Sep 5, 2017

New Issue Checklist

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

@fastlane-bot
Copy link

It seems like this issue might be related to code signing 🚫

Have you seen our new Code Signing Troubleshooting Guide? It will help you resolve the most common code signing issues 👍

@reshadf
Copy link
Author

reshadf commented Sep 5, 2017

Cert and Sigh don't seem to be working for me.

@KrauseFx
Copy link
Member

KrauseFx commented Sep 7, 2017

"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.}"

That's the error message 👍

@reshadf
Copy link
Author

reshadf commented Sep 8, 2017

Do I pass it like this?

fastlane beta -allowProvisioningUpdates

@paiv
Copy link

paiv commented Sep 15, 2017

My (temporary?) workaround to this was to force build with Xcode 8

before_all do
    ENV['DEVELOPER_DIR'] = '/Applications/Xcode8.app/Contents/Developer'
end

In this project I have Provisioning Profile set to Automatic for all builds.

@WedgeSparda
Copy link

Same problem here. Was working perfectly with XCode 8. Now with XCode 9 got this error every time.

@reshadf
Copy link
Author

reshadf commented Sep 20, 2017

@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

gym(
    scheme: "MyApp",
    export_method: "app-store",
    export_xcargs: "-allowProvisioningUpdates"
  )

@WedgeSparda
Copy link

@reshadf Thank, I'll try that. Why is this parameter needed now?

@reshadf
Copy link
Author

reshadf commented Sep 20, 2017

Not sure, but it works. I think it's some bug and this command just forces it to see it as automatic?

@alexdd55
Copy link

@reshadf worked for me 👍

@ljesus
Copy link

ljesus commented Sep 25, 2017

The "-allowProvisioningUpdates" option worked for me aswell.

@rmyers0819
Copy link

rmyers0819 commented Sep 27, 2017

When we try to add in the "-allowProvisioningUpdates" flag, we get a compile error: "Could not find option ‘export_xcargs’"

gym( scheme: options[:scheme], export_method: "enterprise", export_xcargs: "-allowProvisioningUpdates" )

Can anyone see what we might be doing wrong or why we aren't compiling?

@WedgeSparda
Copy link

@rmyers0819 Maybe you're using an old version of Fastlane who doesn't support that flag.

@gderaco
Copy link

gderaco commented Oct 9, 2017

@rmyers0819 you probably forgot a comma.

@owurman
Copy link

owurman commented Oct 11, 2017

So is adding the export_xcargs option the official solution here? I'm using fastlane 2.61 and getting this error without allowProvisioningUpdates. What I'm not sure is if this flag is giving Xcode the liberty to manage the provisioning profile, rather than using the profile I've downloaded with sigh. I'm also not honestly sure that I care.

@StarWars
Copy link

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:

  • pem
  • sigh
  • gym
  • deliver

@agfa555
Copy link

agfa555 commented Oct 12, 2017

@reshadf Thank you!!!!! Been looking for an answer to this for a week!!!
+1 for @StarWars Why is this happening now? Seems like fastlane is not accessing keychain to update profiles since Xcode 9...

@ljesus
Copy link

ljesus commented Oct 31, 2017

Any news regarding this issue? It seems to still be happening.

@ohayon
Copy link
Contributor

ohayon commented Oct 31, 2017

Hey @ljesus - any chance you can share your command line output so we can see the full context? If you could run the command with --verbose, that would be amazing! 🚀

@fastlane-bot
Copy link

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 👍

@fastlane-bot
Copy link

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 👍

@HarrisHan
Copy link
Contributor

Syntax error in your configuration file './.fastlane/Gymfile' on line 26: (eval):26: syntax error, unexpected tIDENTIFIER, expecting ')'
export_xcargs: "-allowProvisioningUpdates"

fastlane version 2.60.1

@KrauseFx
Copy link
Member

@HarrisHan Not related to this issue, please share your Fastfile, in which you have a syntax error

@fastlane fastlane locked and limited conversation to collaborators Feb 12, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests