当ios的原生包装时,Sencha touch构建错误!AMDeviceSecureInstallApplication

时间:2013-02-22 18:09:11

标签: extjs sencha-touch sencha-touch-2

当我尝试在Sencha Touch 2.1中本地为IOS打包我的应用程序时,它给了我这个错误:

Sencha Cmd v3.0.0.250
[ERR]       
!AMDeviceSecureInstallApplication
The application was successfully packaged
The application was successfuly signed
[ERR] stbuild exited with non-zero code : 1

它不能与Xcode合作,欢迎任何帮助。

这是我的packager.json

{
"applicationName":"Demoedifarm",
"applicationId":"com.palapa.demoedifarm",
"bundleSeedId":"S5583Y6VFB",
"versionString":"1.0",
//"versionCode":"1",
"icon": {
    "57":"resources/icons/Icon.png",
    "72":"resources/icons/Icon~ipad.png",
    "114":"resources/icons/Icon@2x.png",
    "144":"resources/icons/Icon~ipad@2x.png"
},
"inputPath":"./",
"outputPath":"../build/",
"configuration":"Debug",
"platform":"iOS",
"deviceType":"iPad",
"certificateAlias":"iPhone Developer",
//"certificatePassword":"",
"provisionProfile":"/Users/palapa1/Library/MobileDevice/Provisioning Profiles/CA412FD2-60D6-407E-B7AD-A34637A8FF55.mobileprovision",
//"sdkPath":"/path/to/android-sdk",
//"sdkPath":"/path/to/android-sdk",
//"androidAPILevel":"8",
/*"permissions":[
                "INTERNET",
                "ACCESS_NETWORK_STATE",
                "CAMERA",
                "VIBRATE",
                "ACCESS_FINE_LOCATION",
                "ACCESS_COARSE_LOCATION",
                "CALL_PHONE"],*/
"minOSVersion": "4.2.1",
"orientations": [
    "landscapeLeft",
    "landscapeRight"

]
}

2 个答案:

答案 0 :(得分:2)

我正在运行更新版本的Sencha Cmd(3.1),我相信命令语法略有改变,但我遇到了同样的错误,所以我想我会给出一个答案以防万一它可以帮助某人

如果我运行以下命令:

sencha app package run myConfigFile.json

然后它失败并出现同样的错误,我不知道问题是什么。但是,如果我更改配置文件以使其定位到iOS模拟器('平台'属性),那么它可以正常工作(模拟器会自动打开)。

如果我改为运行此命令:

sencha app package build myConfigFile.json

然后它成功完成,我最终在输出文件夹中找到了一个MyApp.app文件。

如果我打开了XCode Organizer窗口,我可以将此文件拖到我连接的手机下面的“Applications”文件夹中,它将为我部署/安装该应用程序。

答案 1 :(得分:0)

如果您使用配置文件,则需要设置

"configuration":"Release"

而不是Debug中的packager.json。这是文档中的bug

另外,请参阅此帖子以获得一个好的教程:http://frightanic.com/software-development/sencha-touch-native-packaging-for-ios-done-right/