expo / eas-cli

Fastest way to build, submit, and update iOS and Android apps
https://docs.expo.dev/eas/
MIT License
844 stars 85 forks source link

SDK 49 - eas build ios failed on "run fastlane" #2109

Open johnfau opened 1 year ago

johnfau commented 1 year ago

Build/Submit details page URL

https://expo.dev/accounts/johnfa/projects/carles-connect/builds/5f04dc92-7dbc-42c8-9f9f-bb1dac0c7b2c#run-fastlane

Summary

We started a new project with expo 49. It errors with the following message :

Build failed: The "Run fastlane" step failed with an unknown error. Refer to "Xcode Logs" below for additional, more detailed logs.

We don't see any errors in Xcode logs, I put the end of the log on the Error ouput below.

Another project on the same expo account, same computer, same ios credentials (except for provisionning) on expo 47 still builds correctly.

We don't have any Mac device to test a local build which make the issue extra-difficult to understand. We tried suggestion from https://github.com/expo/eas-cli/issues/2024 and https://github.com/expo/expo/issues/25105 but the error remained.

Managed or bare?

managed

Environment

expo-env-info 1.0.5 environment info: System: OS: Windows 10 10.0.19045 Binaries: Node: 18.6.0 - C:\Program Files\nodejs\node.EXE npm: 8.13.2 - C:\Program Files\nodejs\npm.CMD npmPackages: @expo/webpack-config: ^19.0.0 => 19.0.0 expo: ~49.0.11 => 49.0.16 react: 18.2.0 => 18.2.0 react-native: 0.72.6 => 0.72.6 react-native-web: ~0.19.6 => 0.19.9 Expo Workflow: managed

✔ 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 native modules do not use incompatible support packages ✔ Check for legacy global CLI installed locally ✔ Check that packages match versions required by installed Expo SDK ✔ Check that native modules use compatible support package versions for installed Expo SDK

Didn't find any issues with the project!

Error output

Build failed: The "Run fastlane" step failed with an unknown error. Refer to "Xcode Logs" below for additional, more detailed logs.

    /usr/bin/codesign --force --sign REDACTED --entitlements /Users/expo/Library/Developer/Xcode/DerivedData/AppNameRedacted-REDACTED/Build/Intermediates.noindex/ArchiveIntermediates/AppNameRedacted/IntermediateBuildFilesPath/AppNameRedacted.build/Release-iphoneos/AppNameRedacted.build/AppNameRedacted.app.xcent --generate-entitlement-der /Users/expo/Library/Developer/Xcode/DerivedData/AppNameRedacted-REDACTED/Build/Intermediates.noindex/ArchiveIntermediates/AppNameRedacted/InstallationBuildProductsLocation/Applications/AppNameRedacted.app

RegisterExecutionPolicyException /Users/expo/Library/Developer/Xcode/DerivedData/AppNameRedacted-REDACTED/Build/Intermediates.noindex/ArchiveIntermediates/AppNameRedacted/InstallationBuildProductsLocation/Applications/AppNameRedacted.app (in target 'AppNameRedacted' from project 'AppNameRedacted')

    cd /Users/expo/workingdir/build/ios

    builtin-RegisterExecutionPolicyException /Users/expo/Library/Developer/Xcode/DerivedData/AppNameRedacted-REDACTED/Build/Intermediates.noindex/ArchiveIntermediates/AppNameRedacted/InstallationBuildProductsLocation/Applications/AppNameRedacted.app

Validate /Users/expo/Library/Developer/Xcode/DerivedData/AppNameRedacted-REDACTED/Build/Intermediates.noindex/ArchiveIntermediates/AppNameRedacted/InstallationBuildProductsLocation/Applications/AppNameRedacted.app (in target 'AppNameRedacted' from project 'AppNameRedacted')

    cd /Users/expo/workingdir/build/ios

    builtin-validationUtility /Users/expo/Library/Developer/Xcode/DerivedData/AppNameRedacted-REDACTED/Build/Intermediates.noindex/ArchiveIntermediates/AppNameRedacted/InstallationBuildProductsLocation/Applications/AppNameRedacted.app

Touch /Users/expo/Library/Developer/Xcode/DerivedData/AppNameRedacted-REDACTED/Build/Intermediates.noindex/ArchiveIntermediates/AppNameRedacted/InstallationBuildProductsLocation/Applications/AppNameRedacted.app (in target 'AppNameRedacted' from project 'AppNameRedacted')

    cd /Users/expo/workingdir/build/ios

    /usr/bin/touch -c /Users/expo/Library/Developer/Xcode/DerivedData/AppNameRedacted-REDACTED/Build/Intermediates.noindex/ArchiveIntermediates/AppNameRedacted/InstallationBuildProductsLocation/Applications/AppNameRedacted.app

Reproducible demo or steps to reproduce from a blank project

run eas build --platform ios from my expo account on a project with expo ~49.0.11

{
  "name": "app",
  "version": "1.0.0",
  "main": "index.js",
  "scripts": {
    "start": "expo start",
    "android": "expo run:android",
    "ios": "expo run:ios",
    "web": "expo start --web"
  },
  "dependencies": {
    "@expo/webpack-config": "^19.0.0",
    "@react-native-async-storage/async-storage": "1.18.2",
    "axios": "^1.5.0",
    "expo": "~49.0.11",
    "expo-asset": "~8.10.1",
    "expo-constants": "~14.4.2",
    "expo-dev-client": "~2.4.11",
    "expo-file-system": "~15.4.4",
    "expo-font": "~11.4.0",
    "expo-intent-launcher": "~10.7.0",
    "expo-linear-gradient": "~12.3.0",
    "expo-linking": "~5.0.2",
    "expo-media-library": "~15.4.1",
    "expo-router": "^2.0.0",
    "expo-splash-screen": "~0.20.5",
    "expo-status-bar": "~1.6.0",
    "nativewind": "^2.0.11",
    "react": "18.2.0",
    "react-native": "0.72.6",
    "react-native-gesture-handler": "~2.12.0",
    "react-native-safe-area-context": "4.6.3",
    "react-native-screens": "~3.22.0",
    "react-native-svg": "13.9.0",
    "react-native-toast-message": "^2.1.7",
    "react-native-view-shot": "3.7.0",
    "react-native-web": "~0.19.6",
    "react-native-webview": "13.2.2",
    "expo-network": "~5.4.0"
  },
  "devDependencies": {
    "@babel/core": "^7.20.0",
    "@expo/vector-icons": "^13.0.0",
    "@uidotdev/usehooks": "^2.4.0",
    "js-base64": "^3.7.5",
    "lodash-es": "^4.17.21",
    "react-native-anchor-point": "^1.0.6",
    "react-native-element-dropdown": "^2.10.0",
    "react-native-linear-gradient": "^2.8.3",
    "react-native-outside-press": "^1.2.1",
    "react-native-snap-carousel": "^4.0.0-beta.6",
    "tailwindcss": "3.3.2"
  },
  "private": true
}
Ebenezerayola commented 5 months ago

I am getting this issues as well and so far all of the above comment suggestions have not worked for me. The build was working fine on SDK 49 and now not working for me anymore once upgrading to SDK 51. My dev build was perfectly fine in the expo go app.

Same issue after upgrading to SDK 51.

Hello, were you able to resolve it?

kalashovkerim commented 5 months ago

expo v50, I fix it! just deleted @sentry/react-native

Ebenezerayola commented 5 months ago

expo v50, I fix it! just deleted @sentry/react-native

I'm not I have this, where can I find it so I can also delete it?

kalashovkerim commented 5 months ago

expo v50, I fix it! just deleted @sentry/react-native

I'm not I have this, where can I find it so I can also delete it?

package.json than delete sentry imports in all files where are you using it

Ebenezerayola commented 5 months ago

expo v50, I fix it! just deleted @sentry/react-native

I'm not I have this, where can I find it so I can also delete it?

package.json than delete sentry imports in all files where are you using it

I don't have sentry

kalashovkerim commented 5 months ago

oh, so just carefuly read log where maybe you will see ❌ emodji, and it will tell you what package is giving you error, in my case i saw that problem with sentry package

sousalucas commented 1 month ago

@dev-shahidul It helped me:

  1. npx react-native-clean-project
  2. npx expo-doctor
  3. npx expo install --fix
  4. npx expo prebuild --clean Opened Xcode and waited until everything checked out and the first time without warnings.
  5. ran the command from package.json: "ios": "expo run:ios",

work like a charm!

Nantris commented 1 month ago

Continuing to see this on SDK 51 with React Native 0.75.

gurbuzzomer commented 4 weeks ago

In my case, these were the things I had to do ;

1.Go to eas credentials and recreate your provisioning and distribution certificates

  1. Go to App Store Connect to see whether there are any agreements that the Account Owner has to agree to
    1. If there is a path in your app.js file that has not been gitignored, remove it from gitignore
Th1nhNg0 commented 4 weeks ago

Continuing to see this on SDK 51 with React Native 0.74.5

Nantris commented 4 weeks ago

FWIW our issue ended up being one of our other native dependencies silently causing the error. Remove them all and then add them back one by one to determine which is the cause.

Th1nhNg0 commented 4 weeks ago

For me i have to upgrade xcode to new ios version xD

Sun-Woo-Kim commented 3 weeks ago

In my case, the problem was with Build Phases.

I had the problem after installing a specific library, and I fixed it by adjusting the order as shown in the image.

Screenshot 2024-11-03 at 11 06 57 PM