Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IOS local build fail - ARCHIVE FAILED #2424

Closed
tipleavalentin opened this issue Jun 12, 2024 · 5 comments
Closed

IOS local build fail - ARCHIVE FAILED #2424

tipleavalentin opened this issue Jun 12, 2024 · 5 comments
Labels
eas build needs more info needs review Issue is ready to be reviewed by a maintainer

Comments

@tipleavalentin
Copy link

Build/Submit details page URL

No response

Summary

When I run "eas build --platform ios --local --clear-cache" I get this error at the end:
Error: Unable to resolve module /tmp/eas-ios/build/node_modules/expo/AppEntry.js from /private/tmp/eas-ios/build/.:

None of these files exist:

  • ../../../../tmp/eas-ios/build/node_modules/expo/AppEntry.js(.ios.ts|.native.ts|.ts|.ios.tsx|.native.tsx|.tsx|.ios.mjs|.native.mjs|.mjs|.ios.js|.native.js|.js|.ios.jsx|.native.jsx|.jsx|.ios.json|.native.json|.json|.ios.cjs|.native.cjs|.cjs|.ios.scss|.native.scss|.scss|.ios.sass|.native.sass|.sass|.ios.css|.native.css|.css)

If I skip dir cleanup I can see the file node_modules/expo/AppEntry.js is present so it should be fine.
Live development work with no issues.
Two weeks ago I managed to successfully build an .ipa file, now it's not working. :(

Managed or bare?

bare

Environment

expo-env-info 1.2.0 environment info:
System:
OS: macOS 14.5
Shell: 5.9 - /bin/zsh
Binaries:
Node: 20.14.0 - /usr/local/bin/node
Yarn: 1.22.19 - /usr/local/bin/yarn
npm: 10.8.1 - /usr/local/bin/npm
Watchman: 2024.05.06.00 - /opt/homebrew/bin/watchman
Managers:
CocoaPods: 1.15.2 - /opt/homebrew/bin/pod
SDKs:
iOS SDK:
Platforms: DriverKit 23.5, iOS 17.5, macOS 14.5, tvOS 17.5, visionOS 1.2, watchOS 10.5
IDEs:
Android Studio: 2023.3 AI-233.14808.21.2331.11926650
Xcode: 15.4/15F31d - /usr/bin/xcodebuild
npmPackages:
@expo/webpack-config: ^19.0.1 => 19.0.1
expo: ^51.0.13 => 51.0.13
react: 18.2.0 => 18.2.0
react-dom: 18.2.0 => 18.2.0
react-native: 0.74.2 => 0.74.2
react-native-web: ~0.19.11 => 0.19.12
npmGlobalPackages:
eas-cli: 9.2.0
Expo Workflow: managed

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

Detailed check results:

Error: Problem validating fields in /Users/vtiplea/Public/Projects/mobile/app.json. Learn more: https://docs.expo.dev/workflow/configuration/
• Field: android - should NOT have additional property 'useNextNotificationsApi'.

Error output

From terminal:
(1 failure)
[RUN_FASTLANE] ** ARCHIVE FAILED **
[RUN_FASTLANE]
[RUN_FASTLANE]
[RUN_FASTLANE] The following build commands failed:
[RUN_FASTLANE] PhaseScriptExecution Bundle\ React\ Native\ code\ and\ images /Users/vtiplea/Library/Developer/Xcode/DerivedData/Mobile-bxregnhwofiiuqadqaxzzwveacvs/Build/Intermediates.noindex/ArchiveIntermediates/Mobile/IntermediateBuildFilesPath/Mobile.build/Release-iphoneos/Mobile.build/Script-00DD1BFF1BD5951E006B06BC.sh (in target 'Mobile' from project 'Mobile')
[RUN_FASTLANE] (1 failure)
[RUN_FASTLANE] Exit status: 65

From logs:

Starting Metro Bundler
warning: Bundler cache is empty, rebuilding (this may take a minute)
/private/tmp/eas-ios/build/.:0: error: Unable to resolve module /tmp/eas-ios/build/node_modules/expo/AppEntry.js from /private/tmp/eas-ios/build/.:
Error: Unable to resolve module /tmp/eas-ios/build/node_modules/expo/AppEntry.js from /private/tmp/eas-ios/build/.:

None of these files exist:

  • ../../../../tmp/eas-ios/build/node_modules/expo/AppEntry.js(.ios.ts|.native.ts|.ts|.ios.tsx|.native.tsx|.tsx|.ios.mjs|.native.mjs|.mjs|.ios.js|.native.js|.js|.ios.jsx|.native.jsx|.jsx|.ios.json|.native.json|.json|.ios.cjs|.native.cjs|.cjs|.ios.scss|.native.scss|.scss|.ios.sass|.native.sass|.sass|.ios.css|.native.css|.css)

Reproducible demo or steps to reproduce from a blank project

eas build --platform ios --local --clear-cache

@tipleavalentin tipleavalentin added the needs review Issue is ready to be reviewed by a maintainer label Jun 12, 2024
@ahmad-elafify-pci
Copy link

ahmad-elafify-pci commented Jun 12, 2024

I am also facing this issue, posted about it in the discord and had only seen 2 people post about it and received no response.

@tipleavalentin
Copy link
Author

I am also facing this issue, posted about it in the discord and had only seen 2 people post about it and received no response.

Hi!
I updated the expo package to 51.0.14 and I tried again the build.
Luckily it worked just fine now.

@szdziedzic
Copy link
Member

Hi!
I updated the expo package to 51.0.14 and I tried again the build.
Luckily it worked just fine now.

Good to hear it! @ahmad-elafify-pci did it also help you?

@ahmad-elafify-pci
Copy link

ahmad-elafify-pci commented Jun 14, 2024

Hi!
I updated the expo package to 51.0.14 and I tried again the build.
Luckily it worked just fine now.

Good to hear it! @ahmad-elafify-pci did it also help you?

Same here! Today I did an expo-doctor and an npx expo install --fix which installed these dependencies:

  [email protected] - expected version: ~51.0.14
  [email protected] - expected version: ~15.0.11
  [email protected] - expected version: ~4.0.18
  [email protected] - expected version: ~1.12.12
  [email protected] - expected version: ~0.25.17

After that completed, I was able to finally build for ios again using eas build --local! 🎉

@szdziedzic
Copy link
Member

Awesome!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
eas build needs more info needs review Issue is ready to be reviewed by a maintainer
Projects
None yet
Development

No branches or pull requests

3 participants