eas-cli: Suddenly, Expo SDK 48 iOS build failed in the fastlane

Build/Submit details page URL

https://expo.dev/accounts/edilsonlsouza/projects/provedor/builds/98991cb8-ed7c-4353-b88d-e0453c516784

Summary

I’m trying to build an iOS app from my managed Expo project. The build is failing at the Fastlane step. I think I might have selected something wrong during the process because this started happening out of nowhere, and now I can’t build iOS for any project. I’m using Windows.

Managed or bare?

bare

Environment

npx expo-env-info:

expo-env-info 1.0.5 environment info: System: OS: Windows 10 10.0.22631 Binaries: Node: 16.18.0 - C:\Program Files\nodejs\node.EXE Yarn: 1.22.21 - ~\AppData\Roaming\npm\yarn.CMD npm: 8.19.2 - C:\Program Files\nodejs\npm.CMD IDEs: Android Studio: AI-223.8836.35.2231.11005911 npmPackages: @expo/webpack-config: ^18.0.1 => 18.1.4 expo: ~48.0.4 => 48.0.21 react: 18.2.0 => 18.2.0 react-native: 0.71.14 => 0.71.14 Expo Workflow: managed

npx expo-doctor:

WARNING: We recommend using PowerShell or Bash via WSL 2 for development with Expo CLI on Windows. You may encounter issues using cmd.exe.

✔ Check Expo config for common issues ✔ Check package.json for common issues ✔ Check dependencies for packages that should not be installed directly ✔ Check for common project setup issues ✔ Check npm/ yarn versions ✖ Check Expo config (app.json/ app.config.js) schema ✔ Check that packages match versions required by installed Expo SDK ✔ Check that native modules do not use incompatible support packages ✔ Check for legacy global CLI installed locally ✔ Check that native modules use compatible support package versions for installed Expo SDK

Detailed check results:

Error: Problem validating asset fields in D:\PROVEDOR\SGP\Demo\app.json. Learn more: https://docs.expo.dev/ • Field: Android.adaptiveIcon.foregroundImage - image should be square, but the file at ‘./assets/adaptive-icon.png’ has dimensions 1025x1024. • Field: icon - image should be square, but the file at ‘./assets/icon.png’ has dimensions 1025x1024.

One or more checks failed, indicating possible issues with the project.

Error output

› Compiling react-native-safe-area-context Pods/react-native-safe-area-context » RNCSafeAreaViewManager.m 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’) 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 ‘Provedor’ from project ‘Provedor’) 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 ‘Provedor’ from project ‘Provedor’) ▸ ** ARCHIVE FAILED ** ▸ The following build commands failed: ▸ PhaseScriptExecution [CP-User]\ Generate\ Specs /Users/expo/Library/Developer/Xcode/DerivedData/Provedor-eenohjajhyzizocoocnasrhbuisp/Build/Intermediates.noindex/ArchiveIntermediates/Provedor/IntermediateBuildFilesPath/Pods.build/Release-iphoneos/FBReactNativeSpec.build/Script-46EB2E00016A70.sh (in target ‘FBReactNativeSpec’ from project ‘Pods’) ▸ (1 failure) ** ARCHIVE FAILED ** The following build commands failed: PhaseScriptExecution [CP-User]\ Generate\ Specs /Users/expo/Library/Developer/Xcode/DerivedData/Provedor-eenohjajhyzizocoocnasrhbuisp/Build/Intermediates.noindex/ArchiveIntermediates/Provedor/IntermediateBuildFilesPath/Pods.build/Release-iphoneos/FBReactNativeSpec.build/Script-46EB2E00016A70.sh (in target ‘FBReactNativeSpec’ from project ‘Pods’) (1 failure) Exit status: 65 ±------------±------------------------+ | Build environment | ±------------±------------------------+ | xcode_path | /Applications/Xcode.app | | gym_version | 2.211.0 | | sdk | iPhoneOS16.2.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 [!] Error building the application - see the log above Error: The “Run fastlane” step failed with an unknown error. Refer to “Xcode Logs” below for additional, more detailed logs.

Reproducible demo or steps to reproduce from a blank project

🍏 iOS build failed: The “Run fastlane” (https://expo.dev/accounts/edilsonlsouza/projects/provedor/builds/8ae0ade1-caf5-48b7-9722-9b02819723d3#run-fastlane) step failed with an unknown error. Refer to the “Xcode logs” (https://expo.dev/accounts/edilsonlsouza/projects/provedor/builds/8ae0ade1-caf5-48b7-9722-9b02819723d3#xcode-logs) phase for additional, more detailed logs error Command failed with exit code 1.

About this issue

  • Original URL
  • State: open
  • Created 6 months ago
  • Comments: 15 (3 by maintainers)

Most upvoted comments

Thanks @szdziedzic, changing to module.exports syntax solved the problem.

I assume it is also related to the updated default Node version on EAS images.