EAS Build Fastlane Provisioning Profile Error

Hi

Since last 1-2 days my iOS builds are failing with fastlane errors in regards to provisioning profiles. I am locked into an older version of the CLI 0.14.1 as was running multiple bundle id’s. I don’t see why this is a problem as was using this successfully before. See error trace:

Creating Gymfile
Gymfile created
Successfully loaded '/Users/expo/workingdir/build/ios/Gymfile' 📄
+-----------------------+---------------------------------------------------------------------------------------------------------------------------------------------+
|                                                                  Detected Values from './Gymfile'                                                                   |
+-----------------------+---------------------------------------------------------------------------------------------------------------------------------------------+
| suppress_xcode_output | true                                                                                                                                        |
| clean                 | false                                                                                                                                       |
| scheme                | DEV                                                                                                                                         |
| export_options        |                                                                                                                                             |
| export_xcargs         | OTHER_CODE_SIGN_FLAGS="--keychain /var/folders/97/73j93h690g9gdn54bh_zskm40000gn/T/turtle-v2-2fed548d-6833-4ba3-a676-50f9ed4407e7.keychain" |
| disable_xcpretty      | true                                                                                                                                        |
| buildlog_path         | /Users/expo/workingdir/logs                                                                                                                 |
| output_directory      | ./build                                                                                                                                     |
+-----------------------+---------------------------------------------------------------------------------------------------------------------------------------------+
Resolving Swift Package Manager dependencies...
$ xcodebuild -resolvePackageDependencies -workspace ./Payright.xcworkspace -scheme DEV
▸ Command line invocation:
▸     /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -resolvePackageDependencies -workspace ./Payright.xcworkspace -scheme DEV
▸ resolved source packages:
$ xcodebuild -showBuildSettings -workspace ./Payright.xcworkspace -scheme DEV
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.dev"=>"552f2544-598c-4755-840f-19184834d91c"}
+---------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------+
|                                                                                           Summary for gym 2.178.0                                                                                           |
+---------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------+
| workspace                                                     | ./Payright.xcworkspace                                                                                                                      |
| scheme                                                        | DEV                                                                                                                                         |
| clean                                                         | false                                                                                                                                       |
| output_directory                                              | ./build                                                                                                                                     |
| output_name                                                   | Payright                                                                                                                                    |
| silent                                                        | false                                                                                                                                       |
| skip_package_ipa                                              | false                                                                                                                                       |
| skip_package_pkg                                              | false                                                                                                                                       |
| export_options.method                                         | app-store                                                                                                                                   |
| export_options.provisioningProfiles.com.payright.customer.dev | 552f2544-598c-4755-840f-19184834d91c                                                                                                        |
| export_xcargs                                                 | OTHER_CODE_SIGN_FLAGS="--keychain /var/folders/97/73j93h690g9gdn54bh_zskm40000gn/T/turtle-v2-2fed548d-6833-4ba3-a676-50f9ed4407e7.keychain" |
| build_path                                                    | /Users/expo/Library/Developer/Xcode/Archives/2021-06-20                                                                                     |
| result_bundle                                                 | false                                                                                                                                       |
| buildlog_path                                                 | /Users/expo/workingdir/logs                                                                                                                 |
| 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 DEV -destination 'generic/platform=iOS' -archivePath /Users/expo/Library/Developer/Xcode/Archives/2021-06-20/Payright\ 2021-06-20\ 01.23.35.xcarchive archive | tee /Users/expo/workingdir/logs/Payright-DEV.log > /dev/null

❌  error: "Payright" requires a provisioning profile with the Push Notifications feature. Select a provisioning profile in the Signing & Capabilities editor. (in target 'Payright' from project 'Payright')

⚠️  Pods/FirebaseInstanceID: iOS@8.0 deployment version mismatch, expected >= 9.0 <= 14.4.99
⚠️  Pods/IQKeyboardManagerSwift-IQKeyboardManagerSwift: iOS@8.0 deployment version mismatch, expected >= 9.0 <= 14.4.99
⚠️  Pods/FirebaseCoreDiagnosticsInterop: iOS@8.0 deployment version mismatch, expected >= 9.0 <= 14.4.99
⚠️  Pods/Firebase: iOS@8.0 deployment version mismatch, expected >= 9.0 <= 14.4.99
⚠️  Pods/GoogleAppMeasurement: iOS@8.0 deployment version mismatch, expected >= 9.0 <= 14.4.99
⚠️  Pods/FirebaseCoreDiagnostics: iOS@8.0 deployment version mismatch, expected >= 9.0 <= 14.4.99
⚠️  Pods/nanopb: iOS@4.3 deployment version mismatch, expected >= 9.0 <= 14.4.99
⚠️  Pods/RNDateTimePicker: iOS@8.0 deployment version mismatch, expected >= 9.0 <= 14.4.99
⚠️  Pods/GoogleUtilities: iOS@8.0 deployment version mismatch, expected >= 9.0 <= 14.4.99
⚠️  Pods/FirebaseAnalytics: iOS@8.0 deployment version mismatch, expected >= 9.0 <= 14.4.99
⚠️  Pods/GoogleDataTransport: iOS@8.0 deployment version mismatch, expected >= 9.0 <= 14.4.99
⚠️  Pods/GoogleDataTransportCCTSupport: iOS@8.0 deployment version mismatch, expected >= 9.0 <= 14.4.99
⚠️  Pods/FirebaseCore: iOS@8.0 deployment version mismatch, expected >= 9.0 <= 14.4.99
⚠️  Pods/IQKeyboardManagerSwift: iOS@8.0 deployment version mismatch, expected >= 9.0 <= 14.4.99
⚠️  Pods/boost-for-react-native: iOS@8.0 deployment version mismatch, expected >= 9.0 <= 14.4.99
▸ ** ARCHIVE FAILED **
** ARCHIVE FAILED **
Exit status: 65
+-------------+-------------------------+
|           Build environment           |
+-------------+-------------------------+
| xcode_path  | /Applications/Xcode.app |
| gym_version | 2.178.0                 |
| sdk         | iPhoneOS14.4.sdk        |
+-------------+-------------------------+
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.

I have checked the provisioning profile has Push Notification capability. So do not see why the error is still there saying “Payright” requires a provisioning profile with the Push Notifications feature. Select a provisioning profile in the Signing & Capabilities editor."

Any help appreciated.

Regards,

Praveen

Upgrading to eas-cli 0.17.0 seems to have fixed this