2012-06-05 151 views
0

我已經創建了一個煎茶示例應用在終端uisng的follwing命令無法我的設備上安裝的應用程序 - 的iOS

Mac-mini-2:sencha-touch-2.0.0-commercial eit$ sencha app create mySenchaApp /path/to/www/mySenchaApp 

然後我建立該應用程序本機上模擬器,其在simulator.using工作得很好下面的命令

Mac-mini-2:mySenchaApp eit$ sencha app build native 

現在我正在嘗試做adhoc分發 - 我想在我的設備上安裝此應用程序。 正如以下link所述,我已經完成了這些步驟。

這是packager.jason文件

{ 
    /** 
    * @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文件如上。和run the this command Mac-mini-2:mySenchaApp eit$ sencha app build native

現在,這已經產生MySenchaApp.app in the Build /native folder.

,當我試圖使用iTunes同步我的設備上安裝此應用程序,它 得到安裝,但它說無法安裝應用程序「MySenchaApp」。

我不確定這裏有什麼問題,我的packager.json文件是否正確?

請幫我一把。

回答

0

檢查您的供應文件。在此條款中是否註冊了您的軟件包?

當提供出錯或日期過期時,通常會發生此錯誤。

+0

嗨,我的配置文件處於活動狀態,設備ID與我的設備關聯 – user198725878

+0

也許是因爲您使用的是ios_distribution.cer。必須是ios_development.cer – CReaTuS

+0

證書不是必需的IOS,只有Android應用程序 – DWolf

0

您錯過了一個重要的配置。試着在你的packager.json文件

添加此爲了測試你的設備 「certificateAlias」: 「iPhone開發」

對於蘋果商店 「certificateAlias」: 「iPhone分佈」

相關問題