我正在用React Native开发一个APP,并且试图在IOS模拟器中运行它。我已经在Android中进行过尝试,并且项目运行没有问题,但是当我尝试在XCode Simulator上运行它时,出现以下错误:
line 3: ../node_modules/react-native/scripts/react-native-xcode.sh: Permission denied
Command PhaseScriptExecution failed with a nonzero exit code
error Failed to build iOS project. We ran "xcodebuild" command but it exited with error code 65. To debug build logs further, consider building your app with Xcode.app, by opening IDRUS_RSR.xcworkspace
* BUILD FAILED *
The following build commands failed:
PhaseScriptExecution Bundle\ React\ Native\ code\ and\ images /Users/juanshallcrass/Documents/IDRUS/idrus-rsr/ios/build/IDRUS_RSR/Build/Intermediates.noindex/IDRUS_RSR.build/Debug-iphonesimulator/IDRUS_RSR.build/Script-00DD1BFF1BD5951E006B06BC.sh
(1 failure)
我已经尝试将 Bundle react Native代码和图像更改为:../node_modules/react-native/scripts/react-native-xcode.sh
,但没有任何更改。
我该怎么办?
答案 0 :(得分:1)
您的项目似乎没有正确的权限,请尝试用当前用户重新安装node_modules
文件../node_modules/react-native/scripts/react-native-xcode.sh
当前引发权限被拒绝的异常