cd /Users/mrs.liang/Workbench/GeQing/palmscore/client_rn/Score-master
react-native run-ios
或者
react-native run-android
修改js代碼后再次運行
ios模擬器,按快捷鍵:command+r
常用命令
adb devices #查看連接設(shè)備
問題
無法安裝app到ios模擬器的問題
執(zhí)行react-native run-ios命令編譯成功,安裝報錯:
Installing build/Build/Products/Debug-iphonesimulator/Score.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/Score.app/Info.plist
Print: Entry, ":CFBundleIdentifier", Does Not Exist
解決方式:
執(zhí)行如下命令:
react-native upgrade
react-native run-ios