React Native - PhaseScript执行错误

问题描述 投票:0回答:2

我正在React Native中开发一个应用程序,并尝试在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
,但没有任何改变。

我能做什么?

ios reactjs react-native
2个回答
3
投票

看起来您的项目没有正确的权限,请尝试使用当前用户重新安装

node_modules

文件

../node_modules/react-native/scripts/react-native-xcode.sh
当前抛出权限被拒绝异常


0
投票

尝试删除yarn.lock/package.lock.json和node_nodules并再次安装包

© www.soinside.com 2019 - 2024. All rights reserved.