iosxcodereact-nativeexpoeas

How to Resolve ‘Script has ambiguous dependencies’ Error during eas iOS Build


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.


Solution

  • I ran npx expo prebuild --platform ios

    Then I opened the .xcodeproj file, navigated to build phases and unchecked Based on dependency analysis option.

    And eas build --profile preview --platform ios --local ran fine after