我已经安装了phonegap,所有工作都适用于android模拟器...而不是ios: phonegap运行ios **建立成功**
[phonegap] successfully compiled iOS app
[phonegap] trying to install app onto device
Error: ios-deploy was not found. Please download, build and install version 1.0.4 or greater from https://github.com/phonegap/ios-deploy into your path. Or 'npm install -g ios-deploy' using node.js: http://nodejs.org/
[phonegap] no device was found
[phonegap] trying to install app onto emulator
[warning] missing ios-sim
[warning] install ios-sim from http://github.com/phonegap/ios-sim
Error: ios-sim was not found. Please download, build and install version 1.7 or greater from https://github.com/phonegap/ios-sim into your path. Or 'npm install -g ios-sim' using node.js: http://nodejs.org/
[error] /Users/riccardo/Desktop/selfiefit/platforms/ios/cordova/run: Command failed with exit code 1
我已经安装了npm ios-deploy和ios-slim,但我仍然得到同样的错误......我哪里错了?
答案 0 :(得分:0)
继续并在终端中输入sudo npm install -g ios-sim
。你应该看到" Build Succeeded"在你的日志结束时。
答案 1 :(得分:0)
您需要按照ios sim installation
上的说明操作npm install -g ios-sim
DevToolsSecurity -enable
sudo ps -A | grep -e "launchd_sim" -e "simulator" -i | grep -v grep | awk '{print $1}' | xargs kill -9
确保关闭模拟器并重新运行模拟器