首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >无法在我的iOS设备上安装应用程序(“无法安装应用程序”错误)

无法在我的iOS设备上安装应用程序(“无法安装应用程序”错误)
EN

Stack Overflow用户
提问于 2012-06-05 06:47:36
回答 2查看 2K关注 0票数 0

我在终端中使用以下命令创建了一个Sencha示例应用程序:

代码语言:javascript
复制
Mac-mini-2:sencha-touch-2.0.0-commercial eit$ sencha app create mySenchaApp /path/to/www/mySenchaApp

然后,我将该应用程序构建为模拟器上的本机应用程序,它在模拟器上运行良好,使用以下命令:

代码语言:javascript
复制
Mac-mini-2:mySenchaApp eit$ sencha app build native

现在我正在尝试做特别的发行-我想安装这个应用程序在我的设备上。我已经在此链接中完成了这些步骤。

这是packager.json文件:

代码语言:javascript
复制
{
    /**
     * @cfg {String} applicationName
     * @required
     * This is the name of your application, which is displayed on the device when the app is installed. On IOS, this should match
     * the name of your application in the Apple Provisioning Portal.
     */
    "applicationName":"MySenchaApp",

    /**
     * @cfg {String} applicationId
     * This is the name namespace for your application. On IOS, this should match the name of your application in the Apple Provisioning Portal.
     */
    "applicationId":"com.mydomain.keyboard",

    /**
     * @cfg {String} versionString
     * @required
     * This is the version of your application.
     */
    "versionString":"1.0",

    /**
     * @cfg {String} iconName
     * This is file name of your icon. This should be in the same directory of this configuration file.
     *
     * For iOS, please refer to their documentation about icon sizes:
     * https://developer.apple.com/library/ios/#documentation/userexperience/conceptual/mobilehig/IconsImages/IconsImages.html
     *
     * For Android, please refer to the Google Launcher icons guide:
     * http://developer.android.com/guide/practices/ui_guidelines/icon_design_launcher.html
     */
    "iconName":"resources/icons/Icon~ipad.png",

    /**
     * @cfg {String} inputPath
     * @required
     * This is location of your Sencha Touch 2 application, relative to this configuration file.
     */
    "inputPath":"build/native",

    /**
     * @cfg {String} outputPath
     * @required
     * This is where the built application file with be saved.
     */
    "outputPath":"build/",

    /**
     * @cfg {String} configuration
     * @required
     * This is configuration for your application. `Debug` should always be used unless you are submitting your app to an online
     * store - in which case `Release` should be specified.
     */
    "configuration":"Debug",

    /**
     * @cfg {String} platform
     * @required
     * This is the platform where you will be running your application. Available options are:
     *  - iOSSimulator
     *  - iOS
     *  - Android
     *  - AndroidEmulator
     */
    "platform":"iOS",

    /**
     * @cfg {String} deviceType
     * @required
     * This is device type that your application will be running on.
     *
     * If you are developing for Android, this is not necessary.
     *
     * Available options are:
     *  - iPhone
     *  - iPad
     *  - Universal
     */
    "deviceType":"iPhone",
   
    "provisionProfile":"build/package/cc2gokeyboard(3).mobileprovision",


    /**
     * @cfg {String} certificatePath
     * This is the location of your certificate.
     * This is required when you are developing for Android or you are developing on Windows.
     */
     "certificatePath":"build/package/ios_distribution.cer",

    /**
     * @cfg {String} certificateAlias
     * This is the name of your certificate.
     *
     * IF you do not specify this on OSX, we will try and automatically find the certificate for you using the applicationId.
     *
     * This can be just a simple matcher. For example, if your certificate name is "iPhone Developer: Robert Dougan (ABCDEFGHIJ)", you
     * can just put "iPhone Developer".
     *
     * When using a certificatePath on Windows, you do not need to specify this.
     */
    "certificateAlias":"",
   
    /**
     * @cfg {String} sdkPath
     * This is the path to the Android SDK, if you are developing an Android application.
     */
    "sdkPath":"/path/to/android-sdk",
   
    /**
     * @cfg  androidAPILevel
     * This is android API level, the version of Android SDK to use, you can read more about it here: http://developer.android.com/guide/appendix/api-levels.html.
     * Be sure to install corresponding platform API in android SDK manager (android_sdk/tools/android)
     */
    "androidAPILevel":"15",

    /**
     * @cfg  orientations
     * @required
     * This is orientations that this application can run.
     */
    "orientations": [
        "portrait",
        "landscapeLeft",
        "landscapeRight",
        "portraitUpsideDown"
    ]
}

我修改了packager.json文件,如上面所示,并运行以下命令:

代码语言:javascript
复制
$ sencha app build native

现在这已经生成了MySenchaApp.app in the Build /native folder.

当我尝试用iTunes同步在我的设备上安装这个应用程序时,它被安装了,但是它说无法安装该应用程序"MySenchaApp“。

我不知道这里有什么问题,我的packager.json文件正确吗?

EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2012-06-05 06:55:59

检查你的补给文件。您的包裹是否已登记在本条款中?

通常这种错误发生在规定错误或日期过期时。

票数 0
EN

Stack Overflow用户

发布于 2013-05-23 19:51:15

您缺少了一个重要的配置。尝试将此添加到packager.json文件中

用于在设备“certificateAlias”上进行测试:“iPhone Developer”

苹果专卖店"certificateAlias":"iPhone分发“

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/10892844

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档