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

Warning Run expo doctor,,,,Error: Run fastlane. #2716

Open
Jessie3 opened this issue Nov 22, 2024 · 1 comment
Open

Warning Run expo doctor,,,,Error: Run fastlane. #2716

Jessie3 opened this issue Nov 22, 2024 · 1 comment

Comments

@Jessie3
Copy link

Jessie3 commented Nov 22, 2024

Build/Submit details page URL

Running "expo doctor" Running 14 checks on your project... ✔ Check package.json for common issues ✔ Check Expo config for common issues ✔ Check native tooling versions ✔ Check for issues with Metro config ✖ Check if the project meets version requirements for submission to app stores ✔ Check for common project setup issues ✔ Check dependencies for packages that should not be installed directly ✔ Check for app config fields that may not be synced in a non-CNG project ✔ Check Expo config (app.json/ app.config.js) schema ✔ Check npm/ yarn versions ✔ Check that packages match versions required by installed Expo SDK ✔ Check for legacy global CLI installed locally ✔ Check that native modules do not use incompatible support packages ✖ Check that native modules use compatible support package versions for installed Expo SDK Detailed check results: Expected package @expo/config-plugins@^5.0.0 Found invalid: @expo/[email protected] @expo/[email protected] @expo/[email protected] (for more info, run: npm why @expo/config-plugins) Expected package @expo/prebuild-config@^5.0.1 Found invalid: @expo/[email protected] (for more info, run: npm why @expo/prebuild-config) This project is using an SDK version that by default targets Android API level 33 or lower. To submit your app to the Google Play Store after August 31 2024, you must target Android API level 34 or higher. One or more checks failed, indicating possible issues with the project. Advice: Upgrade dependencies that are using the invalid package versions. Advice: Upgrade to Expo SDK 50 or later, which by default supports Android API level 34 Learn more: https://support.google.com/googleplay/android-developer/answer/11926878?hl=en Command "expo doctor" failed.

Summary

Command "expo doctor" failed.
npx -y expo-doctor exited with non-zero code: 1

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

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

Managed or bare?

bare

Environment

Creating new worker instance
M1, 2 cores, 8 GB RAM
Using VM template "macos-sonoma-14.5-xcode-15.4" running macOS Sonoma 14.5
Installed software:

  • Xcode 15.4 (15F31d)
  • Node.js 18.18.0
  • Bun 1.1.13
  • Yarn 1.22.21
  • pnpm 9.3.0
  • npm 9.8.1
  • fastlane 2.220.0
  • CocoaPods 1.14.3
  • Ruby 2.7
  • node-gyp 10.1.0
    Project environment variables:
    __API_SERVER_URL=https://api.expo.dev/
    EAS Build environment variables:
    GEM_PATH=/Users/expo/.gems/arm64

Error output

› Compiling react-native Pods/RCT-Folly » json.cpp

❌ (ios/Pods/boost/boost/container_hash/hash.hpp:131:33)

129 | #else
130 | template

131 | struct hash_base : std::unary_function<T, std::size_t> {};
| ^ no template named 'unary_function' in namespace 'std'; did you mean '__unary_function'?
132 | #endif
133 |
134 | struct enable_hash_value { typedef std::size_t type; };
› Compiling react-native Pods/RCT-Folly » dynamic.cpp
› Compiling react-native Pods/RCT-Folly » UniqueInstance.cpp
› Compiling react-native Pods/RCT-Folly » Unicode.cpp
› Compiling react-native Pods/RCT-Folly » ToAscii.cpp
⚠️ Script has ambiguous dependencies causing it to run on every build.
To fix, go to: Xcode » AI/AI » Build Phases » 'Start Packager'
Either: Uncheck "Based on dependency analysis", or select output files to trigger the script
⚠️ Script has ambiguous dependencies causing it to run on every build.
To fix, go to: Xcode » AI/AI » Build Phases » 'Bundle React Native code and images'
Either: Uncheck "Based on dependency analysis", or select output files to trigger the script
▸ ** ARCHIVE FAILED **
▸ The following build commands failed:
▸ CompileC /Users/expo/Library/Developer/Xcode/DerivedData/AI-caiksyfaljzfhubpanygbloyjmbh/Build/Intermediates.noindex/ArchiveIntermediates/AI/IntermediateBuildFilesPath/Pods.build/Release-iphoneos/RCT-Folly.build/Objects-normal/arm64/json.o /Users/expo/workingdir/build/ios/Pods/RCT-Folly/folly/json.cpp normal arm64 c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'RCT-Folly' from project 'Pods')
▸ (1 failure)
** ARCHIVE FAILED **
The following build commands failed:
CompileC /Users/expo/Library/Developer/Xcode/DerivedData/AI-caiksyfaljzfhubpanygbloyjmbh/Build/Intermediates.noindex/ArchiveIntermediates/AI/IntermediateBuildFilesPath/Pods.build/Release-iphoneos/RCT-Folly.build/Objects-normal/arm64/json.o /Users/expo/workingdir/build/ios/Pods/RCT-Folly/folly/json.cpp normal arm64 c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'RCT-Folly' from project 'Pods')
(1 failure)
Exit status: 65
+---------------------------------------+
| Build environment |
+-------------+-------------------------+
| xcode_path | /Applications/Xcode.app |
| gym_version | 2.220.0 |
| sdk | iPhoneOS17.5.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

This project is using an SDK version that by default targets Android API level 33 or lower. To submit your app to the Google Play Store after August 31 2024, you must target Android API level 34 or higher.
One or more checks failed, indicating possible issues with the project.
Advice: Upgrade dependencies that are using the invalid package versions.
Advice: Upgrade to Expo SDK 50 or later, which by default supports Android API level 34 Learn more: https://support.google.com/googleplay/android-developer/answer/11926878?hl=en
Command "expo doctor" failed.
npx -y expo-doctor exited with non-zero code: 1

@Jessie3 Jessie3 added the needs review Issue is ready to be reviewed by a maintainer label Nov 22, 2024
@szdziedzic
Copy link
Member

Hey, can you send me a link to your build? It would be best to fix the warnings from the expo doctor they seem like it can be a potential root cause of some issues for you. What SDK version do you use?

@szdziedzic szdziedzic added eas build and removed needs review Issue is ready to be reviewed by a maintainer labels Nov 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants