0

当我尝试将我的 sencha touch 应用程序打包时

sencha app package build iosPack.json

我收到此错误:

Unable to load PKCS12 identity

这是我的 iosPack.json :

{   "applicationName":"XXXXX",

    "applicationId":"yyyyyyy",

   "bundleSeedId":"ZZZZZZZZZZ",

   "versionString":"0.1",

   "versionCode":"1",

   "icon": {
    "57":"resources/icons/icon4.png",
    "72":"resources/icons/icon3.png",
    "114":"resources/icons/icon2.png",
    "144":"resources/icons/icon1.png"
   },

   "inputPath":"./",

   "outputPath":"./build/",

   "configuration":"Debug",

   "platform":"iOS",

   "deviceType":"iPhone",

   "certificatePath":"./certifs/ios_development.cer",

   "orientations": [
    "portrait"
   ]
}

问题可能来自哪里?

4

2 回答 2

1

1) 确保您完成了正确生成证书的所有步骤。

2)如果您使用证书密码,请尝试在您的配置中指定证书密码:

 "certificatePath":"./certifs/ios_development.cer",
 "certificatePassword": "Password here",
于 2014-02-04T03:16:25.400 回答
0

为了使它工作,我将 cer 文件转换为 P12 格式。P12 文件将 Apple 开发人员证书和关联的私钥组合在一个文件中。该过程在本教程中得到了很好的解释:

http://www.adobe.com/devnet/air/articles/packaging-air-apps-ios.html

于 2014-02-04T14:18:12.837 回答