react native 踩坑记

按照官网(reactNative中文网)好不容易搭好mac环境,高高兴兴在终端输入“react-native run-ios”的时候,却报了以下问题:

** BUILD SUCCEEDED **

The following commands produced analyzer issues:

Analyze /Users/andrew/go/src/github.com/andrewschreiber/hyperdash/app/node_modules/react-native/ReactCommon/yoga/yoga/YGNodeList.c

Analyze /Users/andrew/go/src/github.com/andrewschreiber/hyperdash/app/node_modules/react-native/ReactCommon/yoga/yoga/Yoga.c

Analyze Base/RCTModuleMethod.mm

(3 commands with analyzer issues)

Installing build/Build/Products/Debug-iphonesimulator/HyperDash.app

An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=2):

Failed to install the requested application

An application bundle was not found at the provided path.

Provide a valid path to the desired application bundle.

Print: Entry, ":CFBundleIdentifier", Does Not Exist

Command failed: /usr/libexec/PlistBuddy -c Print:CFBundleIdentifier build/Build/Products/Debug-iphonesimulator/HyperDash.app/Info.plist

Print: Entry, ":CFBundleIdentifier", Does Not Exist

明明编译成功了(BUILD SUCCEEDED),本地服务窗口也打开了,但却安装不了程序也不能运行。最终找到了问题:

Turned out I needed to set my Location in settings back to unique:

xcode 设置
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

友情链接更多精彩内容