如何使用 cordova 构建 'ipa'

How to build 'ipa' with cordova

我用 cordova 开发了一个混合应用程序 apk for android 已经成功构建,现在我想为 运行 我的应用程序制作 ipa file on apple电话。我有分发证书 .mobileprovison 文件和 .p12 files.I 使用 phonegap 成功构建 ipa 但我想使用 cordova 自定义构建如何做到这一点。

到目前为止我尝试了什么

cordova build ios --device

但是我面临这个错误 xcodebuild not present

如下

PS C:\Users\A.BASIT\phonegap\tmp\userapp> cordova build ios
(node:16504) UnhandledPromiseRejectionWarning: Unhandled promise rejection 
(rejection id: 1): xcodebuild was not found. Please install version 7.0.0 or 
greater from App Store
(node:16504) [DEP0018] DeprecationWarning: Unhandled promise rejections are 
deprecated. In the future, promise rejections that are not handled will 
terminate the Node.js process with a non-zero exit code.

您需要 mac 来构建 IOS 个应用程序。

本地或使用 remote build