Hi,
My eas build is failing with a fastlane error:
There seems to be a mismatch between your provided `export_method` in gym
and the selected provisioning profiles. You passed the following options:
export_method:
Bundle identifier: com.payright.customer
Profile name: *[expo] com.payright.customer.uat AppStore 2021-04-30T00:35:38.109Z
Profile type: app-store
Make sure to either change the `export_method` passed from your Fastfile or CLI
or select the correct provisioning profiles by updating your Xcode project
or passing the profiles to use by using match or manually via the `export_options` hash
Looking at the full logs it looks like there are 2 provisioning profiles attached to the project, is that the cause of the error, and how do i only associate 1 profile to this project?
Creating Gymfile
Gymfile created
Successfully loaded '/Users/expo/workingdir/build/ios/Gymfile' đź“„
+-----------------------+---------------------------------------------------------------------------------------------------------------------------------------------+
| Detected Values from './Gymfile' |
+-----------------------+---------------------------------------------------------------------------------------------------------------------------------------------+
| suppress_xcode_output | true |
| clean | false |
| scheme | UAT |
| configuration | Release |
| export_options | |
| export_xcargs | OTHER_CODE_SIGN_FLAGS="--keychain /var/folders/97/73j93h690g9gdn54bh_zskm40000gn/T/turtle-v2-fe281f5d-7274-448e-8f36-7080f4309e48.keychain" |
| disable_xcpretty | true |
| output_directory | ./build |
+-----------------------+---------------------------------------------------------------------------------------------------------------------------------------------+
Resolving Swift Package Manager dependencies...
$ xcodebuild -resolvePackageDependencies -workspace ./Payright.xcworkspace -scheme UAT -configuration Release
â–¸ Command line invocation:
â–¸ /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -resolvePackageDependencies -workspace ./Payright.xcworkspace -scheme UAT -configuration Release
â–¸ resolved source packages:
$ xcodebuild -showBuildSettings -workspace ./Payright.xcworkspace -scheme UAT -configuration Release
Command timed out after 3 seconds on try 1 of 4, trying again with a 6 second timeout...
Detected provisioning profile mapping: {:"com.payright.customer.uat"=>"0976a128-93cd-46fb-95a3-8c1f352b81d9", :"com.payright.customer"=>"*[expo] com.payright.customer.uat AppStore 2021-04-30T00:35:38.109Z"}
+---------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------+
| Summary for gym 2.178.0 |
+---------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------+
| workspace | ./Payright.xcworkspace |
| scheme | UAT |
| clean | false |
| output_directory | ./build |
| output_name | Payright |
| configuration | Release |
| silent | false |
| skip_package_ipa | false |
| skip_package_pkg | false |
| export_options.method | app-store |
| export_options.provisioningProfiles.com.payright.customer.uat | 0976a128-93cd-46fb-95a3-8c1f352b81d9 |
| export_options.provisioningProfiles.com.payright.customer | *[expo] com.payright.customer.uat AppStore 2021-04-30T00:35:38.109Z |
| export_xcargs | OTHER_CODE_SIGN_FLAGS="--keychain /var/folders/97/73j93h690g9gdn54bh_zskm40000gn/T/turtle-v2-fe281f5d-7274-448e-8f36-7080f4309e48.keychain" |
| build_path | /Users/expo/Library/Developer/Xcode/Archives/2021-04-29 |
| result_bundle | false |
| buildlog_path | ~/Library/Logs/gym |
| destination | generic/platform=iOS |
| suppress_xcode_output | true |
| disable_xcpretty | true |
| skip_profile_detection | false |
| skip_package_dependencies_resolution | false |
| disable_package_automatic_updates | false |
| use_system_scm | false |
| xcode_path | /Applications/Xcode.app |
+---------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------+
$ set -o pipefail && xcodebuild -workspace ./Payright.xcworkspace -scheme UAT -configuration Release -destination 'generic/platform=iOS' -archivePath /Users/expo/Library/Developer/Xcode/Archives/2021-04-29/Payright\ 2021-04-29\ 17.49.52.xcarchive archive | tee /Users/expo/Library/Logs/gym/Payright-UAT.log > /dev/null
â–¸ ** ARCHIVE FAILED **
** ARCHIVE FAILED **
Exit status: 65
+-------------+-------------------------+
| Build environment |
+-------------+-------------------------+
| xcode_path | /Applications/Xcode.app |
| gym_version | 2.178.0 |
| sdk | iPhoneOS14.4.sdk |
+-------------+-------------------------+
There seems to be a mismatch between your provided `export_method` in gym
and the selected provisioning profiles. You passed the following options:
export_method:
Bundle identifier: com.payright.customer
Profile name: *[expo] com.payright.customer.uat AppStore 2021-04-30T00:35:38.109Z
Profile type: app-store
Make sure to either change the `export_method` passed from your Fastfile or CLI
or select the correct provisioning profiles by updating your Xcode project
or passing the profiles to use by using match or manually via the `export_options` hash
Looks like fastlane ran into a build/archive error with your project
It's hard to tell what's causing the error, so we wrote some guides on how
to troubleshoot build and signing issues: https://docs.fastlane.tools/codesigning/getting-started/
Before submitting an issue on GitHub, please follow the guide above and make
sure your project is set up correctly.
fastlane uses `xcodebuild` commands to generate your binary, you can see the
the full commands printed out in yellow in the above log.
Make sure to inspect the output above, as usually you'll find more error information there
[stderr] [!] Error building the application - see the log above
Error: Fastlane build failed with unknown error. Please refer to the "Run fastlane" and "Xcode Logs" phases.
Fastlane errors in most cases are not printed at the end of the output, so you may not find any useful information in the last lines of output when looking for an error message.
Regards,
Praveen