By Piyush Bagri
In this post, we will explain the possible causes and solutions for some general errors that may occur when installing an AIR application on iOS devices using Flash Builder, Flash Professional, or command-line. This will help you to narrow down the installation error to a specific cause so that it can be resolved easily.
Installation error: “Application verification failed.”
The possible causes for this installation error along with the solutions to rectify it in each case are specified here.
Wildcard characters used in application id
If you are using any wildcard characters in the application id in your project, for example ‘calculator.debug.*‘, you will get ‘application verification failed‘ error.
Solution: The error will be resolved as soon as you remove the wildcard characters from the application id.
Feature listed in application.xml file is not added in the provisioning profile
If you are trying to compile your IPA with aps-environment key in entitlement.plist tags in application.xml file as shown in the example below and push notification service is not enabled in provisioning profile, then also you will get ‘application verification failed‘ error.
Example: Entitlements tag has been added in application.xml file but the push notification service is not enabled in provisioning profile.
... <Entitlements><![CDATA[ <key>aps-environment</key> <string>development</string> ]]> </Entitlements> ...
Solution: Simply comment the above section of the code in application.xml or else add the feature in the provisioning profile. You will be able to rectify this error and compile your project. For more details, see Using push notifications in AIR iOS apps.
Wrong certificate used for packaging
You can also get ‘application verification failed‘ error if there is something wrong with the developer certificate that you are packaging your AIR application with. Another reason for the error could be that your device UUID is not listed in the provisioning profile.
Solution: You will be able to install your app on the device when you connect the right certificate with your provisioning profile. To know more about applying for an iPhone developer certificate and creating a provisioning profile, see Obtaining and working with iPhone developer files.
Installation error: “iTunes mobile device library not found. Please check your iTunes installation.”
This installation error is mainly related to the version of Adobe Flash Professional CC and/or AIR SDK that you are using to connect with Apple iTunes while installing the AIR application on your device. You may get this error in the following cases:
Using Flash Professional CC 2014 with iTunes 12.1.2
If you are using Adobe Flash CC 2014 and AIR SDK (any version) with iTunes 12.1.2, you may get this installation error when in your Flash Professional CC project you select:
File > Publish >Install application on the connected iOS device
Solution: This issue has been fixed in the latest Adobe Flash Professional CC 2015 version. With this fix, it can now be used with Adobe AIR SDK (any version) and Apple iTunes version 12.1.2 in Windows environment.
Using ADT version 16 or older with iTunes 12.1.2
If you are trying to install your application on the iOS device by command-line using ADT version (same as AIR SDK version) 16 or older, you can encounter this error. ADT is not able to detect iTunes 12.1.2 library in this case.
<AIRSDK Location>/bin/adt –installApp –platform ios –package <package name>
Solution: It is recommended to use Adobe AIR SDK version 16 or newer to resolve this error. iTunes 12.1.2 library is detected by Adobe AIR SDK 16 or newer versions.
Using ADT version 220.127.116.11 or older with iTunes 12.3
If you are trying to install your application on the iOS device by command-line using ADT version (same as AIR SDK version) 18.104.22.168 or older, you can encounter this error. ADT is not able to detect iTunes 12.3 library in this case.
Solution: With AIR SDK 22.214.171.124 build this issue has been resolved.
Installation error: “PackageInspectionFailed”
This installation error is mainly related to the version of Adobe Flash Professional CC and/or AIR SDK that you are using to connect with Apple iTunes while installing the AIR application on your device.
Solution: With Flash Builder 4.7, cleaning your project solves this error.
To clean you project, choose Project> Clean > Clean All Projects. See Build projects in Adobe Flash Builder 4.7 documentation for more details.
Do you still have problem with the installation of Adobe AIR application? Post your question in the Adobe AIR Installation Issues forum.