Ios React本机-PHASESCRIPTEX执行错误

Ios React本机-PHASESCRIPTEX执行错误,ios,reactjs,react-native,Ios,Reactjs,React Native,我正在用React Native开发一个应用程序,并尝试在IOS模拟器中运行它。我已经在Android上试过了,项目运行没有问题,但是当我尝试在XCode模拟器上运行它时,出现了以下错误: line 3: ../node_modules/react-native/scripts/react-native-xcode.sh: Permission denied Command PhaseScriptExecution failed with a nonzero exit code er

我正在用React Native开发一个应用程序,并尝试在IOS模拟器中运行它。我已经在Android上试过了,项目运行没有问题,但是当我尝试在XCode模拟器上运行它时,出现了以下错误:

    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)
我已经尝试将包react-Native代码和图像更改为:
。/node\u modules/react-Native/scripts/react-Native xcode.sh
,但没有任何更改


我能做什么?

看起来您的项目没有正确的权限,请尝试用当前用户重新安装
节点\u模块


文件
。/node\u modules/react native/scripts/react native xcode.sh
当前引发权限拒绝异常

谢谢!我不得不更改所有项目的权限,但在那之后它就成功了。@OscarSaro您是如何更改权限的?