react-native run-ios報的錯誤
Command failed: /usr/libexec/PlistBuddy -c Print:CFBundleIdentifier
build/Build/Products/Debug-iphonesimulator/imoocApp.app/Info.plist
Print: Entry, ":CFBundleIdentifier", Does Not Exist
造成這個這個錯誤的原因是:版本問題。新版的react native比較新疟暖,npm包沒有及時更新卡儒,所以才會造成這個錯誤。
最簡單的解決方法:
創(chuàng)建項目時使用:react-native init 項目名 --version 0.44.3