1. #1
    Sencha User
    Join Date
    Mar 2011
    Location
    Birmingham, UK
    Posts
    43
    Answers
    1
    Vote Rating
    1
    lalexgraham is on a distinguished road

      0  

    Default Unanswered: "iTunes sync <appName> failed to install " SenchaCmd query

    Unanswered: "iTunes sync <appName> failed to install " SenchaCmd query


    I have installed Sencha Cmd and have packaged an iOS app (more info on my blog post) , but when I have tried to put it on my iphone I get the error "iTunes sync SenchaTest failed to install". I am using a WIndows 7 machine so have done all the provisioning with apple manually using openssl. I have a development certificate , a distribution certificate, (I don't think its necessary but generated it anyway) an app id and a provisioning profile. Which I created last so it references the dev cert and the app id as well as the device. The only thing that I noticed may be incorrect is the name of my phone. I entered Alex iphone, when it should have been Alex's iphone. I reference the dev certificate and provisioning profile file in my packaging json file.

    Is it correct that there should be no output, only a prompt from SenchaCmd when packaging? this is what I get:

    Code:
    C:\inetpub\wwwroot\sencha\test>sencha package build packager.json
    Sencha Cmd v3.0.0.250
    
    
    
    
    C:\inetpub\wwwroot\sencha\test>



    Would the output not say something along the lines of "application successfully signed /packaged"?


    Also, worth asking ....the result of the packaging for me is a folder named <appName>.app containing the files that I imported into iTunes. Is this right? I guess so as iTunes would have complained.

    Anything here sound wrong ? If not I guess I should start again with provisioning.



    For reference my packager.json is
    Code:
    {
        "applicationName":"SenchaTest",
        "applicationId":"com.mobile-re.SenchaTest",
        "bundleSeedId":"SFMXNH386G",
        "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":"./build/production",
        "outputPath":"../packaged",
        "configuration":"Release",
        "platform":"iOS",
        "deviceType":"iPhone",
        "certificatePath":"./cert/developer_identity.p12",
        "certificatePassword": "*******",
        "provisionProfile":"./cert/SenchatestProfile.mobileprovision",
        "orientations": [
            "portrait",
            "landscapeLeft",
            "landscapeRight",
            "portraitUpsideDown"
        ]
    }
    Last edited by lalexgraham; 2 Dec 2012 at 11:35 PM. Reason: Added packager.json

  2. #2
    Touch Premium Member svenna's Avatar
    Join Date
    Jun 2007
    Location
    Oslo,Norway
    Posts
    519
    Answers
    6
    Vote Rating
    22
    svenna has a spectacular aura about svenna has a spectacular aura about

      0  

    Default


    There should be output. But try using the command:
    "sencha app build native"

    Should give you many lines of output.
    I can confirm this working scenario for

    iOS6
    Windows 8 Pro 64bit
    Cmd 3
    Touch 2.1

    Connect my iPad 3rd Gen to the computer and start up iTunes.
    Drag the provision profile to iTunes, sync, do all kinds of - including restarting, unplugging, rechecking the iPad id serveral times, drag the app folder from the cmd build into i tunes. Drag the app from local Programs in iTunes to the device. Watch the display. If it says anything about "did not install" goto "do all kinds of ".
    Sven Tore Iversen

  3. #3
    Touch Premium Member svenna's Avatar
    Join Date
    Jun 2007
    Location
    Oslo,Norway
    Posts
    519
    Answers
    6
    Vote Rating
    22
    svenna has a spectacular aura about svenna has a spectacular aura about

      0  

    Default


    May also add that to get it to the app store I replace the cert en provision file, and copy the app into iTunes, then i copy it back from iTunes to a folder, to get the single file package. That file i Copy to a Mac and upload to itunesconnect.
    Sven Tore Iversen

  4. #4
    Sencha User
    Join Date
    Mar 2011
    Location
    Birmingham, UK
    Posts
    43
    Answers
    1
    Vote Rating
    1
    lalexgraham is on a distinguished road

      1  

    Default


    I have fixed my issue by putting the .mobileprovision file into the root of the application.

    My blog post details the whole process on packaging

    http://lalexgraham.wordpress.com/2012/12/09/packaging-a-sencha-touch-app-for-ios-using-windows-7-2/
    Thansk Svenna for the tips.

  5. #5
    Sencha User
    Join Date
    Jan 2012
    Posts
    9
    Vote Rating
    0
    clansman is on a distinguished road

      0  

    Default


    I am sort of in the same situation. Using Sencha Cmd v3.0.2.288 Windows 7 64bit hosted on a VM.

    I am generating package config file via Sencha Architect providing all the necessary data (at least according to all of the guides). Here is my file:
    Code:
    {
    
        "applicationName": "businessgallery",
    
        "applicationId": "com.dps.businessgallery",
    
        "bundleSeedId": "xxxxxxxxx", 
    
        "versionString": "1.0",
    
        "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": "Production",
    
        "platform": "iOS",
    
        "deviceType": "Universal",
    
        "certificateAlias": "ios_dev.p12",
    
        "certificatePassword": "*******",
    
        "provisionProfile": "Test_Profile.mobileprovision",
    
        "orientations": [
            "portrait",
            "landscapeLeft",
            "landscapeRight",
            "portraitUpsideDown"
        ]
    }
    I try to package this using Sencha Cmd in the project root directory.

    sencha app package build packager.json

    and I get pretty much nothing in return as you can see on the screen. However the build folder is being populated with files as seen in the screen. None of those seem to be an itunes/ios app file that I can upload to my device.

    I am not sure if this is an error on my part or some sort of bug. Since there is no return info from the cmd I am quite clueless and I am trying to solve this for over 2 days now. I've read this thread and the "native" option doesn't seem to exist in this cmd version at least according to docs. However I can fire it but the result is that sencha.cfg is missing some options. I'd assume this is an obsolete config file?

    Any help tips will be much appriciated.
    Attached Images

Thread Participants: 2