When I run this command in my react-native expo project, eas build --profile preview --platform ios --local
, I get this error:
[RUN_FASTLANE] ⚠️ Script has ambiguous dependencies causing it to run on every build.
To fix, go to: Xcode » MagicMusic/MagicMusic » Build Phases » '[CP-User] [RNFB] Core Configuration'
Either: Uncheck "Based on dependency analysis", or select output files to trigger the script
I’m not currently actively doing anything with Xcode and I’m not sure how to solve this problem.
2
Answers
I ran
npx expo prebuild --platform ios
Then I opened the
.xcodeproj
file, navigated tobuild phases
and uncheckedBased on dependency analysis
option.And
eas build --profile preview --platform ios --local
ran fine afterI faced the same issue (but with EAS Build (their online service)).
I updated "@react-native-firebase/*" packages (which are referenced as "RNFB" in the logs) and updated the Expo SDK. That solved the issue for me.
However, local builds on my machine still produce the same error.