0
+ node /Users/yasir/Desktop/react-working/react-native-pro/example/node_modules/react-native/cli.js bundle --entry-file index.js --platform ios --dev true --reset-cache --bundle-output /Users/yasir/Library/Developer/Xcode/DerivedData/ProExample-cqxdgythbwgbwfhgmvrstmwvqrhv/Build/Products/Debug-iphoneos/main.jsbundle --assets-dest /Users/yasir/Library/Developer/Xcode/DerivedData/ProExample-cqxdgythbwgbwfhgmvrstmwvqrhv/Build/Products/Debug-iphoneos/ProExample.app
warning: the transform cache was reset.
error The resource `/Users/yasir/Desktop/react-working/react-native-pro/example/index.js` was not found.
Error: The resource `/Users/yasir/Desktop/react-working/react-native-pro/example/index.js` was not found.
    at /Users/yasir/Desktop/react-working/react-native-pro/example/node_modules/metro/src/IncrementalBundler.js:297:24
    at gotStat (node:fs:2703:21)
    at FSReqCallback.oncomplete (node:fs:207:21)
info Run CLI with --verbose flag for more details.
Command PhaseScriptExecution failed with a nonzero exit code

React native project is running perfectly in simulator but showing error while running in real device. I have tried..

  • Clean build folder
  • pod disintegration
  • pod init

but nothing is working in my case.

  • Try to rebuild the project after clearing the derive data. Follow the below link to clear your derive data. https://stackoverflow.com/questions/38016143/how-can-i-delete-derived-data-in-xcode-8/39495772#39495772 – Tulon Nov 11 '22 at 11:36

0 Answers0