fastlane: AdHoc Beta Entitlements Missing
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
Previously, about 1-2 weeks ago, everything was working fine. No issues.
Yesterday, AdHoc builds stopped working. Fastlane and XCode configurations have not been changed since it was last used. Command Line Tools had been updated.
I can’t submit to Hockey App as it states Beta Entitlements are missing, which was never the case before. Previously, I only had to specify the certificates and schemas to build and it worked. Now, it’s saying the rest of the targets, that shouldn’t be included, are mismatched for gym.
While trying to debug myself, I’ve updated Fastlane to the latest version and reset all my provisioning profiles.
EDIT: Just tried it out on my Coworker’s mac and it builds perfectly fine. Coworker is using an older version of Command Line Tools.
Any help would be much appreciated. Thank You!
Complete output when running fastlane, including the stack trace and command used
rbenv detected, removing env variables rbenv: no such command `shell' + xcodebuild -exportArchive -exportOptionsPlist /var/folders/yd/vvjpvqxd1zsgpynk5rl8793w0000gn/T/gym_config20180404-17111-1867i2l.plist -archivePath '/Users/USER/Library/Developer/Xcode/Archives/2018-04-04/DEV-Staging-example 2018-04-04 14.20.08.xcarchive' -exportPath /var/folders/yd/vvjpvqxd1zsgpynk5rl8793w0000gn/T/gym_output20180404-17111-1tai5b3 2018-04-04 14:25:49.761 xcodebuild[22431:178675] [MT] IDEDistribution: -[IDEDistributionLogging _createLoggingBundleAtPath:]: Created bundle at path '/var/folders/yd/vvjpvqxd1zsgpynk5rl8793w0000gn/T/DEV-Staging-example_2018-04-04_14-25-49.760.xcdistributionlogs'. 2018-04-04 14:25:51.238 xcodebuild[22431:178675] [MT] IDEDistribution: Step failed: <IDEDistributionSigningAssetsStep: 0x7f828e274780>: Error Domain=IDEDistributionSigningAssetStepErrorDomain Code=0 "Locating signing assets failed." UserInfo={NSLocalizedDescription=Locating signing assets failed., IDEDistributionSigningAssetStepUnderlyingErrors=( "Error Domain=IDEProfileQualificationErrorDomain Code=8 \"Provisioning profile \"match AdHoc com.example.development-staging\" doesn't include the beta-reports-active entitlement.\" UserInfo={IDEProfileQualificationError_Profile=<IDEEmbeddedProvisioningProfile 0x7f828b231b80: name: match AdHoc com.example.development-staging, UUID: 94be6dc7-c083-41c7-8d3b-1cbe48276897, teamName: COMPANY NAME, teamIdentifierPrefixes: (\n IDENTIFIER\n), entitlements: {\n \"application-identifier\" = \"IDENTIFIER.com.example.development-staging\";\n \"aps-environment\" = production;\n \"com.apple.developer.associated-domains\" = \"*\";\n \"com.apple.developer.team-identifier\" = IDENTIFIER;\n \"get-task-allow\" = 0;\n \"keychain-access-groups\" = (\n \"IDENTIFIER.*\"\n );\n}, appIdentifierName: XC com example fitness development-staging, applicationIdentifierPrefixes: (\n IDENTIFIER\n), dateCreated: 2018-04-03 09:08:42 +0000, dateExpired: 2018-12-14 02:24:49 +0000, certificateKind: 1.2.840.113635.100.6.1.4, certificateSHA1Hashes: {(\n A1FD16FF005DF1999457B3B690D813151AA55E3C\n)}, supportedUDIDs: {(\n a9624229906b1235ff824185fa89e83a1eb248da,\n 00292eda534dc74f69fab4728a3b5efc22f0bf60,\n 16ceca26adb917999107c9913e5a024986d4aa72,\n 8214552ac1c164938ebee3c1ebb3df534f9cf824,\n 3cc644a0b6a03c83db58edf80ca95ca0487f5c78,\n 9137ef07529bd1b45d282aced841ac99765f264b,\n 7d9abf9b8de7fafc9132c1e58afac4f30afa5331,\n 21e4d1cd1232605d98279330bc5ea854be58a43c,\n 3a86ec388cfb53a22c2b43dfff0558bca64163f1,\n 5eace748449e021b19ab014674bc77c9a84e0604,\n d578f3832b97e9ec2a1c4ee7522c80362ed85749,\n ee633d11ca70a07b8fc4d3c041e6d696c5c71535\n)}, isUniversal: 0, isXcodeManaged: 0, platforms: {(\n <DVTPlatform:0x7f828b03db60:'com.apple.platform.watchos':<DVTFilePath:0x7f828b03dae0:'/Applications/Xcode.app/Contents/Developer/Platforms/WatchOS.platform'>>,\n <DVTPlatform:0x7f8289522d80:'com.apple.platform.iphoneos':<DVTFilePath:0x7f8289522d00:'/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform'>>\n)}, filePath: <DVTFilePath:0x7f828b6f32b0:'/Users/USER/Library/MobileDevice/Provisioning Profiles/94be6dc7-c083-41c7-8d3b-1cbe48276897.mobileprovision'>>, NSLocalizedDescription=Provisioning profile \"match AdHoc com.example.development-staging\" doesn't include the beta-reports-active entitlement., IDEProfileQualificationErrorMissingEntitlements=(\n \"beta-reports-active\"\n)}" )} error: exportArchive: Provisioning profile "match AdHoc com.example.development-staging" doesn't include the beta-reports-active entitlement.Error Domain=IDEProfileQualificationErrorDomain Code=8 “Provisioning profile “match AdHoc com.example.development-staging” doesn’t include the beta-reports-active entitlement.” UserInfo={IDEProfileQualificationError_Profile=<IDEEmbeddedProvisioningProfile 0x7f828b231b80: name: match AdHoc com.example.development-staging, UUID: 94be6dc7-c083-41c7-8d3b-1cbe48276897, teamName: COMPANY NAME, teamIdentifierPrefixes: ( IDENTIFIER ), entitlements: { “application-identifier” = “IDENTIFIER.com.example.development-staging”; “aps-environment” = production; “com.apple.developer.associated-domains” = “"; “com.apple.developer.team-identifier” = IDENTIFIER; “get-task-allow” = 0; “keychain-access-groups” = ( "IDENTIFIER.” ); }, appIdentifierName: XC com example fitness development-staging, applicationIdentifierPrefixes: ( IDENTIFIER ), dateCreated: 2018-04-03 09:08:42 +0000, dateExpired: 2018-12-14 02:24:49 +0000, certificateKind: 1.2.840.113635.100.6.1.4, certificateSHA1Hashes: {( A1FD16FF005DF1999457B3B690D813151AA55E3C )}, supportedUDIDs: {( a9624229906b1235ff824185fa89e83a1eb248da, 00292eda534dc74f69fab4728a3b5efc22f0bf60, 16ceca26adb917999107c9913e5a024986d4aa72, 8214552ac1c164938ebee3c1ebb3df534f9cf824, 3cc644a0b6a03c83db58edf80ca95ca0487f5c78, 9137ef07529bd1b45d282aced841ac99765f264b, 7d9abf9b8de7fafc9132c1e58afac4f30afa5331, 21e4d1cd1232605d98279330bc5ea854be58a43c, 3a86ec388cfb53a22c2b43dfff0558bca64163f1, 5eace748449e021b19ab014674bc77c9a84e0604, d578f3832b97e9ec2a1c4ee7522c80362ed85749, ee633d11ca70a07b8fc4d3c041e6d696c5c71535 )}, isUniversal: 0, isXcodeManaged: 0, platforms: {( <DVTPlatform:0x7f828b03db60:‘com.apple.platform.watchos’:DVTFilePath:0x7f828b03dae0:‘/Applications/Xcode.app/Contents/Developer/Platforms/WatchOS.platform’>, <DVTPlatform:0x7f8289522d80:‘com.apple.platform.iphoneos’:DVTFilePath:0x7f8289522d00:‘/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform’> )}, filePath: <DVTFilePath:0x7f828b6f32b0:‘/Users/USER/Library/MobileDevice/Provisioning Profiles/94be6dc7-c083-41c7-8d3b-1cbe48276897.mobileprovision’>>, NSLocalizedDescription=Provisioning profile “match AdHoc com.example.development-staging” doesn’t include the beta-reports-active entitlement., IDEProfileQualificationErrorMissingEntitlements=( “beta-reports-active” )}
** EXPORT FAILED ** [14:25:51]: Exit status: 70
±--------------±------------------------+ | Build environment | ±--------------±------------------------+ | xcode_path | /Applications/Xcode.app | | gym_version | 2.89.0 | | export_method | ad-hoc | | sdk | iPhoneOS11.3.sdk | ±--------------±------------------------+
[14:25:51]: ▸ cd /Users/USER/Repos/jandals/ios [14:25:51]: ▸ export PATH=“/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Users/USER/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/bin:/Users/USER/.rbenv/versions/2.3.1/bin:/Users/USER/.rbenv/libexec:/Users/USER/.rbenv/plugins/ruby-build/bin:/Users/USER/.fastlane/bin:/Users/USER/.pyenv/shims:/Users/USER/Others/git-achievements:/Users/USER/.rbenv/shims:/Users/USER/.rbenv/bin:/Users/USER/Development/android-sdk-macosx/platform-tools:/Users/USER/Development/android-sdk-macosx/tools:/Library/Java/JavaVirtualMachines/jdk1.8.0_66.jdk/Contents/Home/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Frameworks/Mono.framework/Versions/Current/Commands” [14:25:51]: ▸ /usr/bin/touch -c /Users/USER/Library/Developer/Xcode/DerivedData/example-dkobvjeqbkommufskglwavtbxwnm/Build/Intermediates.noindex/ArchiveIntermediates/DEV-Staging-example/BuildProductsPath/Release-iphoneos/DEV-Staging-example.app.dSYM [14:25:51]: ▸ ** ARCHIVE SUCCEEDED ** [14:25:51]: [14:25:51]: ⬆️ Check out the few lines of raw
xcodebuild
output above for potential hints on how to solve this error [14:25:51]: 📋 For the complete and more detailed error log, check the full log at: [14:25:51]: 📋 /Users/USER/Library/Logs/gym/DEV-Staging-example-DEV-Staging-example.log [14:25:51]: [14:25:51]: There seems to be a mismatch between your providedexport_method
in gym [14:25:51]: and the selected provisioning profiles. You passed the following options: [14:25:51]: export_method: ad-hoc [14:25:51]: Bundle identifier: com.example [14:25:51]: Profile name: match AppStore com.example [14:25:51]: Profile type: app-store [14:25:51]: Make sure to either change theexport_method
passed from your Fastfile or CLI [14:25:51]: or select the correct provisioning profiles by updating your Xcode project [14:25:51]: or passing the profiles to use by using match or manually via theexport_options
hash [14:25:51]: [14:25:51]: [14:25:51]: There seems to be a mismatch between your providedexport_method
in gym [14:25:51]: and the selected provisioning profiles. You passed the following options: [14:25:51]: export_method: ad-hoc [14:25:51]: Bundle identifier: com.example.cn [14:25:51]: Profile name: match AppStore com.example.cn [14:25:51]: Profile type: app-store [14:25:51]: Make sure to either change theexport_method
passed from your Fastfile or CLI [14:25:51]: or select the correct provisioning profiles by updating your Xcode project [14:25:51]: or passing the profiles to use by using match or manually via theexport_options
hash [14:25:51]: [14:25:51]: [14:25:51]: There seems to be a mismatch between your providedexport_method
in gym [14:25:51]: and the selected provisioning profiles. You passed the following options: [14:25:51]: export_method: ad-hoc [14:25:51]: Bundle identifier: com.example.development-local [14:25:51]: Profile name: match AppStore com.example.development-local [14:25:51]: Profile type: app-store [14:25:51]: Make sure to either change theexport_method
passed from your Fastfile or CLI [14:25:51]: or select the correct provisioning profiles by updating your Xcode project [14:25:51]: or passing the profiles to use by using match or manually via theexport_options
hash [14:25:51]: [14:25:51]: [14:25:51]: There seems to be a mismatch between your providedexport_method
in gym [14:25:51]: and the selected provisioning profiles. You passed the following options: [14:25:51]: export_method: ad-hoc [14:25:51]: Bundle identifier: com.example.cn.development-local [14:25:51]: Profile name: match AppStore com.example.cn.development-local [14:25:51]: Profile type: app-store [14:25:51]: Make sure to either change theexport_method
passed from your Fastfile or CLI [14:25:51]: or select the correct provisioning profiles by updating your Xcode project [14:25:51]: or passing the profiles to use by using match or manually via theexport_options
hash [14:25:51]: [14:25:51]: [14:25:51]: There seems to be a mismatch between your providedexport_method
in gym [14:25:51]: and the selected provisioning profiles. You passed the following options: [14:25:51]: export_method: ad-hoc [14:25:51]: Bundle identifier: com.example.development-preprod [14:25:51]: Profile name: match AppStore com.example.development-preprod [14:25:51]: Profile type: app-store [14:25:51]: Make sure to either change theexport_method
passed from your Fastfile or CLI [14:25:51]: or select the correct provisioning profiles by updating your Xcode project [14:25:51]: or passing the profiles to use by using match or manually via theexport_options
hash [14:25:51]: [14:25:51]: [14:25:51]: There seems to be a mismatch between your providedexport_method
in gym [14:25:51]: and the selected provisioning profiles. You passed the following options: [14:25:51]: export_method: ad-hoc [14:25:51]: Bundle identifier: com.example.cn.development-preprod [14:25:51]: Profile name: match AppStore com.example.cn.development-preprod [14:25:51]: Profile type: app-store [14:25:51]: Make sure to either change theexport_method
passed from your Fastfile or CLI [14:25:51]: or select the correct provisioning profiles by updating your Xcode project [14:25:51]: or passing the profiles to use by using match or manually via theexport_options
hash [14:25:51]: [14:25:51]: [14:25:51]: There seems to be a mismatch between your providedexport_method
in gym [14:25:51]: and the selected provisioning profiles. You passed the following options: [14:25:51]: export_method: ad-hoc [14:25:51]: Bundle identifier: com.example.example-notification-service [14:25:51]: Profile name: match AppStore com.example.example-notification-service [14:25:51]: Profile type: app-store [14:25:51]: Make sure to either change theexport_method
passed from your Fastfile or CLI [14:25:51]: or select the correct provisioning profiles by updating your Xcode project [14:25:51]: or passing the profiles to use by using match or manually via theexport_options
hash [14:25:51]: [14:25:51]: [14:25:51]: There seems to be a mismatch between your providedexport_method
in gym [14:25:51]: and the selected provisioning profiles. You passed the following options: [14:25:51]: export_method: ad-hoc [14:25:51]: Bundle identifier: com.example.cn.example-notification-service [14:25:51]: Profile name: match AppStore com.example.cn.example-notification-service [14:25:51]: Profile type: app-store [14:25:51]: Make sure to either change theexport_method
passed from your Fastfile or CLI [14:25:51]: or select the correct provisioning profiles by updating your Xcode project [14:25:51]: or passing the profiles to use by using match or manually via theexport_options
hash [14:25:51]: [14:25:51]: [14:25:51]: Looks like fastlane ran into a build/archive error with your project [14:25:51]: It’s hard to tell what’s causing the error, so we wrote some guides on how [14:25:51]: to troubleshoot build and signing issues: https://docs.fastlane.tools/codesigning/getting-started/ [14:25:51]: Before submitting an issue on GitHub, please follow the guide above and make [14:25:51]: sure your project is set up correctly. [14:25:51]: fastlane usesxcodebuild
commands to generate your binary, you can see the [14:25:51]: the full commands printed out in yellow in the above log. [14:25:51]: Make sure to inspect the output above, as usually you’ll find more error information there [14:25:51]: ±-----------------------------------±--------------------------------------------------------------+ | Lane Context | ±-----------------------------------±--------------------------------------------------------------+ | DEFAULT_PLATFORM | ios | | PLATFORM_NAME | ios | | LANE_NAME | ios beta_hockey_app | | SIGH_PROFILE_TYPE | ad-hoc | | MATCH_PROVISIONING_PROFILE_MAPPING | {“com.example.development-staging”=>“match AdHoc | | | com.example.development-staging”, | | | “com.example.cn.development-staging”=>“match AdHoc | | | com.example.cn.development-staging”} | ±-----------------------------------±--------------------------------------------------------------+
Environment
✅ fastlane environment ✅
Stack
Key | Value |
---|---|
OS | 10.13.4 |
Ruby | 2.3.1 |
Bundler? | true |
Git | git version 2.6.4 |
Installation Source | ~/.rbenv/versions/2.3.1/bin/fastlane |
Host | Mac OS X 10.13.4 (17E199) |
Ruby Lib Dir | ~/.rbenv/versions/2.3.1/lib |
OpenSSL Version | OpenSSL 1.0.2l 25 May 2017 |
Is contained | false |
Is homebrew | false |
Is installed via Fabric.app | false |
Xcode Path | /Applications/Xcode.app/Contents/Developer/ |
Xcode Version | 9.3 |
System Locale
Variable | Value | |
---|---|---|
LANG | en_US.UTF-8 | ✅ |
LC_ALL | ||
LANGUAGE |
fastlane files:
`./fastlane/Fastfile`
fastlane_require "dotenv/load"
packages_prod = [
"com.example",
"com.example.cn"
]
packages_stage = [
"com.example.development-staging",
"com.example.cn.development-staging"
]
packages_preprod = [
"com.example.development-preprod",
"com.example.cn.development-preprod"
]
packages_dev = [
"com.example.development-local",
"com.example.cn.development-local"
]
packages_services = [
"com.example.notification-service",
"com.example.cn.notification-service"
]
# 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.89.0"
default_platform :ios
platform :ios do
before_all do
# ENV["SLACK_URL"] = "https://hooks.slack.com/services/..."
# cocoapods
# carthage
end
desc "Runs all the tests"
lane :test do
run_tests
end
desc "Sync iOS Provisioning Profiles and Certificates for each Developer"
lane :certificates do
sync_certificates
sync_certificates(cert_type: "adhoc")
sync_certificates(cert_type: "appstore")
end
desc "Submit a new Beta Build to Apple TestFlight and HockeyApp"
lane :beta do
beta_hockey_app
beta_test_flight
# sh "your_script.sh"
# You can also use other beta testing services here (run `fastlane actions`)
end
desc "Deploy a new version to the Apple App Store"
lane :release do
sync_production_certificates
# capture_screenshots
deploy_production_app(scheme: "COMPANY")
deploy_production_app(scheme: "COMPANY-CN")
# frame_screenshots
end
lane :beta_hockey_app do
sync_staging_certificates(cert_type: "adhoc")
deploy_hockey_app(scheme: "DEV-Staging-COMPANY")
deploy_hockey_app(scheme: "DEV-Staging-COMPANY-CN")
end
lane :beta_test_flight do
sync_staging_certificates(cert_type: "appstore")
deploy_test_flight_app(scheme: "DEV-Staging-COMPANY")
deploy_test_flight_app(scheme: "DEV-Staging-COMPANY-CN")
end
desc "Deploy a new PreProd Build to Apple TestFlight and HockeyApp"
lane :preprod do
preprod_hockey_app
preprod_test_flight
end
lane :preprod_test_flight do
sync_preprod_certificates(cert_type: "appstore")
deploy_test_flight_app(scheme: "DEV-PreProd-COMPANY")
deploy_test_flight_app(scheme: "DEV-PreProd-COMPANY-CN")
end
lane :preprod_hockey_app do
sync_preprod_certificates(cert_type: "adhoc")
deploy_hockey_app(scheme: "DEV-PreProd-COMPANY")
deploy_hockey_app(scheme: "DEV-PreProd-COMPANY-CN")
end
private_lane :deploy_hockey_app do |options|
create_app(
scheme: options[:scheme],
method: "ad-hoc"
)
hockey(api_token: ENV["HOCKEY_API_KEY"])
end
private_lane :deploy_test_flight_app do |options|
create_app(scheme: options[:scheme])
upload_to_testflight
end
private_lane :deploy_production_app do |options|
create_app(scheme: options[:scheme])
upload_to_app_store(
force: true,
skip_metadata: true,
skip_screenshots: true
)
end
private_lane :create_app do |options|
#disable_automatic_code_signing(
#path: "./ios/COMPANY.xcodeproj"
#)
gym(
clean: true,
workspace: "./ios/COMPANY.xcworkspace",
scheme: options[:scheme],
export_method: options[:method] || "app-store"
)
end
private_lane :sync_production_certificates do |options|
sync_certificates(
package_ids: packages_prod + packages_services,
cert_type: "appstore",
update_devices: options[:update_devices]
)
end
private_lane :sync_staging_certificates do |options|
sync_certificates(
package_ids: packages_stage,
cert_type: options[:cert_type],
update_devices: options[:update_devices]
)
end
private_lane :sync_preprod_certificates do |options|
sync_certificates(
package_ids: packages_preprod,
cert_type: options[:cert_type],
update_devices: options[:update_devices]
)
end
private_lane :sync_certificates do |options|
default_packages = packages_dev +
packages_stage +
packages_prod +
packages_services +
packages_preprod
package_ids = options[:package_ids] || default_packages
cert_type = options[:cert_type] || "development"
new_devices = options[:update_devices] || false
force = options[:force] || false
readonly = !options[:update_devices] && !force
match(
app_identifier: package_ids,
readonly: readonly,
force: force,
type: cert_type,
force_for_new_devices: new_devices
)
end
desc "Sync iOS Provisioning Profiles and Certificates for each Developer with new devices"
private_lane :update_devices do
package_list = packages_dev +
packages_stage +
packages_prod +
packages_preprod
sync_certificates(
package_ids: package_list,
update_devices: true,
cert_type: "adhoc"
)
sync_certificates(
package_ids: package_list,
update_devices: true
)
end
desc "Regenerate Certificates"
private_lane :regenerate_certs do
package_list = packages_dev +
packages_stage +
packages_prod +
packages_preprod
sync_certificates(
package_ids: package_list,
force: true,
cert_type: "adhoc"
)
sync_certificates(
package_ids: package_list,
force: true
)
sync_certificates(
package_ids: package_list,
force: true,
cert_type: "appstore"
)
end
after_all do |lane|
# This block is called, only if the executed lane was successful
# slack(
# message: "Successfully deployed new App Update."
# )
end
error do |lane, exception|
# slack(
# message: exception.message,
# success: false
# )
end
end
platform :android do
desc "Deploy a new version to the Google Play Store"
desc "The China version of the app will be located in android/app/build/outputs/apk/"
desc "and should be uploaded manually."
lane :release do
deploy_production_app(
apk: "app-international-release.apk",
flavor: "International",
package_name: "com.example"
)
create_app(flavor: "China")
end
desc "Submit a new Beta Build to HockeyApp"
lane :beta do
deploy_staging_app(flavor: "International", build_type: "StagingRelease")
deploy_staging_app(flavor: "China", build_type: "StagingRelease")
end
desc "Deploy a new PreProd Build to HockeyApp"
lane :preprod do
deploy_staging_app(flavor: "International", build_type: "PreProdRelease")
deploy_staging_app(flavor: "China", build_type: "PreProdRelease")
end
private_lane :deploy_production_app do |options|
create_app(
flavor: options[:flavor]
)
upload_to_play_store(
apk: "./android/app/build/outputs/apk/#{options[:apk]}",
package_name: options[:package_name],
track: "production",
skip_upload_metadata: true,
skip_upload_images: true,
skip_upload_screenshots: true
)
end
private_lane :deploy_staging_app do |options|
UI.success "Now building #{options[:flavor]} flavor"
create_app(
flavor: options[:flavor],
build_type: options[:build_type]
)
hockey(api_token: ENV["HOCKEY_API_KEY"])
end
private_lane :create_app do |options|
gradle(
task: "assemble",
project_dir: "./android",
flavor: options[:flavor],
build_type: options[:build_type] || "Release"
)
end
end
`./fastlane/Appfile`
apple_id "dev-code@COMPANY.com" # Your Apple email address
team_id "TEAMID" # Developer Portal Team ID
json_key_file "./fastlane/google_play_service_key.json" # Google Play Service Key for Deployment
fastlane gems
Gem | Version | Update-Status |
---|---|---|
fastlane | 2.89.0 | ✅ Up-To-Date |
Loaded fastlane plugins:
No plugins Loaded
Loaded gems
Gem | Version |
---|---|
did_you_mean | 1.0.0 |
bundler | 1.16.1 |
io-console | 0.4.5 |
rake | 12.3.0 |
CFPropertyList | 3.0.0 |
i18n | 0.8.6 |
minitest | 5.10.3 |
thread_safe | 0.3.6 |
tzinfo | 1.2.4 |
activesupport | 4.2.10 |
public_suffix | 2.0.5 |
addressable | 2.5.2 |
ast | 2.3.0 |
atomos | 0.1.2 |
babosa | 1.0.2 |
claide | 1.0.2 |
fuzzy_match | 2.0.4 |
nap | 1.1.0 |
cocoapods-core | 1.1.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.7.8 |
cocoapods-trunk | 1.1.2 |
cocoapods-try | 1.1.0 |
colored | 1.2 |
escape | 0.0.4 |
fourflusher | 2.0.1 |
gh_inspector | 1.1.3 |
molinillo | 0.5.5 |
colored2 | 3.1.2 |
nanaimo | 0.2.4 |
xcodeproj | 1.5.7 |
cocoapods | 1.1.1 |
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.20170404 |
dotenv | 2.2.1 |
thor | 0.19.4 |
earlgrey | 0.0.13 |
excon | 0.62.0 |
multipart-post | 2.0.0 |
faraday | 0.14.0 |
http-cookie | 1.0.3 |
faraday-cookie_jar | 0.0.6 |
faraday_middleware | 0.12.2 |
fastimage | 2.1.1 |
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.1 |
google-api-client | 0.13.6 |
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.1.0 |
simctl | 1.6.3 |
slack-notifier | 2.3.2 |
terminal-notifier | 1.8.0 |
unicode-display_width | 1.3.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 |
parallel | 1.12.0 |
parser | 2.4.0.2 |
powerpack | 0.1.1 |
rainbow | 2.2.2 |
ruby-progressbar | 1.8.1 |
rubocop | 0.49.1 |
generated on: 2018-04-04
EDIT: Updating to Xcode 9.4 fixes the issue. Huzzah!
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Reactions: 12
- Comments: 39 (6 by maintainers)
I had a response from Apple Engineering to my radar;-
In my case, the only entitlements I had specified in a plist file was for the push APS Environment. It seemed a little nonsensical as typically one does not add the beta-reports-active entitlement manually, it is usually specified in the App Store provisioning profile.
This prompted me to look at the embedded.mobileprovision in the archive. In my case this was the App Store profile, when I changed by build configuration to ensure that the embedded.mobileprovision would be the Ad Hoc profile, I was able to export an Ad Hoc IPA from the Organizer successfully.
I am wondering if we are seeing this in the Fastlane context because gym is being run with a build configuration (e.g. “Release”) that has an app store profile specified in the build settings and that whereas in 9.2, specifying the export_method to ad-hoc was sufficient, in 9.3 Apple have “fixed” it to pick up on the discrepancy with the embedded.mobileprovision?
Yeah, I filed a radar for this yesterday: https://openradar.appspot.com/39177635
Please dupe it so it gets more attention from .
I implemented the workaround suggested by @justMaku by using the
automatic_code_signing
action in my ad-hoc ipa builder lane. Copying it here in case it is useful to somebody else:According to the release notes, this should be fixed in Xcode 9.4 as of Beta 2
https://download.developer.apple.com/Developer_Tools/Xcode_9.4_beta_2/Release_Notes_for_Xcode_9.4_beta_2.pdf
In the meantime, we’ve specified the ad hoc profile for our app store builds and when it comes to archiving it still does the right thing. Haven’t had any issues with app store builds going up to TestFlight and/or the beta entitlements so far.
Thanks to those who filed radars
I’m not sure if this will help anyone out but I was able to duplicate this error and “get around” this error with the following setup:
To Reproduce
This causes the IPA export to THINK its an App Store build which is causing it to go 💥 when it can’t find the beta entitlements
To “Get Around”
Note: I don’t know if this will not build with the proper beta entitlements now for an App Store build ^
Another Solution
Another solution may be to have multiple targets/schemes (one for adhoc and one for App Store) that you call so things don’t get mixed up. I haven’t done this yet but it may work for someone /shrug
Happy fastlaning 🚀
I filed a radar for this issue, someone else beat me to it as well;-
https://openradar.appspot.com/39203918
+1, updated Xcode recently. it was working perfectly fine before the update to xcode 9.3.
After updating to Xcode 9.4, the issue resolved itself. So if you’re having this issue use Xcode 9.4+
Also, a handy site was launched very recently for getting hold of old Xcode releases;-
http://xcodereleases.com
+1, I’m getting the same problem in Xcode 9.3.
I also tried manually exporting an archive using the xcodebuild command and got the same complaint re: the beta-reports-active entitlement being missing. This also applies to the Organiser GUI when you select the Ad Hoc profile.
Regenerating the profile from the developer portal manually didn’t add this entitlement to an Ad Hoc profile and as I understand it, it has no business being in an Ad Hoc profile anyway as it’s just for TestFlight.
I expected to find more chatter online as best I can tell, it’s not possible to export an Ad Hoc IPA from Xcode 9.3 at all.
I have the same problem than @Zidail everything was working fine last Friday and I have the same errors since Xcode was (automatically) updated.
I already tried to recreate my provisioning profile but it doesn’t change anything. My next try will be to re-install Xcode 9.2