Trouble packaging for Apple App Store
Hey there. I could do with some help packaging an iOS app for distribution.
I'm using AIR 3.2 with Flash Professional CS5.5 to create my application, however I figure that's pretty irrelevant seeing as I'm actually using the ADT tool included in AIR 3.2 to package my app for iOS. (I'm using an ANE, which isn't supported by the publish function in CS5.5). I've so far managed to build my app and install it on my iPhone 4S (running iOS 5.1) as a debug build, and then as an Ad-Hoc distribution build, but I can't seem to get Apple App Store distribution builds to install on my iPhone.
When I try to package for Apple App Store using my distribution certificate and App Store provisioning profile, ADT finishes with no errors, however when I try to transfer the newly-created IPA to my iPhone, I get a pop-up on my iPhone simply saying '*AppName* failed to install.'. Having looked up this error, I learnt that it is normally produced by using the wrong certificate or provisioning profile when building the application. (Link: http://forums.adobe.com/thread/977594?tstart=0) I therefore checked I was using the right profile and certificate, but it still failed. Having double-checked and triple-checked and still getting the same error, I then revoked my distribution certificate and provisiong profile and requested a new ones on Apple's provisioning portal to combat the error, but that hasn't helped.
As I said, Ad-Hoc builds compiled fine using both the old and new certificates, however Apple App Store builds won't install on my iPhone. And yes, the correct profile is present under Settings -> General -> Profiles on my iPhone. I've checked and tried everything I can think of to get around this, and I'm running out of ideas. Any suggestions?
The commands I'm using to build my app in ADT are provided below. If it helps, I'll also provide my XML file upon request.
Debug build: (Works)
C:\dev\AIR3.2\bin\adt -package -target ipa-debug-interpreter -storetype pkcs12 -keystore iphone_dev.p12 -storepass ****** -provisioning-profile skidpan.mobileprovision testapp.ipa testapp-app.xml testapp.swf 57.png 29.png 114.png 72.png -extdir c:/iPhoneAppsADT/extensions/src
Ad-Hoc build: (Works)
C:\dev\AIR3.2\bin\adt -package -target ipa-ad-hoc -storetype pkcs12 -keystore ios_distribution.p12 -storepass ****** -provisioning-profile skidpanDistAdHoc.mobileprovision testapp.ipa testapp-app.xml testapp.swf 57.png 29.png 114.png 72.png Default.png -extdir c:/iPhoneAppsADT/extensions/src
App Store build: (Compiles without error, won't install on iDevice)
C:\dev\AIR3.2\bin\adt -package -target ipa-app-store -storetype pkcs12 -keystore ios_distribution.p12 -storepass ****** -provisioning-profile skidpanDistAppStore.mobileprovision testapp.ipa testapp-app.xml testapp.swf 57.png 29.png 114.png 72.png Default.png -extdir c:/iPhoneAppsADT/extensions/src
