skip to Main Content

New clear project is not running on physical device via Xcode.

But npx react-native run-ios works perfect. issue is only with Xcode when trying to build and test in physical device.

Physical device: iPhone 8 Plus iOS 14.6

Getting this error:
cp: /Users/uktamhamidov/Library/Developer/Xcode/DerivedData/SQRE-arjlqbohgbkkananywponwudfhts/Build/Products/Debug-iphoneos/main.jsbundle: No such file or directory
Command PhaseScriptExecution failed with a nonzero exit code

Screenshot

2

Answers


  1. Make sure you installed pod file inside ios folder

    If you are already installed delete the podfile.lock and Pods folder and then install pods again.

    cd ios && pod install

    Then when it’s done go back to your main folder and run

    yarn run ios

    If that doesn’t work, check out the solutions here

    Login or Signup to reply.
  2. Looks like iOS 14.6 issue, once I updated to it my project is failing to build with the same error, Xcode actually doesn’t even have support for 14.6 according to /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search