Sencha CMD 4无法打包iOS

时间:2014-02-03 13:32:18

标签: ios sencha-touch sencha-touch-2.1 sencha-cmd

当我尝试用

打包我的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"
   ]
}

问题可能来自哪里?

2 个答案:

答案 0 :(得分:1)

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

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

 "certificatePath":"./certifs/ios_development.cer",
 "certificatePassword": "Password here",

答案 1 :(得分:0)

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

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