Eng*_*ery 4 windows iphone ios cordova phonegap-build
最近我被许多开发人员问过,当他们只有一台Windows机器时,他们如何使用PhoneGapBuild(PGB)来开发iOS应用程序?问题不在于开发本身,而在于提供PGB可用于构建iOS应用程序的密钥.
一个主要问题是PGB的faq给出了使用mac来实现这一目标的指令,另一个问题是Apple的文档假设相同.
那么,可以在不使用mac的情况下在Windows中创建密钥,如果是这样,那么确切的步骤是什么?
Eng*_*ery 11
我总是向人们发送Ian Devlin的优秀文章链接:http://www.iandevlin.com/blog/2012/11/phonegap/building-an-ios-signing-key-for-phonegap-in-windows.
解决方案的核心是在windows中使用windows openssl或cygwin变体执行以下操作:
openssl genrsa -des3 -out ios.key 2048
openssl req -new -key ios.key -out ios.csr -subj "/emailAddress=MY-EMAIL-ADDRESS, CN=COMPANY-NAME, C=COUNTRY-CODE"
Run Code Online (Sandbox Code Playgroud)
然后,使用您刚刚生成的csr文件转到apple请求证书.这很简单.
生成PEM和P12:
openssl x509 -in ios_development.cer -inform DER -out ios_development.pem -outform PEM
openssl pkcs12 -export -inkey ios.key -in ios_development.pem -out ios_development.p12
Run Code Online (Sandbox Code Playgroud)
伊恩的解释结束说,
您需要生成的最后一个文件是配置文件,它还要求您返回Apple Provisioning Portal.有关于如何做到这一点的大量文档,所以我不会在这里讨论它.请记住,此类证书需要通过其UDID绑定到您的iOS测试设备,并且还有关于如何执行此操作的文档.
生成配置文件后,下载它(例如iOS_Development.mobileprovision)并将其保存在与其他文件相同的位置.此文件还需要安装在每个iOS测试设备上.
During the provisioning process you'll have to create a bundle id -- don't try to find it because it doesn't exist -- you are meant to make it up, and the easiest way is to use a wildcard id like com.yourcompany.*. If you're not using an ad-hoc distribution, which is recommended, you'll also be asked for the UUID for your iOS device. You can download a UUID app for free that will give you this, or you can just plug the device into windows and find the data in itunes (see this question). The app approach is preferable if you don't like itunes (and let's face it, if you're reading this then you probably don't).
最后,您无需将配置文件上传到iOS设备.您几乎可以使用任何QR Code扫描程序加载它,并且将安装应用程序和配置文件.
| 归档时间: |
|
| 查看次数: |
7425 次 |
| 最近记录: |