求助 :react-native init Demo 成功了,但虛擬機(jī)報(bào)錯(cuò)<崩琛T侧到!
環(huán)境:Mac air 系統(tǒng)10.11.6 (15G1510)
XCode 7.3.1
homebrew
C-Air:~ apple$ brew -v
Homebrew 1.2.1
node
C-Air:~ apple$ node -v
v6.10.3
react-native
C-Air:~ apple$ react-native -v
react-native-cli: 2.0.1
react-native: n/a - not inside a React Native project directory
git
C-Air:~ apple$ git --version
git version 2.7.4 (Apple Git-66)
但是 :命令 react-native run-ios 出現(xiàn)下面錯(cuò)誤 導(dǎo)致XCode的虛擬機(jī)起來(lái)了,但不能安裝app淤击,也不難調(diào)試 js 代碼
The following build commands failed:
CompileC /Users/apple/Desktop/RN_projects/Demo/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/React.build/Objects-normal/x86_64/RCTTabBarItem.o Views/RCTTabBarItem.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
Installing build/Build/Products/Debug-iphonesimulator/Demo.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/Demo.app/Info.plist
Print: Entry, ":CFBundleIdentifier", Does Not Exist
怎么解決這個(gè)難題匠抗?請(qǐng)教高手 幫 看看 !N厶А汞贸!謝謝了先