react-native - 无法运行项目
问题描述
我也在 Xcode 首选项中选择了位置,但得到了同样的错误:
xcrun: error: Failed to determine realpath of '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk' (errno=No such file or directory)
xcrun: error: unable to find utility "instruments", not a developer tool or in PATH
Command failed: xcrun instruments -s
xcrun: error: Failed to determine realpath of '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk' (errno=No such file or directory)
xcrun: error: unable to find utility "instruments", not a developer tool or in PATH
Error: Command failed: xcrun instruments -s
xcrun: error: Failed to determine realpath of '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk' (errno=No such file or directory)
xcrun: error: unable to find utility "instruments", not a developer tool or in PATH
at checkExecSyncError (child_process.js:601:13)
at Object.execFileSync (child_process.js:621:13)
at Object.runIOS [as func] (/Users/ranjith/Documents/Project/Login_React/node_modules/react-native/local-cli/runIOS/runIOS.js:76:17)
at Promise.resolve.then (/Users/ranjith/Documents/Project/Login_React/node_modules/react-native/local-cli/cliEntry.js:117:22)
at <anonymous>
解决方案
推荐阅读
- javascript - 如何使用 App 脚本为缺少的单元格内容插入空白占位符数据?
- php - 方法 Illuminate\Support\Collection::paginate 不存在
- javascript - React.js问题从父母发送道具和事件到孩子
- html - 使用 CSS 将文本保持在浏览器的中心
- mockito - 如何在 Arquillian 测试中监视 CDI bean
- android - Android 图像压缩 - Zelory Compressor 不会在文件路径上上传带有特殊字符的图像
- macos - Mac 无障碍 API - 获取 chrome 选项卡
- mfc - 如何使用 CRecordset::GetFieldValue 从 MFC 中的 MS ACCESS 数据库文件中检索记录
- javascript - 尝试将 JSON 的格式更改为使用新键嵌套元素
- python - 2020 CCC J5/Q2密室逃脱(Python)BFS优化