{"action":"created","issue":{"url":"https://api.github.com/repos/fastlane/fastlane/issues/12228","repository_url":"https://api.github.com/repos/fastlane/fastlane","labels_url":"https://api.github.com/repos/fastlane/fastlane/issues/12228/labels{/name}","comments_url":"https://api.github.com/repos/fastlane/fastlane/issues/12228/comments","events_url":"https://api.github.com/repos/fastlane/fastlane/issues/12228/events","html_url":"https://github.com/fastlane/fastlane/issues/12228","id":311105154,"number":12228,"title":"AdHoc Beta Entitlements Missing","user":{"login":"Zidail","id":9337042,"avatar_url":"https://avatars3.githubusercontent.com/u/9337042?v=4","gravatar_id":"","url":"https://api.github.com/users/Zidail","html_url":"https://github.com/Zidail","followers_url":"https://api.github.com/users/Zidail/followers","following_url":"https://api.github.com/users/Zidail/following{/other_user}","gists_url":"https://api.github.com/users/Zidail/gists{/gist_id}","starred_url":"https://api.github.com/users/Zidail/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Zidail/subscriptions","organizations_url":"https://api.github.com/users/Zidail/orgs","repos_url":"https://api.github.com/users/Zidail/repos","events_url":"https://api.github.com/users/Zidail/events{/privacy}","received_events_url":"https://api.github.com/users/Zidail/received_events","type":"User","site_admin":false},"labels":[{"id":353914924,"url":"https://api.github.com/repos/fastlane/fastlane/labels/status:%20blocked","name":"status: blocked","color":"945200","default":false},{"id":315718126,"url":"https://api.github.com/repos/fastlane/fastlane/labels/tool:%20gym","name":"tool: gym","color":"d4c5f9","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":27,"created_at":"2018-04-04T06:49:18Z","updated_at":"2018-04-23T10:50:46Z","closed_at":null,"author_association":"NONE","body":"<!-- Thanks for helping _fastlane_! Before you submit your issue, please make sure to check the following boxes by putting an x in the [ ] (don't: [x ], [ x], do: [x]) -->\r\n\r\n### New Issue Checklist\r\n\r\n- [x] Updated fastlane to the latest version\r\n- [x] I read the [Contribution Guidelines](https://github.com/fastlane/fastlane/blob/master/CONTRIBUTING.md)\r\n- [x] I read [docs.fastlane.tools](https://docs.fastlane.tools)\r\n- [x] I searched for [existing GitHub issues](https://github.com/fastlane/fastlane/issues)\r\n\r\n### Issue Description\r\n\r\nPreviously, about 1-2 weeks ago, everything was working fine. No issues.\r\n\r\nYesterday, AdHoc builds stopped working. Fastlane and XCode configurations have not been changed since it was last used. Command Line Tools had been updated.\r\n\r\nI 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.\r\n\r\nWhile trying to debug myself, I've updated Fastlane to the latest version and reset all my provisioning profiles.\r\n\r\nEDIT: Just tried it out on my Coworker's mac and it builds perfectly fine. Coworker is using an older version of Command Line Tools.\r\n\r\nAny help would be much appreciated. Thank You!\r\n\r\n##### Complete output when running fastlane, including the stack trace and command used\r\n<!-- You can use: `--capture_output` as the last commandline argument to get that collected for you -->\r\n\r\n<!-- The output of `--capture_output` could contain sensitive data such as application ids, certificate ids, or email addreses, Please make sure you double check the output and replace anything sensitive you don't wish to submit in the issue -->\r\n\r\n<details>\r\n  <pre>rbenv detected, removing env variables\r\nrbenv: no such command `shell'\r\n+ 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\r\n2018-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'.\r\n2018-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=(\r\n\"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)}\"\r\n)}\r\nerror: exportArchive: Provisioning profile \"match AdHoc com.example.development-staging\" doesn't include the beta-reports-active entitlement.\r\n\r\nError 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: (\r\nIDENTIFIER\r\n), entitlements: {\r\n\"application-identifier\" = \"IDENTIFIER.com.example.development-staging\";\r\n\"aps-environment\" = production;\r\n\"com.apple.developer.associated-domains\" = \"*\";\r\n\"com.apple.developer.team-identifier\" = IDENTIFIER;\r\n\"get-task-allow\" = 0;\r\n\"keychain-access-groups\" =     (\r\n\"IDENTIFIER.*\"\r\n);\r\n}, appIdentifierName: XC com example fitness development-staging, applicationIdentifierPrefixes: (\r\nIDENTIFIER\r\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: {(\r\nA1FD16FF005DF1999457B3B690D813151AA55E3C\r\n)}, supportedUDIDs: {(\r\na9624229906b1235ff824185fa89e83a1eb248da,\r\n00292eda534dc74f69fab4728a3b5efc22f0bf60,\r\n16ceca26adb917999107c9913e5a024986d4aa72,\r\n8214552ac1c164938ebee3c1ebb3df534f9cf824,\r\n3cc644a0b6a03c83db58edf80ca95ca0487f5c78,\r\n9137ef07529bd1b45d282aced841ac99765f264b,\r\n7d9abf9b8de7fafc9132c1e58afac4f30afa5331,\r\n21e4d1cd1232605d98279330bc5ea854be58a43c,\r\n3a86ec388cfb53a22c2b43dfff0558bca64163f1,\r\n5eace748449e021b19ab014674bc77c9a84e0604,\r\nd578f3832b97e9ec2a1c4ee7522c80362ed85749,\r\nee633d11ca70a07b8fc4d3c041e6d696c5c71535\r\n)}, isUniversal: 0, isXcodeManaged: 0, platforms: {(\r\n<DVTPlatform:0x7f828b03db60:'com.apple.platform.watchos':<DVTFilePath:0x7f828b03dae0:'/Applications/Xcode.app/Contents/Developer/Platforms/WatchOS.platform'>>,\r\n<DVTPlatform:0x7f8289522d80:'com.apple.platform.iphoneos':<DVTFilePath:0x7f8289522d00:'/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform'>>\r\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=(\r\n\"beta-reports-active\"\r\n)}\r\n\r\n** EXPORT FAILED **\r\n[14:25:51]: Exit status: 70\r\n\r\n+---------------+-------------------------+\r\n|            Build environment            |\r\n+---------------+-------------------------+\r\n| xcode_path    | /Applications/Xcode.app |\r\n| gym_version   | 2.89.0                  |\r\n| export_method | ad-hoc                  |\r\n| sdk           | iPhoneOS11.3.sdk        |\r\n+---------------+-------------------------+\r\n\r\n[14:25:51]: ▸     cd /Users/USER/Repos/jandals/ios\r\n[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\"\r\n[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\r\n[14:25:51]: ▸ ** ARCHIVE SUCCEEDED **\r\n[14:25:51]:\r\n[14:25:51]: ⬆️  Check out the few lines of raw `xcodebuild` output above for potential hints on how to solve this error\r\n[14:25:51]: 📋  For the complete and more detailed error log, check the full log at:\r\n[14:25:51]: 📋  /Users/USER/Library/Logs/gym/DEV-Staging-example-DEV-Staging-example.log\r\n[14:25:51]:\r\n[14:25:51]: There seems to be a mismatch between your provided `export_method` in gym\r\n[14:25:51]: and the selected provisioning profiles. You passed the following options:\r\n[14:25:51]:   export_method:      ad-hoc\r\n[14:25:51]:   Bundle identifier:  com.example\r\n[14:25:51]:   Profile name:       match AppStore com.example\r\n[14:25:51]:   Profile type:       app-store\r\n[14:25:51]: Make sure to either change the `export_method` passed from your Fastfile or CLI\r\n[14:25:51]: or select the correct provisioning profiles by updating your Xcode project\r\n[14:25:51]: or passing the profiles to use by using match or manually via the `export_options` hash\r\n[14:25:51]:\r\n[14:25:51]:\r\n[14:25:51]: There seems to be a mismatch between your provided `export_method` in gym\r\n[14:25:51]: and the selected provisioning profiles. You passed the following options:\r\n[14:25:51]:   export_method:      ad-hoc\r\n[14:25:51]:   Bundle identifier:  com.example.cn\r\n[14:25:51]:   Profile name:       match AppStore com.example.cn\r\n[14:25:51]:   Profile type:       app-store\r\n[14:25:51]: Make sure to either change the `export_method` passed from your Fastfile or CLI\r\n[14:25:51]: or select the correct provisioning profiles by updating your Xcode project\r\n[14:25:51]: or passing the profiles to use by using match or manually via the `export_options` hash\r\n[14:25:51]:\r\n[14:25:51]:\r\n[14:25:51]: There seems to be a mismatch between your provided `export_method` in gym\r\n[14:25:51]: and the selected provisioning profiles. You passed the following options:\r\n[14:25:51]:   export_method:      ad-hoc\r\n[14:25:51]:   Bundle identifier:  com.example.development-local\r\n[14:25:51]:   Profile name:       match AppStore com.example.development-local\r\n[14:25:51]:   Profile type:       app-store\r\n[14:25:51]: Make sure to either change the `export_method` passed from your Fastfile or CLI\r\n[14:25:51]: or select the correct provisioning profiles by updating your Xcode project\r\n[14:25:51]: or passing the profiles to use by using match or manually via the `export_options` hash\r\n[14:25:51]:\r\n[14:25:51]:\r\n[14:25:51]: There seems to be a mismatch between your provided `export_method` in gym\r\n[14:25:51]: and the selected provisioning profiles. You passed the following options:\r\n[14:25:51]:   export_method:      ad-hoc\r\n[14:25:51]:   Bundle identifier:  com.example.cn.development-local\r\n[14:25:51]:   Profile name:       match AppStore com.example.cn.development-local\r\n[14:25:51]:   Profile type:       app-store\r\n[14:25:51]: Make sure to either change the `export_method` passed from your Fastfile or CLI\r\n[14:25:51]: or select the correct provisioning profiles by updating your Xcode project\r\n[14:25:51]: or passing the profiles to use by using match or manually via the `export_options` hash\r\n[14:25:51]:\r\n[14:25:51]:\r\n[14:25:51]: There seems to be a mismatch between your provided `export_method` in gym\r\n[14:25:51]: and the selected provisioning profiles. You passed the following options:\r\n[14:25:51]:   export_method:      ad-hoc\r\n[14:25:51]:   Bundle identifier:  com.example.development-preprod\r\n[14:25:51]:   Profile name:       match AppStore com.example.development-preprod\r\n[14:25:51]:   Profile type:       app-store\r\n[14:25:51]: Make sure to either change the `export_method` passed from your Fastfile or CLI\r\n[14:25:51]: or select the correct provisioning profiles by updating your Xcode project\r\n[14:25:51]: or passing the profiles to use by using match or manually via the `export_options` hash\r\n[14:25:51]:\r\n[14:25:51]:\r\n[14:25:51]: There seems to be a mismatch between your provided `export_method` in gym\r\n[14:25:51]: and the selected provisioning profiles. You passed the following options:\r\n[14:25:51]:   export_method:      ad-hoc\r\n[14:25:51]:   Bundle identifier:  com.example.cn.development-preprod\r\n[14:25:51]:   Profile name:       match AppStore com.example.cn.development-preprod\r\n[14:25:51]:   Profile type:       app-store\r\n[14:25:51]: Make sure to either change the `export_method` passed from your Fastfile or CLI\r\n[14:25:51]: or select the correct provisioning profiles by updating your Xcode project\r\n[14:25:51]: or passing the profiles to use by using match or manually via the `export_options` hash\r\n[14:25:51]:\r\n[14:25:51]:\r\n[14:25:51]: There seems to be a mismatch between your provided `export_method` in gym\r\n[14:25:51]: and the selected provisioning profiles. You passed the following options:\r\n[14:25:51]:   export_method:      ad-hoc\r\n[14:25:51]:   Bundle identifier:  com.example.example-notification-service\r\n[14:25:51]:   Profile name:       match AppStore com.example.example-notification-service\r\n[14:25:51]:   Profile type:       app-store\r\n[14:25:51]: Make sure to either change the `export_method` passed from your Fastfile or CLI\r\n[14:25:51]: or select the correct provisioning profiles by updating your Xcode project\r\n[14:25:51]: or passing the profiles to use by using match or manually via the `export_options` hash\r\n[14:25:51]:\r\n[14:25:51]:\r\n[14:25:51]: There seems to be a mismatch between your provided `export_method` in gym\r\n[14:25:51]: and the selected provisioning profiles. You passed the following options:\r\n[14:25:51]:   export_method:      ad-hoc\r\n[14:25:51]:   Bundle identifier:  com.example.cn.example-notification-service\r\n[14:25:51]:   Profile name:       match AppStore com.example.cn.example-notification-service\r\n[14:25:51]:   Profile type:       app-store\r\n[14:25:51]: Make sure to either change the `export_method` passed from your Fastfile or CLI\r\n[14:25:51]: or select the correct provisioning profiles by updating your Xcode project\r\n[14:25:51]: or passing the profiles to use by using match or manually via the `export_options` hash\r\n[14:25:51]:\r\n[14:25:51]:\r\n[14:25:51]: Looks like fastlane ran into a build/archive error with your project\r\n[14:25:51]: It's hard to tell what's causing the error, so we wrote some guides on how\r\n[14:25:51]: to troubleshoot build and signing issues: https://docs.fastlane.tools/codesigning/getting-started/\r\n[14:25:51]: Before submitting an issue on GitHub, please follow the guide above and make\r\n[14:25:51]: sure your project is set up correctly.\r\n[14:25:51]: fastlane uses `xcodebuild` commands to generate your binary, you can see the\r\n[14:25:51]: the full commands printed out in yellow in the above log.\r\n[14:25:51]: Make sure to inspect the output above, as usually you'll find more error information there\r\n[14:25:51]:\r\n+------------------------------------+---------------------------------------------------------------+\r\n|                                            Lane Context                                            |\r\n+------------------------------------+---------------------------------------------------------------+\r\n| DEFAULT_PLATFORM                   | ios                                                           |\r\n| PLATFORM_NAME                      | ios                                                           |\r\n| LANE_NAME                          | ios beta_hockey_app                                           |\r\n| SIGH_PROFILE_TYPE                  | ad-hoc                                                        |\r\n| MATCH_PROVISIONING_PROFILE_MAPPING | {\"com.example.development-staging\"=>\"match AdHoc    |\r\n|                                    | com.example.development-staging\",                   |\r\n|                                    | \"com.example.cn.development-staging\"=>\"match AdHoc  |\r\n|                                    | com.example.cn.development-staging\"}                |\r\n+------------------------------------+---------------------------------------------------------------+</pre>\r\n</details>\r\n\r\n### Environment\r\n\r\n<!-- Please run `fastlane env` and copy the output below. This will help us help you :+1:\r\nIf you used `--capture_output` option, please remove this block as it is already included there. -->\r\n\r\n<details><summary>✅ fastlane environment ✅</summary>\r\n\r\n### Stack\r\n\r\n| Key                         | Value                                       |\r\n| --------------------------- | ------------------------------------------- |\r\n| OS                          | 10.13.4                                     |\r\n| Ruby                        | 2.3.1                                       |\r\n| Bundler?                    | true                                        |\r\n| Git                         | git version 2.6.4                           |\r\n| Installation Source         | ~/.rbenv/versions/2.3.1/bin/fastlane        |\r\n| Host                        | Mac OS X 10.13.4 (17E199)                   |\r\n| Ruby Lib Dir                | ~/.rbenv/versions/2.3.1/lib                 |\r\n| OpenSSL Version             | OpenSSL 1.0.2l  25 May 2017                 |\r\n| Is contained                | false                                       |\r\n| Is homebrew                 | false                                       |\r\n| Is installed via Fabric.app | false                                       |\r\n| Xcode Path                  | /Applications/Xcode.app/Contents/Developer/ |\r\n| Xcode Version               | 9.3                                         |\r\n\r\n\r\n### System Locale\r\n\r\n| Variable | Value       |   |\r\n| -------- | ----------- | - |\r\n| LANG     | en_US.UTF-8 | ✅ |\r\n| LC_ALL   |             |   |\r\n| LANGUAGE |             |   |\r\n\r\n\r\n### fastlane files:\r\n\r\n<details><summary>`./fastlane/Fastfile`</summary>\r\n\r\n```ruby\r\nfastlane_require \"dotenv/load\"\r\n\r\npackages_prod = [\r\n  \"com.example\",\r\n  \"com.example.cn\"\r\n]\r\n\r\npackages_stage = [\r\n  \"com.example.development-staging\",\r\n  \"com.example.cn.development-staging\"\r\n]\r\n\r\npackages_preprod = [\r\n  \"com.example.development-preprod\",\r\n  \"com.example.cn.development-preprod\"\r\n]\r\n\r\npackages_dev = [\r\n  \"com.example.development-local\",\r\n  \"com.example.cn.development-local\"\r\n]\r\n\r\npackages_services = [\r\n  \"com.example.notification-service\",\r\n  \"com.example.cn.notification-service\"\r\n]\r\n\r\n# If you want to automatically update fastlane if a new version is available:\r\n# update_fastlane\r\n\r\n# This is the minimum version number required.\r\n# Update this, if you use features of a newer version\r\nfastlane_version \"2.89.0\"\r\n\r\ndefault_platform :ios\r\n\r\nplatform :ios do\r\n  before_all do\r\n    # ENV[\"SLACK_URL\"] = \"https://hooks.slack.com/services/...\"\r\n    # cocoapods\r\n    # carthage\r\n  end\r\n\r\n  desc \"Runs all the tests\"\r\n  lane :test do\r\n    run_tests\r\n  end\r\n\r\n  desc \"Sync iOS Provisioning Profiles and Certificates for each Developer\"\r\n  lane :certificates do\r\n    sync_certificates\r\n    sync_certificates(cert_type: \"adhoc\")\r\n    sync_certificates(cert_type: \"appstore\")\r\n  end\r\n\r\n  desc \"Submit a new Beta Build to Apple TestFlight and HockeyApp\"\r\n  lane :beta do\r\n    beta_hockey_app\r\n    beta_test_flight\r\n\r\n    # sh \"your_script.sh\"\r\n    # You can also use other beta testing services here (run `fastlane actions`)\r\n  end\r\n\r\n  desc \"Deploy a new version to the Apple App Store\"\r\n  lane :release do\r\n    sync_production_certificates\r\n\r\n    # capture_screenshots\r\n    deploy_production_app(scheme: \"COMPANY\")\r\n    deploy_production_app(scheme: \"COMPANY-CN\")\r\n    # frame_screenshots\r\n  end\r\n\r\n  lane :beta_hockey_app do\r\n    sync_staging_certificates(cert_type: \"adhoc\")\r\n\r\n    deploy_hockey_app(scheme: \"DEV-Staging-COMPANY\")\r\n    deploy_hockey_app(scheme: \"DEV-Staging-COMPANY-CN\")\r\n  end\r\n\r\n  lane :beta_test_flight do\r\n    sync_staging_certificates(cert_type: \"appstore\")\r\n\r\n    deploy_test_flight_app(scheme: \"DEV-Staging-COMPANY\")\r\n    deploy_test_flight_app(scheme: \"DEV-Staging-COMPANY-CN\")\r\n  end\r\n\r\n  desc \"Deploy a new PreProd Build to Apple TestFlight and HockeyApp\"\r\n  lane :preprod do\r\n    preprod_hockey_app\r\n    preprod_test_flight\r\n  end\r\n\r\n  lane :preprod_test_flight do\r\n    sync_preprod_certificates(cert_type: \"appstore\")\r\n\r\n    deploy_test_flight_app(scheme: \"DEV-PreProd-COMPANY\")\r\n    deploy_test_flight_app(scheme: \"DEV-PreProd-COMPANY-CN\")\r\n  end\r\n\r\n  lane :preprod_hockey_app do\r\n    sync_preprod_certificates(cert_type: \"adhoc\")\r\n\r\n    deploy_hockey_app(scheme: \"DEV-PreProd-COMPANY\")\r\n    deploy_hockey_app(scheme: \"DEV-PreProd-COMPANY-CN\")\r\n  end\r\n\r\n  private_lane :deploy_hockey_app do |options|\r\n    create_app(\r\n      scheme: options[:scheme],\r\n      method: \"ad-hoc\"\r\n    )\r\n    hockey(api_token: ENV[\"HOCKEY_API_KEY\"])\r\n  end\r\n\r\n  private_lane :deploy_test_flight_app do |options|\r\n    create_app(scheme: options[:scheme])\r\n    upload_to_testflight\r\n  end\r\n\r\n  private_lane :deploy_production_app do |options|\r\n    create_app(scheme: options[:scheme])\r\n\r\n    upload_to_app_store(\r\n      force: true,\r\n      skip_metadata: true,\r\n      skip_screenshots: true\r\n    )\r\n  end\r\n\r\n  private_lane :create_app do |options|\r\n    #disable_automatic_code_signing(\r\n      #path: \"./ios/COMPANY.xcodeproj\"\r\n    #)\r\n\r\n    gym(\r\n      clean: true,\r\n      workspace: \"./ios/COMPANY.xcworkspace\",\r\n      scheme: options[:scheme],\r\n      export_method: options[:method] || \"app-store\"\r\n    )\r\n  end\r\n\r\n  private_lane :sync_production_certificates do |options|\r\n    sync_certificates(\r\n      package_ids: packages_prod + packages_services,\r\n      cert_type: \"appstore\",\r\n      update_devices: options[:update_devices]\r\n    )\r\n  end\r\n\r\n  private_lane :sync_staging_certificates do |options|\r\n    sync_certificates(\r\n      package_ids: packages_stage,\r\n      cert_type: options[:cert_type],\r\n      update_devices: options[:update_devices]\r\n    )\r\n  end\r\n\r\n  private_lane :sync_preprod_certificates do |options|\r\n    sync_certificates(\r\n      package_ids: packages_preprod,\r\n      cert_type: options[:cert_type],\r\n      update_devices: options[:update_devices]\r\n    )\r\n  end\r\n\r\n  private_lane :sync_certificates do |options|\r\n    default_packages = packages_dev +\r\n                       packages_stage +\r\n                       packages_prod +\r\n                       packages_services +\r\n                       packages_preprod\r\n    package_ids = options[:package_ids] || default_packages\r\n    cert_type = options[:cert_type] || \"development\"\r\n    new_devices = options[:update_devices] || false\r\n    force = options[:force] || false\r\n    readonly = !options[:update_devices] && !force\r\n\r\n    match(\r\n      app_identifier: package_ids,\r\n      readonly: readonly,\r\n      force: force,\r\n      type: cert_type,\r\n      force_for_new_devices: new_devices\r\n    )\r\n  end\r\n\r\n  desc \"Sync iOS Provisioning Profiles and Certificates for each Developer with new devices\"\r\n  private_lane :update_devices do\r\n    package_list = packages_dev +\r\n                   packages_stage +\r\n                   packages_prod +\r\n                   packages_preprod\r\n\r\n    sync_certificates(\r\n      package_ids: package_list,\r\n      update_devices: true,\r\n      cert_type: \"adhoc\"\r\n    )\r\n    sync_certificates(\r\n      package_ids: package_list,\r\n      update_devices: true\r\n    )\r\n  end\r\n\r\n  desc \"Regenerate Certificates\"\r\n  private_lane :regenerate_certs do\r\n    package_list = packages_dev +\r\n                   packages_stage +\r\n                   packages_prod +\r\n                   packages_preprod\r\n\r\n    sync_certificates(\r\n      package_ids: package_list,\r\n      force: true,\r\n      cert_type: \"adhoc\"\r\n    )\r\n    sync_certificates(\r\n      package_ids: package_list,\r\n      force: true\r\n    )\r\n    sync_certificates(\r\n      package_ids: package_list,\r\n      force: true,\r\n      cert_type: \"appstore\"\r\n    )\r\n  end\r\n\r\n  after_all do |lane|\r\n    # This block is called, only if the executed lane was successful\r\n\r\n    # slack(\r\n    #   message: \"Successfully deployed new App Update.\"\r\n    # )\r\n  end\r\n\r\n  error do |lane, exception|\r\n    # slack(\r\n    #   message: exception.message,\r\n    #   success: false\r\n    # )\r\n  end\r\nend\r\n\r\nplatform :android do\r\n  desc \"Deploy a new version to the Google Play Store\"\r\n  desc \"The China version of the app will be located in android/app/build/outputs/apk/\"\r\n  desc \"and should be uploaded manually.\"\r\n  lane :release do\r\n    deploy_production_app(\r\n      apk: \"app-international-release.apk\",\r\n      flavor: \"International\",\r\n      package_name: \"com.example\"\r\n    )\r\n    create_app(flavor: \"China\")\r\n  end\r\n\r\n  desc \"Submit a new Beta Build to HockeyApp\"\r\n  lane :beta do\r\n    deploy_staging_app(flavor: \"International\", build_type: \"StagingRelease\")\r\n    deploy_staging_app(flavor: \"China\", build_type: \"StagingRelease\")\r\n  end\r\n\r\n  desc \"Deploy a new PreProd Build to HockeyApp\"\r\n  lane :preprod do\r\n    deploy_staging_app(flavor: \"International\", build_type: \"PreProdRelease\")\r\n    deploy_staging_app(flavor: \"China\", build_type: \"PreProdRelease\")\r\n  end\r\n\r\n  private_lane :deploy_production_app do |options|\r\n    create_app(\r\n      flavor: options[:flavor]\r\n    )\r\n\r\n    upload_to_play_store(\r\n      apk: \"./android/app/build/outputs/apk/#{options[:apk]}\",\r\n      package_name: options[:package_name],\r\n      track: \"production\",\r\n      skip_upload_metadata: true,\r\n      skip_upload_images: true,\r\n      skip_upload_screenshots: true\r\n    )\r\n  end\r\n\r\n  private_lane :deploy_staging_app do |options|\r\n    UI.success \"Now building #{options[:flavor]} flavor\"\r\n\r\n    create_app(\r\n      flavor: options[:flavor],\r\n      build_type: options[:build_type]\r\n    )\r\n\r\n    hockey(api_token: ENV[\"HOCKEY_API_KEY\"])\r\n  end\r\n\r\n  private_lane :create_app do |options|\r\n    gradle(\r\n      task: \"assemble\",\r\n      project_dir: \"./android\",\r\n      flavor: options[:flavor],\r\n      build_type: options[:build_type] || \"Release\"\r\n    )\r\n  end\r\nend\r\n\r\n```\r\n</details>\r\n\r\n<details><summary>`./fastlane/Appfile`</summary>\r\n\r\n```ruby\r\napple_id \"dev-code@COMPANY.com\" # Your Apple email address\r\n\r\nteam_id \"TEAMID\" # Developer Portal Team ID\r\n\r\njson_key_file \"./fastlane/google_play_service_key.json\" # Google Play Service Key for Deployment\r\n\r\n```\r\n</details>\r\n\r\n### fastlane gems\r\n\r\n| Gem      | Version | Update-Status |\r\n| -------- | ------- | ------------- |\r\n| fastlane | 2.89.0  | ✅ Up-To-Date  |\r\n\r\n\r\n### Loaded fastlane plugins:\r\n\r\n**No plugins Loaded**\r\n\r\n\r\n<details><summary><b>Loaded gems</b></summary>\r\n\r\n| Gem                       | Version      |\r\n| ------------------------- | ------------ |\r\n| did_you_mean              | 1.0.0        |\r\n| bundler                   | 1.16.1       |\r\n| io-console                | 0.4.5        |\r\n| rake                      | 12.3.0       |\r\n| CFPropertyList            | 3.0.0        |\r\n| i18n                      | 0.8.6        |\r\n| minitest                  | 5.10.3       |\r\n| thread_safe               | 0.3.6        |\r\n| tzinfo                    | 1.2.4        |\r\n| activesupport             | 4.2.10       |\r\n| public_suffix             | 2.0.5        |\r\n| addressable               | 2.5.2        |\r\n| ast                       | 2.3.0        |\r\n| atomos                    | 0.1.2        |\r\n| babosa                    | 1.0.2        |\r\n| claide                    | 1.0.2        |\r\n| fuzzy_match               | 2.0.4        |\r\n| nap                       | 1.1.0        |\r\n| cocoapods-core            | 1.1.1        |\r\n| cocoapods-deintegrate     | 1.0.1        |\r\n| cocoapods-downloader      | 1.1.3        |\r\n| cocoapods-plugins         | 1.0.0        |\r\n| cocoapods-search          | 1.0.0        |\r\n| cocoapods-stats           | 1.0.0        |\r\n| netrc                     | 0.7.8        |\r\n| cocoapods-trunk           | 1.1.2        |\r\n| cocoapods-try             | 1.1.0        |\r\n| colored                   | 1.2          |\r\n| escape                    | 0.0.4        |\r\n| fourflusher               | 2.0.1        |\r\n| gh_inspector              | 1.1.3        |\r\n| molinillo                 | 0.5.5        |\r\n| colored2                  | 3.1.2        |\r\n| nanaimo                   | 0.2.4        |\r\n| xcodeproj                 | 1.5.7        |\r\n| cocoapods                 | 1.1.1        |\r\n| highline                  | 1.7.10       |\r\n| commander-fastlane        | 4.4.6        |\r\n| declarative               | 0.0.10       |\r\n| declarative-option        | 0.1.0        |\r\n| unf_ext                   | 0.0.7.5      |\r\n| unf                       | 0.1.4        |\r\n| domain_name               | 0.5.20170404 |\r\n| dotenv                    | 2.2.1        |\r\n| thor                      | 0.19.4       |\r\n| earlgrey                  | 0.0.13       |\r\n| excon                     | 0.62.0       |\r\n| multipart-post            | 2.0.0        |\r\n| faraday                   | 0.14.0       |\r\n| http-cookie               | 1.0.3        |\r\n| faraday-cookie_jar        | 0.0.6        |\r\n| faraday_middleware        | 0.12.2       |\r\n| fastimage                 | 2.1.1        |\r\n| jwt                       | 2.1.0        |\r\n| little-plugger            | 1.1.4        |\r\n| multi_json                | 1.13.1       |\r\n| logging                   | 2.2.2        |\r\n| memoist                   | 0.16.0       |\r\n| os                        | 0.9.6        |\r\n| signet                    | 0.8.1        |\r\n| googleauth                | 0.6.2        |\r\n| httpclient                | 2.8.3        |\r\n| mime-types-data           | 3.2016.0521  |\r\n| mime-types                | 3.1          |\r\n| uber                      | 0.1.0        |\r\n| representable             | 3.0.4        |\r\n| retriable                 | 3.1.1        |\r\n| google-api-client         | 0.13.6       |\r\n| json                      | 2.1.0        |\r\n| mini_magick               | 4.5.1        |\r\n| multi_xml                 | 0.6.0        |\r\n| plist                     | 3.4.0        |\r\n| rubyzip                   | 1.2.1        |\r\n| security                  | 0.1.3        |\r\n| naturally                 | 2.1.0        |\r\n| simctl                    | 1.6.3        |\r\n| slack-notifier            | 2.3.2        |\r\n| terminal-notifier         | 1.8.0        |\r\n| unicode-display_width     | 1.3.0        |\r\n| terminal-table            | 1.8.0        |\r\n| tty-screen                | 0.6.4        |\r\n| tty-cursor                | 0.5.0        |\r\n| tty-spinner               | 0.8.0        |\r\n| word_wrap                 | 1.0.0        |\r\n| rouge                     | 2.0.7        |\r\n| xcpretty                  | 0.2.8        |\r\n| xcpretty-travis-formatter | 1.0.0        |\r\n| parallel                  | 1.12.0       |\r\n| parser                    | 2.4.0.2      |\r\n| powerpack                 | 0.1.1        |\r\n| rainbow                   | 2.2.2        |\r\n| ruby-progressbar          | 1.8.1        |\r\n| rubocop                   | 0.49.1       |\r\n</details>\r\n\r\n\r\n*generated on:* **2018-04-04**\r\n</details>\r\n"},"comment":{"url":"https://api.github.com/repos/fastlane/fastlane/issues/comments/383534155","html_url":"https://github.com/fastlane/fastlane/issues/12228#issuecomment-383534155","issue_url":"https://api.github.com/repos/fastlane/fastlane/issues/12228","id":383534155,"user":{"login":"joshdholtz","id":401294,"avatar_url":"https://avatars2.githubusercontent.com/u/401294?v=4","gravatar_id":"","url":"https://api.github.com/users/joshdholtz","html_url":"https://github.com/joshdholtz","followers_url":"https://api.github.com/users/joshdholtz/followers","following_url":"https://api.github.com/users/joshdholtz/following{/other_user}","gists_url":"https://api.github.com/users/joshdholtz/gists{/gist_id}","starred_url":"https://api.github.com/users/joshdholtz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joshdholtz/subscriptions","organizations_url":"https://api.github.com/users/joshdholtz/orgs","repos_url":"https://api.github.com/users/joshdholtz/repos","events_url":"https://api.github.com/users/joshdholtz/events{/privacy}","received_events_url":"https://api.github.com/users/joshdholtz/received_events","type":"User","site_admin":false},"created_at":"2018-04-23T10:50:46Z","updated_at":"2018-04-23T10:50:46Z","author_association":"CONTRIBUTOR","body":"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:\r\n\r\n## To Reproduce\r\n1. Set provisioning profile in Xcode project to an \"app-store\" type\r\n2. Build fastlane using \"ad-hoc\" type\r\n\r\nThis 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\r\n\r\n## To \"Get Around\"\r\n1. Setup provisioning profile in Xcode project to an \"ad-hoc\" type\r\n2. Build fastlane using \"app-store\" type and it _should_ build successfully now\r\n\r\nNote: I don't know if this will not build with the proper beta entitlements now for an App Store build ^\r\n\r\n## Another Solution\r\nAnother 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\r\n\r\nHappy fastlaning 🚀  "}}
{"actor":{"display_login":"joshdholtz"}}