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...