本文介绍了React-native 上 XCode 8.3.2 上的 Shell 脚本调用错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

运行 ReactNative 应用程序时出现此错误

I got this Error When I run my ReactNative App

/Users/GLB-285/Desktop/ReactProjects/DribbleProject/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/double-conversion.build/Script-190EE32F1E6A43DE00A8543A.sh: line 3: /Users/GLB-285/Desktop/ReactProjects/DribbleProject/node_modules/react-native/scripts/ios-install-third-party.sh: Permission denied**

在终端:

child_process.js:495
throw err;
^
Error: spawnSync /Users/GLB-285/Desktop/ReactProjects/DribbleProject/node_modules/react-native/local-cli/setup_env.sh EACCES
at exports._errnoException (util.js:1020:11)
at spawnSync (child_process.js:450:20)
at Object.execFileSync (child_process.js:487:13)
at Object.run (/Users/GLB-285/Desktop/ReactProjects/DribbleProject/node_modules/react-native/local-cli/cliEntry.js:136:16)
at Object.<anonymous> (/usr/local/lib/node_modules/react-native-cli/index.js:117:7)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)

推荐答案

  1. 清理 ~/.rncache 文件夹.

  1. Clean ~/.rncache folder.

手动下载4个第三方库

Download 4 third party library by manualor

重新运行react-native run-ios命令并等待打印

Re-run the react-native run-ios command and wait to print

curl: Saved to filename message.

You should check 100% Received status.

切勿在构建阶段按 ctrl+c.

这篇关于React-native 上 XCode 8.3.2 上的 Shell 脚本调用错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-02 04:31