Creating a provisioning profile with the Push Notifications feature.

Hello there,
I wanted to create an EAS development build to test my app with some custom react-native package. So I started by following the official Expo guide on the documentation website, and I had some errors first… I managed to print the error by creating a Gymfile file in the ios prebuild IOS folder, so when running the fastlane I can see what’s exactly the error and so I found out that the error was the following:

:x: /Users/expo/workingdir/build/ios/mellow.xcodeproj: error: “mellow” requires a provisioning profile with the Push Notifications feature. Select a provisioning profile in the Signing & Capabilities editor. (in target ‘mellow’ from project ‘mellow’)

But I get stuck here.

I enabled the capability for Push Notifications in the correct identifier (on the Apple’s App Id Configuration here: Sign In - Apple) with a correct certificate, recreated all profiles, etc…

But I can’t do, it still shows me this error when running the fastlane…
Is there any solutions/fix ?
Thanks a lot.

Did you generate that provisioning profile yourself or did EAS CLI created it for you?

I tried with both after seing that it didn’t work with the EAS CLI created one.

I add all the fastlane running logs here:

Gymfile already exists
Successfully loaded '/Users/expo/workingdir/build/ios/Gymfile' 📄
+-----------------------+----------+
| Detected Values from './Gymfile' |
+-----------------------+----------+
| suppress_xcode_output | false    |
| clean                 | true     |
| disable_xcpretty      | false    |
+-----------------------+----------+
Resolving Swift Package Manager dependencies...
$ xcodebuild -resolvePackageDependencies -workspace ./mellow.xcworkspace -scheme mellow
▸ Command line invocation:
▸     /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -resolvePackageDependencies -workspace ./mellow.xcworkspace -scheme mellow
▸ User defaults from command line:
▸     IDEPackageSupportUseBuiltinSCM = YES
▸ --- xcodebuild: WARNING: Using the first of multiple matching destinations:
▸ { platform:iOS, id:dvtdevice-DVTiPhonePlaceholder-iphoneos:placeholder, name:Any iOS Device }
▸ { platform:iOS Simulator, id:dvtdevice-DVTiOSDeviceSimulatorPlaceholder-iphonesimulator:placeholder, name:Any iOS Simulator Device }
▸ { platform:iOS Simulator, id:E4F0A83E-5E75-4C8A-A871-796043E2CD97, OS:16.0, name:iPhone 14 }
▸ { platform:iOS Simulator, id:8CF852C2-D053-4020-A861-01D707EE7C7B, OS:16.0, name:iPhone 14 Plus }
▸ { platform:iOS Simulator, id:FE2944BA-74BD-416E-93BB-3DC56388EF16, OS:16.0, name:iPhone 14 Pro }
▸ { platform:iOS Simulator, id:DD553D4E-CD22-4A2B-B095-50D480238D15, OS:16.0, name:iPhone 14 Pro Max }
▸ { platform:iOS Simulator, id:1F7C3904-A8F9-44F2-B6D0-31F51493EA22, OS:16.0, name:iPhone SE (3rd generation) }
▸ { platform:iOS Simulator, id:12DF1F1F-6206-4BDD-A49F-A0D3456DF497, OS:16.0, name:iPad (9th generation) }
▸ { platform:iOS Simulator, id:45E053AA-59FB-41B7-8DCA-2B11D2392A47, OS:16.0, name:iPad Air (5th generation) }
▸ { platform:iOS Simulator, id:7D6C0D20-8EEC-4074-9347-4F2DED6B610C, OS:16.0, name:iPad Pro (11-inch) (3rd generation) }
▸ { platform:iOS Simulator, id:A30864C0-A249-427B-B2F5-02B94465B342, OS:16.0, name:iPad Pro (12.9-inch) (5th generation) }
▸ { platform:iOS Simulator, id:823E8F2B-3928-438B-877F-E57CBB4D4227, OS:16.0, name:iPad mini (6th generation) }
▸ resolved source packages:
$ xcodebuild -showBuildSettings -workspace ./mellow.xcworkspace -scheme mellow
[stderr] --- xcodebuild: WARNING: Using the first of multiple matching destinations:
[stderr] { platform:iOS, id:dvtdevice-DVTiPhonePlaceholder-iphoneos:placeholder, name:Any iOS Device }
[stderr] { platform:iOS Simulator, id:dvtdevice-DVTiOSDeviceSimulatorPlaceholder-iphonesimulator:placeholder, name:Any iOS Simulator Device }
[stderr] { platform:iOS Simulator, id:E4F0A83E-5E75-4C8A-A871-796043E2CD97, OS:16.0, name:iPhone 14 }
[stderr] { platform:iOS Simulator, id:8CF852C2-D053-4020-A861-01D707EE7C7B, OS:16.0, name:iPhone 14 Plus }
[stderr] { platform:iOS Simulator, id:FE2944BA-74BD-416E-93BB-3DC56388EF16, OS:16.0, name:iPhone 14 Pro }
[stderr] { platform:iOS Simulator, id:DD553D4E-CD22-4A2B-B095-50D480238D15, OS:16.0, name:iPhone 14 Pro Max }
[stderr] { platform:iOS Simulator, id:1F7C3904-A8F9-44F2-B6D0-31F51493EA22, OS:16.0, name:iPhone SE (3rd generation) }
[stderr] { platform:iOS Simulator, id:12DF1F1F-6206-4BDD-A49F-A0D3456DF497, OS:16.0, name:iPad (9th generation) }
[stderr] { platform:iOS Simulator, id:45E053AA-59FB-41B7-8DCA-2B11D2392A47, OS:16.0, name:iPad Air (5th generation) }
[stderr] { platform:iOS Simulator, id:7D6C0D20-8EEC-4074-9347-4F2DED6B610C, OS:16.0, name:iPad Pro (11-inch) (3rd generation) }
[stderr] { platform:iOS Simulator, id:A30864C0-A249-427B-B2F5-02B94465B342, OS:16.0, name:iPad Pro (12.9-inch) (5th generation) }
[stderr] { platform:iOS Simulator, id:823E8F2B-3928-438B-877F-E57CBB4D4227, OS:16.0, name:iPad mini (6th generation) }
Command timed out after 3 seconds on try 1 of 4, trying again with a 6 second timeout...
[stderr] --- xcodebuild: WARNING: Using the first of multiple matching destinations:
[stderr] { platform:iOS, id:dvtdevice-DVTiPhonePlaceholder-iphoneos:placeholder, name:Any iOS Device }
[stderr] { platform:iOS Simulator, id:dvtdevice-DVTiOSDeviceSimulatorPlaceholder-iphonesimulator:placeholder, name:Any iOS Simulator Device }
[stderr] { platform:iOS Simulator, id:E4F0A83E-5E75-4C8A-A871-796043E2CD97, OS:16.0, name:iPhone 14 }
[stderr] { platform:iOS Simulator, id:8CF852C2-D053-4020-A861-01D707EE7C7B, OS:16.0, name:iPhone 14 Plus }
[stderr] { platform:iOS Simulator, id:FE2944BA-74BD-416E-93BB-3DC56388EF16, OS:16.0, name:iPhone 14 Pro }
[stderr] { platform:iOS Simulator, id:DD553D4E-CD22-4A2B-B095-50D480238D15, OS:16.0, name:iPhone 14 Pro Max }
[stderr] { platform:iOS Simulator, id:1F7C3904-A8F9-44F2-B6D0-31F51493EA22, OS:16.0, name:iPhone SE (3rd generation) }
[stderr] { platform:iOS Simulator, id:12DF1F1F-6206-4BDD-A49F-A0D3456DF497, OS:16.0, name:iPad (9th generation) }
[stderr] { platform:iOS Simulator, id:45E053AA-59FB-41B7-8DCA-2B11D2392A47, OS:16.0, name:iPad Air (5th generation) }
[stderr] { platform:iOS Simulator, id:7D6C0D20-8EEC-4074-9347-4F2DED6B610C, OS:16.0, name:iPad Pro (11-inch) (3rd generation) }
[stderr] { platform:iOS Simulator, id:A30864C0-A249-427B-B2F5-02B94465B342, OS:16.0, name:iPad Pro (12.9-inch) (5th generation) }
[stderr] { platform:iOS Simulator, id:823E8F2B-3928-438B-877F-E57CBB4D4227, OS:16.0, name:iPad mini (6th generation) }
Command timed out after 6 seconds on try 2 of 4, trying again with a 12 second timeout...
[stderr] 2023-02-13 07:23:47.548 xcodebuild[4326:13608] Requested but did not find extension point with identifier Xcode.InterfaceBuilderBuildSupport.PlatformDefinition
[stderr] 2023-02-13 07:23:47.549 xcodebuild[4318:13545] Requested but did not find extension point with identifier Xcode.InterfaceBuilderBuildSupport.PlatformDefinition
[stderr] --- xcodebuild: WARNING: Using the first of multiple matching destinations:
[stderr] { platform:iOS, id:dvtdevice-DVTiPhonePlaceholder-iphoneos:placeholder, name:Any iOS Device }
[stderr] { platform:iOS Simulator, id:dvtdevice-DVTiOSDeviceSimulatorPlaceholder-iphonesimulator:placeholder, name:Any iOS Simulator Device }
[stderr] { platform:iOS Simulator, id:E4F0A83E-5E75-4C8A-A871-796043E2CD97, OS:16.0, name:iPhone 14 }
[stderr] { platform:iOS Simulator, id:8CF852C2-D053-4020-A861-01D707EE7C7B, OS:16.0, name:iPhone 14 Plus }
[stderr] { platform:iOS Simulator, id:FE2944BA-74BD-416E-93BB-3DC56388EF16, OS:16.0, name:iPhone 14 Pro }
[stderr] { platform:iOS Simulator, id:DD553D4E-CD22-4A2B-B095-50D480238D15, OS:16.0, name:iPhone 14 Pro Max }
[stderr] { platform:iOS Simulator, id:1F7C3904-A8F9-44F2-B6D0-31F51493EA22, OS:16.0, name:iPhone SE (3rd generation) }
[stderr] { platform:iOS Simulator, id:12DF1F1F-6206-4BDD-A49F-A0D3456DF497, OS:16.0, name:iPad (9th generation) }
[stderr] { platform:iOS Simulator, id:45E053AA-59FB-41B7-8DCA-2B11D2392A47, OS:16.0, name:iPad Air (5th generation) }
[stderr] { platform:iOS Simulator, id:7D6C0D20-8EEC-4074-9347-4F2DED6B610C, OS:16.0, name:iPad Pro (11-inch) (3rd generation) }
[stderr] { platform:iOS Simulator, id:A30864C0-A249-427B-B2F5-02B94465B342, OS:16.0, name:iPad Pro (12.9-inch) (5th generation) }
[stderr] { platform:iOS Simulator, id:823E8F2B-3928-438B-877F-E57CBB4D4227, OS:16.0, name:iPad mini (6th generation) }
[stderr] 2023-02-13 07:23:48.675 xcodebuild[4347:13745] Requested but did not find extension point with identifier Xcode.InterfaceBuilderBuildSupport.PlatformDefinition
+--------------------------------------+---------------------------------------------------------+
|                                    Summary for gym 2.210.0                                     |
+--------------------------------------+---------------------------------------------------------+
| workspace                            | ./mellow.xcworkspace                                    |
| scheme                               | mellow                                                  |
| clean                                | true                                                    |
| output_directory                     | .                                                       |
| output_name                          | mellow                                                  |
| silent                               | false                                                   |
| skip_package_ipa                     | false                                                   |
| skip_package_pkg                     | false                                                   |
| build_path                           | /Users/expo/Library/Developer/Xcode/Archives/2023-02-13 |
| result_bundle                        | false                                                   |
| buildlog_path                        | ~/Library/Logs/gym                                      |
| destination                          | generic/platform=iOS                                    |
| suppress_xcode_output                | false                                                   |
| xcodebuild_formatter                 | xcpretty                                                |
| disable_xcpretty                     | false                                                   |
| skip_profile_detection               | false                                                   |
| xcodebuild_command                   | xcodebuild                                              |
| skip_package_dependencies_resolution | false                                                   |
| disable_package_automatic_updates    | false                                                   |
| use_system_scm                       | false                                                   |
| xcode_path                           | /Applications/Xcode.app                                 |
+--------------------------------------+---------------------------------------------------------+
$ set -o pipefail && xcodebuild -workspace ./mellow.xcworkspace -scheme mellow -destination 'generic/platform=iOS' -archivePath /Users/expo/Library/Developer/Xcode/Archives/2023-02-13/mellow\ 2023-02-13\ 07.23.48.xcarchive clean archive | tee /Users/expo/Library/Logs/gym/mellow-mellow.log | xcpretty  --no-color
▸ Clean Succeeded
▸     Run script build phase '[CP-User] Generate app.config for prebuilt Constants.manifest' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'EXConstants' from project 'Pods')
▸ ❌  /Users/expo/workingdir/build/ios/mellow.xcodeproj: error: "mellow" requires a provisioning profile with the Push Notifications feature. Select a provisioning profile in the Signing & Capabilities editor. (in target 'mellow' from project 'mellow')
▸     Run script build phase 'Start Packager' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'mellow' from project 'mellow')
▸     Run script build phase 'Bundle React Native code and images' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'mellow' from project 'mellow')
▸ ** ARCHIVE FAILED **
▸ Clean Succeeded
    Run script build phase '[CP-User] Generate app.config for prebuilt Constants.manifest' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'EXConstants' from project 'Pods')
❌  /Users/expo/workingdir/build/ios/mellow.xcodeproj: error: "mellow" requires a provisioning profile with the Push Notifications feature. Select a provisioning profile in the Signing & Capabilities editor. (in target 'mellow' from project 'mellow')
    Run script build phase 'Start Packager' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'mellow' from project 'mellow')
    Run script build phase 'Bundle React Native code and images' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'mellow' from project 'mellow')
** ARCHIVE FAILED **
Exit status: 65
+-------------+-------------------------+
|           Build environment           |
+-------------+-------------------------+
| xcode_path  | /Applications/Xcode.app |
| gym_version | 2.210.0                 |
| sdk         | iPhoneOS16.0.sdk        |
+-------------+-------------------------+
▸ note: Building targets in dependency order
▸ warning: Run script build phase '[CP-User] Generate app.config for prebuilt Constants.manifest' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'EXConstants' from project 'Pods')
▸ /Users/expo/workingdir/build/ios/mellow.xcodeproj: error: "mellow" requires a provisioning profile with the Push Notifications feature. Select a provisioning profile in the Signing & Capabilities editor. (in target 'mellow' from project 'mellow')
▸ warning: Run script build phase 'Start Packager' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'mellow' from project 'mellow')
▸ warning: Run script build phase 'Bundle React Native code and images' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'mellow' from project 'mellow')
⬆️  Check out the few lines of raw `xcodebuild` output above for potential hints on how to solve this error
📋  For the complete and more detailed error log, check the full log at:
📋  /Users/expo/Library/Logs/gym/mellow-mellow.log
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. See logs for the "Run fastlane" and "Xcode Logs" phases for more information.
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.

As I said before, I prebuilt the IOS app and so I already have an IOS Folder where I modified the Podfile because of some errors with Firebase (I don’t know if it could be related so I mention it.)
Here’s my Podfile and Gymfile (created to display the exact error in the fastlane running process):
Podfile

require File.join(File.dirname(`node --print "require.resolve('expo/package.json')"`), "scripts/autolinking")
require File.join(File.dirname(`node --print "require.resolve('react-native/package.json')"`), "scripts/react_native_pods")
require File.join(File.dirname(`node --print "require.resolve('@react-native-community/cli-platform-ios/package.json')"`), "native_modules")

require 'json'
podfile_properties = JSON.parse(File.read(File.join(__dir__, 'Podfile.properties.json'))) rescue {}

platform :ios, podfile_properties['ios.deploymentTarget'] || '13.0'
install! 'cocoapods',
  :deterministic_uuids => false

target 'mellow' do
  use_expo_modules!
  config = use_native_modules!
  pod 'Firebase', :modular_headers => true
  pod 'FirebaseCoreInternal', :modular_headers => true
  pod 'FirebaseCore', :modular_headers => true
  pod 'GoogleUtilities', :modular_headers => true


  use_frameworks! :linkage => podfile_properties['ios.useFrameworks'].to_sym if podfile_properties['ios.useFrameworks']

  # Flags change depending on the env values.
  flags = get_default_flags()

  use_react_native!(
    :path => config[:reactNativePath],
    :hermes_enabled => podfile_properties['expo.jsEngine'] == 'hermes',
    :fabric_enabled => flags[:fabric_enabled],
    # An absolute path to your application root.
    :app_path => "#{Pod::Config.instance.installation_root}/..",
    #
    # Uncomment to opt-in to using Flipper
    # Note that if you have use_frameworks! enabled, Flipper will not work
    # :flipper_configuration => !ENV['CI'] ? FlipperConfiguration.enabled : FlipperConfiguration.disabled,
  )

  post_install do |installer|
    react_native_post_install(
      installer,
      # Set `mac_catalyst_enabled` to `true` in order to apply patches
      # necessary for Mac Catalyst builds
      :mac_catalyst_enabled => false
    )
    __apply_Xcode_12_5_M1_post_install_workaround(installer)

    # This is necessary for Xcode 14, because it signs resource bundles by default
    # when building for devices.
    installer.target_installation_results.pod_target_installation_results
      .each do |pod_name, target_installation_result|
      target_installation_result.resource_bundle_targets.each do |resource_bundle_target|
        resource_bundle_target.build_configurations.each do |config|
          config.build_settings['CODE_SIGNING_ALLOWED'] = 'NO'
        end
      end
    end
  end

  post_integrate do |installer|
    begin
      expo_patch_react_imports!(installer)
    rescue => e
      Pod::UI.warn e
    end
  end
end

Gymfile

suppress_xcode_output(false)
clean(true)
disable_xcpretty(false)

I also tried to add by myself the provisionning profile with Xcode into the project file in the IOS Folder but nothing changed.

Thanks a lot for the time you spend helping me :upside_down_face: !

I checked provisioning profile you have configured and it has push notifications entitlements.

Normally EAS is creating Gymfile on the worker, but if one already exists it’s skipped. I would recommend removing that Gymfile, because it might interfere with the normal build process and it might cause build to use wrong provisioning profile(e.g. if you commited your profile in the repo)

This is a template for Gymfile that eas normally creates eas-build/Gymfile.archive.template at main · expo/eas-build · GitHub

I’ll test it right now and I’ll let know the result.

I’ll just copy and paste the content of the normally created by EAS Gymfile and keeping my IOS folder with my custom Podfile so I does not deal again with that Firebase error.

Note that what I linked is a template for Gymfile, it’s not a valid Gymfile

So can I just delete the Gymfile present there and so EAS will create his own Gymfile ?

yes, that would be a reomended way
it’s possible to provide custom gymfile if you need to custimize sth, but by doing that you are responsible to configuring everythin EAS generated one would.

1 Like

I have been able to create an EAS build without any “custom” components not already in the Expo Go app, but when integrating react-native-hold-menu@^0.1.5 I face this error:

Creating Gymfile
Gymfile created
Successfully loaded '/Users/expo/workingdir/build/ios/Gymfile' 📄
+-----------------------+---------------------------------------------------------------------------------------------------------------------------------------------+
|                                                                  Detected Values from './Gymfile'                                                                   |
+-----------------------+---------------------------------------------------------------------------------------------------------------------------------------------+
| suppress_xcode_output | true                                                                                                                                        |
| clean                 | false                                                                                                                                       |
| scheme                | mellow                                                                                                                                      |
| configuration         | Debug                                                                                                                                       |
| export_options        |                                                                                                                                             |
| export_xcargs         | OTHER_CODE_SIGN_FLAGS="--keychain /var/folders/h2/gp9wlkv11lg0qj6y2mnqgc_40000gn/T/turtle-v2-de5d7334-4ce1-48a4-936f-098e41a0c19e.keychain" |
| disable_xcpretty      | true                                                                                                                                        |
| buildlog_path         | /Users/expo/workingdir/logs                                                                                                                 |
| output_directory      | ./build                                                                                                                                     |
+-----------------------+---------------------------------------------------------------------------------------------------------------------------------------------+
Resolving Swift Package Manager dependencies...
$ xcodebuild -resolvePackageDependencies -workspace ./mellow.xcworkspace -scheme mellow -configuration Debug
▸ Command line invocation:
▸     /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -resolvePackageDependencies -workspace ./mellow.xcworkspace -scheme mellow -configuration Debug
▸ User defaults from command line:
▸     IDEPackageSupportUseBuiltinSCM = YES
▸ --- xcodebuild: WARNING: Using the first of multiple matching destinations:
▸ { platform:iOS, id:dvtdevice-DVTiPhonePlaceholder-iphoneos:placeholder, name:Any iOS Device }
▸ { platform:iOS Simulator, id:dvtdevice-DVTiOSDeviceSimulatorPlaceholder-iphonesimulator:placeholder, name:Any iOS Simulator Device }
▸ { platform:iOS Simulator, id:E4F0A83E-5E75-4C8A-A871-796043E2CD97, OS:16.0, name:iPhone 14 }
▸ { platform:iOS Simulator, id:8CF852C2-D053-4020-A861-01D707EE7C7B, OS:16.0, name:iPhone 14 Plus }
▸ { platform:iOS Simulator, id:FE2944BA-74BD-416E-93BB-3DC56388EF16, OS:16.0, name:iPhone 14 Pro }
▸ { platform:iOS Simulator, id:DD553D4E-CD22-4A2B-B095-50D480238D15, OS:16.0, name:iPhone 14 Pro Max }
▸ { platform:iOS Simulator, id:1F7C3904-A8F9-44F2-B6D0-31F51493EA22, OS:16.0, name:iPhone SE (3rd generation) }
▸ { platform:iOS Simulator, id:12DF1F1F-6206-4BDD-A49F-A0D3456DF497, OS:16.0, name:iPad (9th generation) }
▸ { platform:iOS Simulator, id:45E053AA-59FB-41B7-8DCA-2B11D2392A47, OS:16.0, name:iPad Air (5th generation) }
▸ { platform:iOS Simulator, id:7D6C0D20-8EEC-4074-9347-4F2DED6B610C, OS:16.0, name:iPad Pro (11-inch) (3rd generation) }
▸ { platform:iOS Simulator, id:A30864C0-A249-427B-B2F5-02B94465B342, OS:16.0, name:iPad Pro (12.9-inch) (5th generation) }
▸ { platform:iOS Simulator, id:823E8F2B-3928-438B-877F-E57CBB4D4227, OS:16.0, name:iPad mini (6th generation) }
▸ resolved source packages:
$ xcodebuild -showBuildSettings -workspace ./mellow.xcworkspace -scheme mellow -configuration Debug
[stderr] --- xcodebuild: WARNING: Using the first of multiple matching destinations:
[stderr] { platform:iOS, id:dvtdevice-DVTiPhonePlaceholder-iphoneos:placeholder, name:Any iOS Device }
[stderr] { platform:iOS Simulator, id:dvtdevice-DVTiOSDeviceSimulatorPlaceholder-iphonesimulator:placeholder, name:Any iOS Simulator Device }
[stderr] { platform:iOS Simulator, id:E4F0A83E-5E75-4C8A-A871-796043E2CD97, OS:16.0, name:iPhone 14 }
[stderr] { platform:iOS Simulator, id:8CF852C2-D053-4020-A861-01D707EE7C7B, OS:16.0, name:iPhone 14 Plus }
[stderr] { platform:iOS Simulator, id:FE2944BA-74BD-416E-93BB-3DC56388EF16, OS:16.0, name:iPhone 14 Pro }
[stderr] { platform:iOS Simulator, id:DD553D4E-CD22-4A2B-B095-50D480238D15, OS:16.0, name:iPhone 14 Pro Max }
[stderr] { platform:iOS Simulator, id:1F7C3904-A8F9-44F2-B6D0-31F51493EA22, OS:16.0, name:iPhone SE (3rd generation) }
[stderr] { platform:iOS Simulator, id:12DF1F1F-6206-4BDD-A49F-A0D3456DF497, OS:16.0, name:iPad (9th generation) }
[stderr] { platform:iOS Simulator, id:45E053AA-59FB-41B7-8DCA-2B11D2392A47, OS:16.0, name:iPad Air (5th generation) }
[stderr] { platform:iOS Simulator, id:7D6C0D20-8EEC-4074-9347-4F2DED6B610C, OS:16.0, name:iPad Pro (11-inch) (3rd generation) }
[stderr] { platform:iOS Simulator, id:A30864C0-A249-427B-B2F5-02B94465B342, OS:16.0, name:iPad Pro (12.9-inch) (5th generation) }
[stderr] { platform:iOS Simulator, id:823E8F2B-3928-438B-877F-E57CBB4D4227, OS:16.0, name:iPad mini (6th generation) }
Command timed out after 3 seconds on try 1 of 4, trying again with a 6 second timeout...
[stderr] --- xcodebuild: WARNING: Using the first of multiple matching destinations:
[stderr] { platform:iOS, id:dvtdevice-DVTiPhonePlaceholder-iphoneos:placeholder, name:Any iOS Device }
[stderr] { platform:iOS Simulator, id:dvtdevice-DVTiOSDeviceSimulatorPlaceholder-iphonesimulator:placeholder, name:Any iOS Simulator Device }
[stderr] { platform:iOS Simulator, id:E4F0A83E-5E75-4C8A-A871-796043E2CD97, OS:16.0, name:iPhone 14 }
[stderr] { platform:iOS Simulator, id:8CF852C2-D053-4020-A861-01D707EE7C7B, OS:16.0, name:iPhone 14 Plus }
[stderr] { platform:iOS Simulator, id:FE2944BA-74BD-416E-93BB-3DC56388EF16, OS:16.0, name:iPhone 14 Pro }
[stderr] { platform:iOS Simulator, id:DD553D4E-CD22-4A2B-B095-50D480238D15, OS:16.0, name:iPhone 14 Pro Max }
[stderr] { platform:iOS Simulator, id:1F7C3904-A8F9-44F2-B6D0-31F51493EA22, OS:16.0, name:iPhone SE (3rd generation) }
[stderr] { platform:iOS Simulator, id:12DF1F1F-6206-4BDD-A49F-A0D3456DF497, OS:16.0, name:iPad (9th generation) }
[stderr] { platform:iOS Simulator, id:45E053AA-59FB-41B7-8DCA-2B11D2392A47, OS:16.0, name:iPad Air (5th generation) }
[stderr] { platform:iOS Simulator, id:7D6C0D20-8EEC-4074-9347-4F2DED6B610C, OS:16.0, name:iPad Pro (11-inch) (3rd generation) }
[stderr] { platform:iOS Simulator, id:A30864C0-A249-427B-B2F5-02B94465B342, OS:16.0, name:iPad Pro (12.9-inch) (5th generation) }
[stderr] { platform:iOS Simulator, id:823E8F2B-3928-438B-877F-E57CBB4D4227, OS:16.0, name:iPad mini (6th generation) }
Command timed out after 6 seconds on try 2 of 4, trying again with a 12 second timeout...
[stderr] 2023-02-14 06:20:59.940 xcodebuild[4281:12934] Requested but did not find extension point with identifier Xcode.InterfaceBuilderBuildSupport.PlatformDefinition
[stderr] 2023-02-14 06:20:59.940 xcodebuild[4294:12993] Requested but did not find extension point with identifier Xcode.InterfaceBuilderBuildSupport.PlatformDefinition
[stderr] --- xcodebuild: WARNING: Using the first of multiple matching destinations:
[stderr] { platform:iOS, id:dvtdevice-DVTiPhonePlaceholder-iphoneos:placeholder, name:Any iOS Device }
[stderr] { platform:iOS Simulator, id:dvtdevice-DVTiOSDeviceSimulatorPlaceholder-iphonesimulator:placeholder, name:Any iOS Simulator Device }
[stderr] { platform:iOS Simulator, id:E4F0A83E-5E75-4C8A-A871-796043E2CD97, OS:16.0, name:iPhone 14 }
[stderr] { platform:iOS Simulator, id:8CF852C2-D053-4020-A861-01D707EE7C7B, OS:16.0, name:iPhone 14 Plus }
[stderr] { platform:iOS Simulator, id:FE2944BA-74BD-416E-93BB-3DC56388EF16, OS:16.0, name:iPhone 14 Pro }
[stderr] { platform:iOS Simulator, id:DD553D4E-CD22-4A2B-B095-50D480238D15, OS:16.0, name:iPhone 14 Pro Max }
[stderr] { platform:iOS Simulator, id:1F7C3904-A8F9-44F2-B6D0-31F51493EA22, OS:16.0, name:iPhone SE (3rd generation) }
[stderr] { platform:iOS Simulator, id:12DF1F1F-6206-4BDD-A49F-A0D3456DF497, OS:16.0, name:iPad (9th generation) }
[stderr] { platform:iOS Simulator, id:45E053AA-59FB-41B7-8DCA-2B11D2392A47, OS:16.0, name:iPad Air (5th generation) }
[stderr] { platform:iOS Simulator, id:7D6C0D20-8EEC-4074-9347-4F2DED6B610C, OS:16.0, name:iPad Pro (11-inch) (3rd generation) }
[stderr] { platform:iOS Simulator, id:A30864C0-A249-427B-B2F5-02B94465B342, OS:16.0, name:iPad Pro (12.9-inch) (5th generation) }
[stderr] { platform:iOS Simulator, id:823E8F2B-3928-438B-877F-E57CBB4D4227, OS:16.0, name:iPad mini (6th generation) }
[stderr] 2023-02-14 06:21:02.533 xcodebuild[4304:13137] Requested but did not find extension point with identifier Xcode.InterfaceBuilderBuildSupport.PlatformDefinition
Detected provisioning profile mapping: {:"com.cleeryy.mellow"=>"9b26e304-64e4-4e32-af29-5bd1fda8fd72"}
+--------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------+
|                                                                                       Summary for gym 2.210.0                                                                                        |
+--------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------+
| workspace                                              | ./mellow.xcworkspace                                                                                                                        |
| scheme                                                 | mellow                                                                                                                                      |
| clean                                                  | false                                                                                                                                       |
| output_directory                                       | ./build                                                                                                                                     |
| output_name                                            | mellow                                                                                                                                      |
| configuration                                          | Debug                                                                                                                                       |
| silent                                                 | false                                                                                                                                       |
| skip_package_ipa                                       | false                                                                                                                                       |
| skip_package_pkg                                       | false                                                                                                                                       |
| export_options.method                                  | ad-hoc                                                                                                                                      |
| export_options.provisioningProfiles.com.cleeryy.mellow | 9b26e304-64e4-4e32-af29-5bd1fda8fd72                                                                                                        |
| export_xcargs                                          | OTHER_CODE_SIGN_FLAGS="--keychain /var/folders/h2/gp9wlkv11lg0qj6y2mnqgc_40000gn/T/turtle-v2-de5d7334-4ce1-48a4-936f-098e41a0c19e.keychain" |
| build_path                                             | /Users/expo/Library/Developer/Xcode/Archives/2023-02-14                                                                                     |
| result_bundle                                          | false                                                                                                                                       |
| buildlog_path                                          | /Users/expo/workingdir/logs                                                                                                                 |
| destination                                            | generic/platform=iOS                                                                                                                        |
| suppress_xcode_output                                  | true                                                                                                                                        |
| xcodebuild_formatter                                   | xcpretty                                                                                                                                    |
| disable_xcpretty                                       | true                                                                                                                                        |
| skip_profile_detection                                 | false                                                                                                                                       |
| xcodebuild_command                                     | xcodebuild                                                                                                                                  |
| skip_package_dependencies_resolution                   | false                                                                                                                                       |
| disable_package_automatic_updates                      | false                                                                                                                                       |
| use_system_scm                                         | false                                                                                                                                       |
| xcode_path                                             | /Applications/Xcode.app                                                                                                                     |
+--------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------+
$ set -o pipefail && xcodebuild -workspace ./mellow.xcworkspace -scheme mellow -configuration Debug -destination 'generic/platform=iOS' -archivePath /Users/expo/Library/Developer/Xcode/Archives/2023-02-14/mellow\ 2023-02-14\ 06.21.02.xcarchive archive | tee /Users/expo/workingdir/logs/mellow-mellow.log > /dev/null
› Executing @unimodules/core Pods/UMCore » [CP] Copy XCFrameworks
› Compiling react-native Pods/glog » vlog_is_on.cc
› Compiling react-native Pods/glog » utilities.cc
› Compiling react-native Pods/glog » symbolize.cc
› Compiling react-native Pods/glog » signalhandler.cc
› Compiling react-native Pods/glog » raw_logging.cc
› Compiling react-native Pods/glog » logging.cc
› Compiling expo-firebase-core Pods/nanopb » pb_encode.c
› Compiling expo-firebase-core Pods/nanopb » pb_decode.c
› Compiling expo-firebase-core Pods/nanopb » pb_common.c
› Compiling expo-firebase-core Pods/nanopb » nanopb-dummy.m
› Compiling react-native Pods/glog » glog-dummy.m
[...]
› Packaging expo-modules-core Pods/ExpoModulesCore » libExpoModulesCore.a
› Compiling Pods/GoogleUtilities » NSURLSession+GULPromises.m
› Compiling Pods/GoogleUtilities » GoogleUtilities-dummy.m
› Compiling Pods/GoogleUtilities » GULUserDefaults.m
› Compiling Pods/GoogleUtilities » GULURLSessionDataResponse.m
› Compiling Pods/GoogleUtilities » GULSwizzlingCache.m
› Executing expo-notifications Pods/EXNotifications » [CP] Copy XCFrameworks
› Executing expo-file-system Pods/EXFileSystem » [CP] Copy XCFrameworks
› Compiling Pods/GoogleUtilities » GULSwizzler.m
› Compiling Pods/GoogleUtilities » GULSwizzler+Unswizzle.m
› Compiling Pods/GoogleUtilities » GULSwizzledObject.m
› Compiling Pods/GoogleUtilities » GULSecureCoding.m
› Compiling Pods/GoogleUtilities » GULSceneDelegateSwizzler.m
› Compiling Pods/GoogleUtilities » GULRuntimeStateHelper.m
› Compiling Pods/GoogleUtilities » GULRuntimeSnapshot.m
› Compiling Pods/GoogleUtilities » GULRuntimeDiff.m
› Compiling Pods/GoogleUtilities » GULRuntimeClassSnapshot.m
› Compiling Pods/GoogleUtilities » GULRuntimeClassDiff.m
› Compiling Pods/GoogleUtilities » GULReachabilityChecker.m
› Compiling Pods/GoogleUtilities » GULProxy.m
› Compiling GULObjectSwizzler.m
› Compiling Pods/GoogleUtilities » GULNetworkURLSession.m
› Compiling Pods/GoogleUtilities » GULNetworkInfo.m
› Compiling Pods/GoogleUtilities » GULNetworkConstants.m
› Compiling Pods/GoogleUtilities » GULNetwork.m
› Compiling Pods/GoogleUtilities » GULMutableDictionary.m
› Compiling Pods/GoogleUtilities » GULLogger.m
› Compiling Pods/GoogleUtilities » GULKeychainUtils.m
› Compiling Pods/GoogleUtilities » GULKeychainStorage.m
› Compiling Pods/GoogleUtilities » GULHeartbeatDateStorageUserDefaults.m
› Compiling Pods/GoogleUtilities » GULHeartbeatDateStorage.m
› Compiling Pods/GoogleUtilities » GULAppEnvironmentUtil.m
› Compiling Pods/GoogleUtilities » GULAppDelegateSwizzler.m
› Packaging Pods/GoogleUtilities » libGoogleUtilities.a

❌  (node_modules/expo-keep-awake/ios/KeepAwakeModule.swift:8:31)

   6 |   private var activeTags = Set<String>()
   7 | 
>  8 |   public func definition() -> ModuleDefinition {
     |                               ^ cannot find type 'ModuleDefinition' in scope
   9 |     Name("ExpoKeepAwake")
  10 | 
  11 |     AsyncFunction("activate") { (tag: String) -> Bool in

❌  (node_modules/expo-keep-awake/ios/KeepAwakeModule.swift:5:37)

  3 | import ExpoModulesCore
  4 | 
> 5 | public final class KeepAwakeModule: Module {
    |                                     ^ cannot find type 'Module' in scope
  6 |   private var activeTags = Set<String>()
  7 | 
  8 |   public func definition() -> ModuleDefinition {
› Compiling expo-keep-awake Pods/ExpoKeepAwake » KeepAwakeModule.swift
    Run script build phase 'Start Packager' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'mellow' from project 'mellow')
    Run script build phase 'Bundle React Native code and images' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'mellow' from project 'mellow')
    Run script build phase '[CP-User] Generate app.config for prebuilt Constants.manifest' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'EXConstants' from project 'Pods')
▸ ** ARCHIVE FAILED **
▸ The following build commands failed:
▸ 	SwiftEmitModule normal arm64 Emitting\ module\ for\ ExpoKeepAwake (in target 'ExpoKeepAwake' from project 'Pods')
▸ (1 failure)
** ARCHIVE FAILED **
The following build commands failed:
	SwiftEmitModule normal arm64 Emitting\ module\ for\ ExpoKeepAwake (in target 'ExpoKeepAwake' from project 'Pods')
(1 failure)
Exit status: 65
+-------------+-------------------------+
|           Build environment           |
+-------------+-------------------------+
| xcode_path  | /Applications/Xcode.app |
| gym_version | 2.210.0                 |
| sdk         | iPhoneOS16.0.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. See logs for the "Run fastlane" and "Xcode Logs" phases for more information.
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 don’t know if you can help me with this or if I have to open another post but thanks a lot for helping me fixing the Gymfile error and my misunderstanding of the thing !

I did cut the middle part because it was too long and useless.

Thanks a lot, I was able to fix the error by myself, have a nice day !

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.