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
!