fastlane: Exit status: 70 - No provisioning profile provided

New Issue Checklist

Issue Description

I can’t make my fastlane finish successfully. I can’t seem to find the problem, and the funny thing is that I have another app, with the exact same fastlane configuration which works just fine.

If you look at my output, I understand the error is very specific, “requires a provisioning profile with the Push Notifications feature” but if you have a look at the provisioning profile I’m using, it DOES have that feature:

Alt text

So I’m lost here. Any thoughts?

Complete output when running fastlane, including the stack trace and command used
[09:50:06]: ▸ Archive Succeeded
[09:50:17]: Generated plist file with the following values:
[09:50:17]: ▸ -----------------------------------------
[09:50:17]: ▸ {
[09:50:17]: ▸   "signingStyle": "manual",
[09:50:17]: ▸   "provisioningProfiles": {
[09:50:17]: ▸     "com.": "match InHouse com.",
[09:50:17]: ▸     "com..": "match InHouse com.."
[09:50:17]: ▸   },
[09:50:17]: ▸   "method": "enterprise",
[09:50:17]: ▸   "signingStyle": "manual"
[09:50:17]: ▸ }
[09:50:17]: ▸ -----------------------------------------
[09:50:17]: $ /usr/bin/xcrun /Volumes/MacintoshHD2/Users//Projects/iOS///vendor/bundle/ruby/2.3.0/gems/fastlane-2.62.1/gym/lib/assets/wrap_xcodebuild/xcbuild-safe.sh -exportArchive -exportOptionsPlist '/var/folders/71/93d6p0bn21s0g6z6rskmb7h40000gt/T/gym_config20171030-8045-1uviwpw.plist' -archivePath /Users//Library/Developer/Xcode/Archives/2017-10-30/\ 2017-10-30\ 09.46.48.xcarchive -exportPath '/var/folders/71/93d6p0bn21s0g6z6rskmb7h40000gt/T/gym_output20171030-8045-1993lrh' 
rbenv detected, removing env variables
rbenv: no such command `shell'
+ xcodebuild -exportArchive -exportOptionsPlist /var/folders/71/93d6p0bn21s0g6z6rskmb7h40000gt/T/gym_config20171030-8045-1uviwpw.plist -archivePath '/Users//Library/Developer/Xcode/Archives/2017-10-30/2017-10-30 09.46.48.xcarchive' -exportPath /var/folders/71/93d6p0bn21s0g6z6rskmb7h40000gt/T/gym_output20171030-8045-1993lrh
2017-10-30 09:50:18.472 xcodebuild[9896:8861782] [MT] IDEDistribution: -[IDEDistributionLogging _createLoggingBundleAtPath:]: Created bundle at path '/var/folders/71/93d6p0bn21s0g6z6rskmb7h40000gt/T/-10-30_09-50-18.471.xcdistributionlogs'.
2017-10-30 09:50:25.799 xcodebuild[9896:8861782] [MT] IDEDistribution: Step failed: <IDEDistributionSigningAssetsStep: 0x7fae6e51a810>: Error Domain=IDEDistributionSigningAssetStepErrorDomain Code=0 "Locating signing assets failed." UserInfo={NSLocalizedDescription=Locating signing assets failed., IDEDistributionSigningAssetStepUnderlyingErrors=(
"Error Domain=IDEProvisioningErrorDomain Code=9 \"\".app\" requires a provisioning profile with the Push Notifications feature.\" UserInfo={NSLocalizedDescription=\".app\" requires a provisioning profile with the Push Notifications feature., NSLocalizedRecoverySuggestion=Add a profile to the \"provisioningProfiles\" dictionary in your Export Options property list.}"
)}
error: exportArchive: ".app" requires a provisioning profile with the Push Notifications feature.

Error Domain=IDEProvisioningErrorDomain Code=9 "".app" requires a provisioning profile with the Push Notifications feature." UserInfo={NSLocalizedDescription=".app" requires a provisioning profile with the Push Notifications feature., NSLocalizedRecoverySuggestion=Add a profile to the "provisioningProfiles" dictionary in your Export Options property list.}

** EXPORT FAILED **
[09:50:25]: Exit status: 70
[09:50:25]: No provisioning profile provided
[09:50:25]: Make sure to pass a valid provisioning for each required target
[09:50:25]: Check out the docs on how to fix this: https://github.com/fastlane/fastlane/tree/master/gym#export-options

+---------------+-------------------------+
|            Build environment            |
+---------------+-------------------------+
| xcode_path    | /Applications/Xcode.app |
| gym_version   | 2.62.1                  |
| export_method | enterprise              |
| sdk           | iPhoneOS11.0.sdk        |
+---------------+-------------------------+

[09:50:25]: ▸     cd /Volumes/MacintoshHD2/Users//Projects/iOS//
[09:50:25]: ▸     export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Volumes/MacintoshHD2/Users//Projects/iOS///vendor/bundle/ruby/2.3.0/bin:/Users//.rbenv/shims:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Applications/Server.app/Contents/ServerRoot/usr/bin:/Applications/Server.app/Contents/ServerRoot/usr/sbin:/Users//Downloads/apache-maven-3.5.0/bin"
[09:50:25]: ▸     /usr/bin/touch -c /Users//Library/Developer/Xcode/DerivedData/-dikfesqemncrpphgbhitprmcaigg/Build/Intermediates.noindex/ArchiveIntermediates//BuildProductsPath/QA-iphoneos/.app.dSYM
[09:50:25]: ▸ ** ARCHIVE SUCCEEDED **
[09:50:25]: 
[09:50:25]: ⬆️  Check out the few lines of raw `xcodebuild` output above for potential hints on how to solve this error
[09:50:25]: 📋  For the complete and more detailed error log, check the full log at:
[09:50:25]: 📋  /Users//Library/Logs/gym/-.log
[09:50:25]: 
[09:50:25]: Looks like fastlane ran into a build/archive error with your project
[09:50:25]: It's hard to tell what's causing the error, so we wrote some guides on how
[09:50:25]: to troubleshoot build and signing issues: https://docs.fastlane.tools/codesigning/getting-started/
[09:50:25]: Before submitting an issue on GitHub, please follow the guide above and make
[09:50:25]: sure your project is set up correctly.
[09:50:25]: fastlane uses `xcodebuild` commands to generate your binary, you can see the
[09:50:25]: the full commands printed out in yellow in the above log.
[09:50:25]: Make sure to inspect the output above, as usually you'll find more error information there
[09:50:25]: 
+------------------------------------+--------------------------------------------------+
|                                     Lane Context                                      |
+------------------------------------+--------------------------------------------------+
| DEFAULT_PLATFORM                   | ios                                              |
| PLATFORM_NAME                      | ios                                              |
| LANE_NAME                          | ios qa                                           |
| SIGH_PROFILE_TYPE                  | enterprise                                       |
| MATCH_PROVISIONING_PROFILE_MAPPING | {"com."=>"match InHouse com."} |
+------------------------------------+--------------------------------------------------+
[09:50:25]: Error packaging up the application

+------+-------------------------------------+-------------+
|                     fastlane summary                     |
+------+-------------------------------------+-------------+
| Step | Action                              | Time (in s) |
+------+-------------------------------------+-------------+
| 1    | Verifying required fastlane version | 0           |
| 2    | default_platform                    | 0           |
| 3    | match                               | 13          |
| 4    | cocoapods                           | 530         |
| 💥    | gym                                 | 268         |
+------+-------------------------------------+-------------+

Environment

✅ fastlane environment ✅

Stack

Key Value
OS 10.12.6
Ruby 2.3.1
Bundler? true
Git git version 2.13.5 (Apple Git-94)
Installation Source /Volumes/MacintoshHD2/Users//Projects/iOS///vendor/bundle/ruby/2.3.0/bin/fastlane
Host Mac OS X 10.12.6 (16G29)
Ruby Lib Dir ~/.rbenv/versions/2.3.1/lib
OpenSSL Version OpenSSL 1.0.2j 26 Sep 2016
Is contained false
Is homebrew false
Is installed via Fabric.app false
Xcode Path /Applications/Xcode.app/Contents/Developer/
Xcode Version 9.0.1

System Locale

Variable Value
LANG en_US.UTF-8
LC_ALL
LANGUAGE

fastlane files:

`./fastlane/Fastfile`
# Customise this file, documentation can be found here:
# https://github.com/fastlane/fastlane/tree/master/fastlane/docs
# All available actions: https://github.com/fastlane/fastlane/blob/master/fastlane/docs/Actions.md
# can also be listed using the `fastlane actions` command

# Change the syntax highlighting to Ruby
# All lines starting with a # are ignored when running `fastlane`

# If you want to automatically update fastlane if a new version is available:
# update_fastlane

# This is the minimum version number required.
# Update this, if you use features of a newer version
fastlane_version "2.58.0"

default_platform :ios

platform :ios do

  desc "Build and submit a new QA Build"
  lane :qa do
#ensure_git_branch(branch: 'master')
    match(app_identifier: ENV['PRODUCTION_APP_IDENTIFIER'], type: "enterprise", readonly: true)
    cocoapods(repo_update: true)
    gym(
      scheme: "", 
      configuration: "QA", 
      export_method: "enterprise",
      output_directory: "build", 
      output_name: "", 
      clean: true,
      export_options: {
        'signingStyle' => 'manual',
        provisioningProfiles: { 
          ENV['SIGH_APP_IDENTIFIER'] => ENV['SIGH_PROVISIONING_PROFILE_NAME']
        }
      }
    )
  end

end

# Helper functions

def get_build_number
  `/usr/libexec/PlistBuddy -c 'Print CFBundleVersion' ..//-Info.plist`.strip
end

def get_version_number
  `/usr/libexec/PlistBuddy -c 'Print CFBundleShortVersionString' ..//-Info.plist`.strip
end

def get_build_number_MX
  `/usr/libexec/PlistBuddy -c 'Print CFBundleVersion' ..//-Info.plist`.strip
end

def get_version_number_MX
  `/usr/libexec/PlistBuddy -c 'Print CFBundleShortVersionString' ..//-Info.plist`.strip
end

`./fastlane/Appfile`
app_identifier "com." # The bundle identifier of your app
apple_id "enterprise@.com" # Your Apple email address

team_id ""  # Developer Portal Team ID

# 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.62.1 ✅ Up-To-Date

Loaded fastlane plugins:

No plugins Loaded

Loaded gems
Gem Version
did_you_mean 1.0.0
bundler 1.15.4
io-console 0.4.5
CFPropertyList 2.3.5
i18n 0.8.6
minitest 5.10.3
thread_safe 0.3.6
tzinfo 1.2.3
activesupport 4.2.10
public_suffix 2.0.5
addressable 2.5.2
aws-partitions 1.24.0
aws-sigv4 1.0.2
jmespath 1.3.1
aws-sdk-core 3.6.0
aws-sdk-acm 1.0.0
aws-sdk-apigateway 1.1.0
aws-sdk-applicationautoscaling 1.3.0
aws-sdk-applicationdiscoveryservice 1.0.0
aws-sdk-appstream 1.2.0
aws-sdk-athena 1.0.0
aws-sdk-autoscaling 1.3.0
aws-sdk-batch 1.1.0
aws-sdk-budgets 1.2.0
aws-sdk-clouddirectory 1.0.0
aws-sdk-cloudformation 1.2.0
aws-sdk-cloudfront 1.0.0
aws-sdk-cloudhsm 1.2.0
aws-sdk-cloudhsmv2 1.0.0
aws-sdk-cloudsearch 1.0.0
aws-sdk-cloudsearchdomain 1.0.0
aws-sdk-cloudtrail 1.0.0
aws-sdk-cloudwatch 1.2.0
aws-sdk-cloudwatchevents 1.1.0
aws-sdk-cloudwatchlogs 1.2.0
aws-sdk-codebuild 1.3.0
aws-sdk-codecommit 1.0.0
aws-sdk-codedeploy 1.0.0
aws-sdk-codepipeline 1.1.0
aws-sdk-codestar 1.1.0
aws-sdk-cognitoidentity 1.0.0
aws-sdk-cognitoidentityprovider 1.0.0
aws-sdk-cognitosync 1.0.0
aws-sdk-configservice 1.3.0
aws-sdk-costandusagereportservice 1.0.0
aws-sdk-databasemigrationservice 1.1.0
aws-sdk-datapipeline 1.0.0
aws-sdk-dax 1.0.0
aws-sdk-devicefarm 1.2.0
aws-sdk-directconnect 1.0.0
aws-sdk-directoryservice 1.0.0
aws-sdk-dynamodb 1.2.0
aws-sdk-dynamodbstreams 1.0.0
aws-sdk-ec2 1.11.0
aws-sdk-ecr 1.1.0
aws-sdk-ecs 1.2.0
aws-sdk-efs 1.0.0
aws-sdk-elasticache 1.1.0
aws-sdk-elasticbeanstalk 1.1.0
aws-sdk-elasticloadbalancing 1.1.0
aws-sdk-elasticloadbalancingv2 1.4.0
aws-sdk-elasticsearchservice 1.0.0
aws-sdk-elastictranscoder 1.0.0
aws-sdk-emr 1.0.0
aws-sdk-firehose 1.0.0
aws-sdk-gamelift 1.1.0
aws-sdk-glacier 1.4.0
aws-sdk-glue 1.0.0
aws-sdk-greengrass 1.1.0
aws-sdk-health 1.0.0
aws-sdk-iam 1.3.0
aws-sigv2 1.0.1
aws-sdk-importexport 1.0.0
aws-sdk-inspector 1.1.0
aws-sdk-iot 1.0.0
aws-sdk-iotdataplane 1.0.0
aws-sdk-kinesis 1.0.0
aws-sdk-kinesisanalytics 1.1.0
aws-sdk-kms 1.2.0
aws-sdk-lambda 1.0.0
aws-sdk-lambdapreview 1.0.0
aws-sdk-lex 1.2.0
aws-sdk-lexmodelbuildingservice 1.2.0
aws-sdk-lightsail 1.0.0
aws-sdk-machinelearning 1.0.0
aws-sdk-marketplacecommerceanalytics 1.0.0
aws-sdk-marketplaceentitlementservice 1.0.0
aws-sdk-marketplacemetering 1.0.0
aws-sdk-migrationhub 1.0.0
aws-sdk-mobile 1.0.0
aws-sdk-mturk 1.1.0
aws-sdk-opsworks 1.1.0
aws-sdk-opsworkscm 1.1.0
aws-sdk-organizations 1.4.0
aws-sdk-pinpoint 1.1.0
aws-sdk-polly 1.2.0
aws-sdk-rds 1.4.0
aws-sdk-redshift 1.1.0
aws-sdk-rekognition 1.0.0
aws-sdk-resourcegroupstaggingapi 1.0.0
aws-sdk-route53 1.3.0
aws-sdk-route53domains 1.1.0
aws-sdk-s3 1.5.0
aws-sdk-servicecatalog 1.1.0
aws-sdk-ses 1.2.0
aws-sdk-shield 1.0.0
aws-sdk-simpledb 1.0.0
aws-sdk-sms 1.0.0
aws-sdk-snowball 1.1.0
aws-sdk-sns 1.1.0
aws-sdk-sqs 1.2.0
aws-sdk-ssm 1.2.0
aws-sdk-states 1.0.0
aws-sdk-storagegateway 1.1.0
aws-sdk-support 1.0.0
aws-sdk-swf 1.0.0
aws-sdk-waf 1.1.0
aws-sdk-wafregional 1.1.0
aws-sdk-workdocs 1.0.0
aws-sdk-workspaces 1.0.0
aws-sdk-xray 1.0.0
aws-sdk-resources 3.1.0
aws-sdk 3.0.1
babosa 1.0.2
claide 1.0.2
fuzzy_match 2.0.4
nap 1.1.0
cocoapods-core 1.3.1
cocoapods-deintegrate 1.0.1
cocoapods-downloader 1.1.3
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.0.3
molinillo 0.5.7
ruby-macho 1.1.0
nanaimo 0.2.3
xcodeproj 1.5.2
cocoapods 1.3.1
colored 1.2
highline 1.7.8
commander 4.4.3
commander-fastlane 4.4.5
declarative 0.0.10
declarative-option 0.1.0
unf_ext 0.0.7.4
unf 0.1.4
domain_name 0.5.20170404
dotenv 2.2.1
excon 0.59.0
multipart-post 2.0.0
faraday 0.13.1
http-cookie 1.0.3
faraday-cookie_jar 0.0.6
faraday_middleware 0.12.2
fastimage 2.1.0
jwt 2.1.0
little-plugger 1.1.4
multi_json 1.12.2
logging 2.2.2
memoist 0.16.0
os 0.9.6
signet 0.8.1
googleauth 0.6.1
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.1
google-api-client 0.13.6
json 1.8.6
mini_magick 4.5.1
multi_xml 0.6.0
plist 3.3.0
rubyzip 1.2.1
security 0.1.3
slack-notifier 1.5.1
terminal-notifier 1.8.0
terminal-table 1.4.5
tty-screen 0.5.1
word_wrap 1.0.0
rouge 2.0.7
xcpretty 0.2.8
xcpretty-travis-formatter 1.0.0
net-ssh 4.2.0
net-sftp 2.1.2
krausefx-shenzhen 0.14.11
rest-client 2.0.2

generated on: 2017-10-27

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Reactions: 2
  • Comments: 23 (2 by maintainers)

Most upvoted comments

@jlubeck Yea. Providing export_options parameter in gym fixed this issue for me. Below is my code snippet from Fastfile.

gym(scheme: 'Production', export_method: 'app-store', export_options: {'signingStyle' => 'manual', provisioningProfiles: { "com.*****.production" => "***** Production", "com.*****.production.OneSignalNotificationServiceExtension" => "OneSignal Production" }})

Make sure you mention Prov profiles for all the targets (e.g I have mentioned for notification extension target)