从终端运行React Native App时出错(iOS) [英] Error Running React Native App From Terminal (iOS)
本文介绍了从终端运行React Native App时出错(iOS)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在关注官方React Native网站上的教程。
使用以下内容构建我的项目:
react-native run-ios
我得到了错误:
找到Xcode项目TestProject.xcodeproj
xcrun:错误:无法找到实用工具工具,而不是开发人员
工具或在PATH
命令失败:xcrun instruments -s
xcrun:错误:无法找到实用工具工具,而不是开发人员
工具或者PATH
虽然,当我从.xcodeproj运行应用程序时,一切正常。
有任何建议吗?
解决方案
点击此链接:
I am following the tutorial on the official React Native website.
Using the following to build my project:
react-native run-ios
I get the error:
Found Xcode project TestProject.xcodeproj
xcrun: error: unable to find utility "instruments", not a developer
tool or in PATH
Command failed: xcrun instruments -s
xcrun: error: unable to find utility "instruments", not a developer
tool or in PATH
Although, when I run the app from the .xcodeproj, everything works fine.
Any suggestions?
解决方案
Check out this link: https://github.com/facebook/react-native/issues/7965. It appears to be a problem with the location of Command line tools
.
In Xcode, select Xcode menu, then Preferences, then Locations tab. Select your Xcode version from the dropdown and exit Xcode.
这篇关于从终端运行React Native App时出错(iOS)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文