Android 和 iPad 上的 Cordova 项目 运行,但 iPhone 上没有
Cordova project running on Android and on iPad, but not on iPhone
我有一个 Cordova 项目,我可以 运行 在我的 Android phone 上使用 ionic run android --device
和在我的 iPad 上使用 ionic run ios --device
.但是,现在我再次连接我的 iPhone 5 和 运行 最后一个命令,但收到以下错误消息。
...
[ 60%] TakingInstallLock
[ 65%] PreflightingApplication
[ 65%] InstallingEmbeddedProfile
[ 70%] VerifyingApplication
2015-06-24 17:58:48.564 ios-deploy[33436:1048931] [ !! ] Error 0xe8008015: ∑~}ˇ AMDeviceSecureInstallApplication(0, device, url, options, install_callback, 0)
Error code 253 for command: ios-deploy with args: -d,-b,/path/to/project/App/platforms/ios/build/device/project_name.app
ERROR running one or more of the platforms: Error: /path/to/project/platforms/ios/cordova/run: Command failed with exit code 2
You may not have the required environment or OS to run this project
在线(也在 SO 上)我发现许多使用 Android 设备的用户都面临这个问题,然后他们需要安装 Android APK。我还读到 here 我必须先 运行 以下命令:sudo npm install -g ios-deploy
,我做到了。但它没有帮助。
我使用的是 5.0.0 版,我读到 here 我必须降级到 4.3.0 版。我觉得这很难相信。此错误还有其他原因吗?我该如何检查,如何解决?
我在部署到新的 ios 设备时遇到了相同的 ios deploy AMDeviceSecureInstallApplication 错误。以下是我如何解决它并成功部署到新的 ios 设备。启动 xcode 并打开 xcodeproj 文件,该文件位于 project_name/platforms/ios 目录中。一旦项目完成加载,然后从顶部菜单 select 产品然后 select 目的地并选择您的新 ios 设备。然后,当您在 xcode 中单击 运行 时,系统会提示您无法在新的 ios 设备上 运行,因为您的代码签名配置文件。将有一个选项显示 "try and fix it" 之类的内容,只需 select 该选项并按照提示操作,确认您要使用哪个配置文件将您的应用程序部署到设备。如果您只有一个配置文件,那么 select 那个和应用程序现在将 运行 在您的设备上。将来您应该能够使用 ionic run ios --device
命令部署到此设备。
我有一个 Cordova 项目,我可以 运行 在我的 Android phone 上使用 ionic run android --device
和在我的 iPad 上使用 ionic run ios --device
.但是,现在我再次连接我的 iPhone 5 和 运行 最后一个命令,但收到以下错误消息。
...
[ 60%] TakingInstallLock
[ 65%] PreflightingApplication
[ 65%] InstallingEmbeddedProfile
[ 70%] VerifyingApplication
2015-06-24 17:58:48.564 ios-deploy[33436:1048931] [ !! ] Error 0xe8008015: ∑~}ˇ AMDeviceSecureInstallApplication(0, device, url, options, install_callback, 0)
Error code 253 for command: ios-deploy with args: -d,-b,/path/to/project/App/platforms/ios/build/device/project_name.app
ERROR running one or more of the platforms: Error: /path/to/project/platforms/ios/cordova/run: Command failed with exit code 2
You may not have the required environment or OS to run this project
在线(也在 SO 上)我发现许多使用 Android 设备的用户都面临这个问题,然后他们需要安装 Android APK。我还读到 here 我必须先 运行 以下命令:sudo npm install -g ios-deploy
,我做到了。但它没有帮助。
我使用的是 5.0.0 版,我读到 here 我必须降级到 4.3.0 版。我觉得这很难相信。此错误还有其他原因吗?我该如何检查,如何解决?
我在部署到新的 ios 设备时遇到了相同的 ios deploy AMDeviceSecureInstallApplication 错误。以下是我如何解决它并成功部署到新的 ios 设备。启动 xcode 并打开 xcodeproj 文件,该文件位于 project_name/platforms/ios 目录中。一旦项目完成加载,然后从顶部菜单 select 产品然后 select 目的地并选择您的新 ios 设备。然后,当您在 xcode 中单击 运行 时,系统会提示您无法在新的 ios 设备上 运行,因为您的代码签名配置文件。将有一个选项显示 "try and fix it" 之类的内容,只需 select 该选项并按照提示操作,确认您要使用哪个配置文件将您的应用程序部署到设备。如果您只有一个配置文件,那么 select 那个和应用程序现在将 运行 在您的设备上。将来您应该能够使用 ionic run ios --device
命令部署到此设备。