1. #1
    Sencha User
    Join Date
    Feb 2012
    Posts
    6
    Vote Rating
    0
    ksotik is on a distinguished road

      0  

    Exclamation Upload application to app store

    Upload application to app store


    Hi! I'm using ST 2 final release for my iPad application. I successfully build package with SDK Tools for ad-hoc testing with another testers. But when I starts upload my app to app store via Application Loader I have an errors:

    1. Application failed codesign verification. The signature was invalid, contains disallowed entitlements, or it was not signed with an iPhone Distribution Certificate.
    2. Unable to extract entitlements from application: /var/folders/95/2cbz4s_d7x726x9t30db2d_80000gn/T/...../stbuild_template

    appstore-error.jpg
    I'm using app store distribution profile & distribution certificate for this build.

    json-preset for sencha tool:
    Code:
    {
            "applicationName":"***hidden***",
            "applicationId":"com.***hidden***",
            "outputPath":"/***hidden***/Projects/iPad/build",
            "iconName":"icon.png",
            "versionString":"1.0",
            "inputPath":"/***hidden***/Projects/iPad/project",
            "configuration":"Release",
            "platform":"iOS",
            "deviceType":"iPad",
            "certificatePath":"***hidden***/dev_cert.p12",
            "certificatePassword":"***hidden***",
            "certificateAlias":"iPhone Distribution: ***hidden***",
            "provisionProfile":"***hidden***/DistrAppStore.mobileprovision",
            "rawConfig":"<key>Entitlements</key><false/>",
            "orientations": [
                    "landscapeLeft",
                    "landscapeRight"
            ]
    }
    Also, I'm trying to resign app with codesign manually. My script for this:
    Code:
    sencha package ipad_appstore.json
    rm -r "***hidden***.app/_CodeSignature"
    cp "***hidden***/DistrAppStore.mobileprovision" "***hidden***.app/embedded.mobileprovision"
    chmod a+x "***hidden***.app/stbuild_template"
    codesign -f -dvvv -s "iPhone Distribution: ***hidden***" "***hidden***.app"
    mkdir Payload
    mv "***hidden***.app" $_
    zip -y -r "***hidden***.ipa" Payload
    Please, help...

  2. #2
    Sencha User
    Join Date
    Feb 2012
    Posts
    6
    Vote Rating
    0
    ksotik is on a distinguished road

      0  

    Default


    Whats wrong with binary stbuild_template?
    Or may be something wrong with cerficiate? But i'm trying many times to create new certificates & profiles with deleting previous and nothing to be changed.
    Anybody knows what it can be?

  3. #3
    Sencha User
    Join Date
    Mar 2012
    Posts
    6
    Vote Rating
    0
    thedigital is on a distinguished road

      0  

    Default


    Hello,

    i've the same problem. Can somebody help us, please?

  4. #4
    Sencha User
    Join Date
    Nov 2010
    Posts
    404
    Vote Rating
    6
    gkatz is on a distinguished road

      0  

    Default


    I am not sure but is it possible you used the dev cert instead of the dist cert?
    If I recall correctly they are different and the path you used says dev cert.

  5. #5
    Sencha User
    Join Date
    Mar 2012
    Posts
    6
    Vote Rating
    0
    thedigital is on a distinguished road

      0  

    Default


    i used definitly the dist cert... :-(

  6. #6
    Sencha - Desktop Packager Dev Team jarrednicholls's Avatar
    Join Date
    Mar 2007
    Location
    Frederick, MD
    Posts
    1,747
    Vote Rating
    7
    jarrednicholls will become famous soon enough jarrednicholls will become famous soon enough

      0  

    Default


    I think the issue is that we're not accounting for a default Entitlements.plist which gets embedded into the code signature within the binary. You can manually sign via "codesign" + a default Entitlements.plist to get around this on OS X. For Windows users, we'll have to remedy that as well of course w/ a future release.

    Try the following workaround --

    Create an Entitlements.plist file that has the following contents:
    Code:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
    	<key>get-task-allow</key>
    	<false/>
    </dict>
    </plist>
    Run codesign again, pointing to the Entitlements.plist:
    Code:
    codesign -f -dvvv -s "iPhone Distribution: ***hidden***" --entitlements "/path/to/Entitlements.plist" "***hidden***.app"
    Retry the submission at that point - let me know how that goes.

  7. #7
    Sencha User
    Join Date
    Mar 2012
    Posts
    6
    Vote Rating
    0
    thedigital is on a distinguished road

      0  

    Default


    Thanks for the workaround. Now my only Problem ist the following:
    Code:
    Application failed codesign verification.  The signature was invalid, contains disallowed entitlements, or it was not signed with an iPhone Distribution Certificate.

  8. #8
    Sencha - Desktop Packager Dev Team jarrednicholls's Avatar
    Join Date
    Mar 2007
    Location
    Frederick, MD
    Posts
    1,747
    Vote Rating
    7
    jarrednicholls will become famous soon enough jarrednicholls will become famous soon enough

      0  

    Default


    Quote Originally Posted by thedigital View Post
    Thanks for the workaround. Now my only Problem ist the following:
    Code:
    Application failed codesign verification.  The signature was invalid, contains disallowed entitlements, or it was not signed with an iPhone Distribution Certificate.
    Just to confirm, you are still using your app store prov. profile and not the ad-hoc one? Still figuring what's missing from Entitlements.plist for your app...there's usually more info when it's ad-hoc or a wildcarded app ID.

    Would you be willing to share some of the information about your configuration (.json) with me privately? jarred [at] sencha.com.

  9. #9
    Sencha - Desktop Packager Dev Team jarrednicholls's Avatar
    Join Date
    Mar 2007
    Location
    Frederick, MD
    Posts
    1,747
    Vote Rating
    7
    jarrednicholls will become famous soon enough jarrednicholls will become famous soon enough

      0  

    Default


    Note that some people have had issues where the above error message would be displayed that was caused by something as unrelated as their app ID/name being formatted badly - having nothing to do with entitlements.

  10. #10
    Sencha - Desktop Packager Dev Team jarrednicholls's Avatar
    Join Date
    Mar 2007
    Location
    Frederick, MD
    Posts
    1,747
    Vote Rating
    7
    jarrednicholls will become famous soon enough jarrednicholls will become famous soon enough

      0  

    Default


    thedigital was able to get his application code signature verified by using the following Entitlements.plist scheme (replace [APP_ID] with your application ID accordingly)

    Code:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
    	<key>application-identifier</key>
    	<string>[APP_ID]</string>
    	<key>get-task-allow</key>
    	<false/>
    </dict>
    </plist>
    So the entire workaround on OS X is as follows:

    Try the following workaround --

    Create an Entitlements.plist file that has the following contents:
    Code:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
    	<key>application-identifier</key>
    	<string>[APP_ID]</string>
    	<key>get-task-allow</key>
    	<false/>
    </dict>
    </plist>
    Run codesign again, pointing to the Entitlements.plist:
    Code:
    codesign -f -dvvv -s "iPhone Distribution: ***hidden***" --entitlements "/path/to/Entitlements.plist" "***hidden***.app"
    Retry the submission at that point - let me know how that goes.