按照官网(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: