我已经安装了 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,但我仍然遇到同样的错误...我哪里错了?
最佳答案
继续并在您的终端中输入 sudo npm install -g ios-sim
。您应该在日志末尾看到“Build Succeeded”。
按照 github.com/phonegap/ios-sim 上的说明进行操作
关于cordova - PhoneGap 模拟器错误 : ios-deploy was not found,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22571630/