Adobe-Runtime-Support
Adobe-Runtime-Support copied to clipboard
Crash on iOS startup with AIR SDK 51.2.1.3 (EXC_BAD_ACCESS, minimal setup, no ANEs)
Problem Description
Using AIR SDK 51.2.1.3, an iOS app crashes immediately upon launch with EXC_BAD_ACCESS (SIGSEGV) even in a minimal setup.
- Which AIR SDK did you use? AIR SDK 51.2.1.3
- Describe the affected environment: iOS only (tested on physical device). No issues on Android. Crash confirmed on iPhone [iPhone10,3].
- Can you reproduce it yourself, or did you get reports from other users? Yes, it's 100% reproducible locally using a minimal app (just Main.as, no ANEs). Downgrading to AIR SDK 51.1.3.10 makes the app work again.
Steps to Reproduce
- Create a minimal AIR project with just Main.as:
package {
import flash.display.Sprite;
public class Main extends Sprite {
public function Main():void {
}
}
}
- Use the following packaging command (simplified):
adt -package -target ipa-app-store \
-provisioning-profile myprofile.mobileprovision \
-storetype pkcs12 -keystore ios_distribution.p12 -storepass **** \
output.ipa application.xml main.swf \
-platformsdk /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk
- Upload the IPA to TestFlight using Transporter.
- Install the app on a physical iOS device via TestFlight.
- Launch the app
- It crashes immediately with the following log:
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Subtype: KERN_INVALID_ADDRESS at 0x0000000000000000
Exception Codes: 0x0000000000000001, 0x0000000000000000
VM Region Info: 0 is not in any region. Bytes before following region: 4298260480
REGION TYPE START - END [ VSIZE] PRT/MAX SHRMOD REGION DETAIL
UNUSED SPACE AT START
--->
__TEXT 100324000-100420000 [ 1008K] r-x/r-x SM=COW ....app/myappname
Termination Reason: SIGNAL 11 Segmentation fault: 11
Terminating Process: exc handler [24996]
Triggered by Thread: 0
Known Workarounds
Using AIR SDK 51.1.3.10 instead of 51.2.1.3 resolves the crash. No code changes needed — same app runs successfully when built with the older SDK.
Hi
Can I please check - do you see the crash if you use an isa-debug build as well?
And what is the iOS version on your iPhone?
thanks
Thank you for your reply. I built the app using the ipa-debug-interpreter-simulator target with AIR SDK 51.2.1.3 as follows:
adt -package -target ipa-debug-interpreter-simulator \
-provisioning-profile myprofile.mobileprovision \
-storetype pkcs12 -keystore ios_distribution.p12 -storepass **** \
sample.ipa application.xml main.swf \
-platformsdk /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator18.4.sdk
Then I installed it on the iOS simulator using:
adt -installApp -platform ios -package sample.ipa -device ios-simulator \
-platformsdk /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator18.4.sdk
open -a Simulator
However, when I launch the app in the simulator, it still crashes with the same EXC_BAD_ACCESS (SIGSEGV) error as before. For reference, my system environment is:
- macOS: Sonoma 15.4.1
- Xcode: 16.3 (Build 16E140)
- iOS Simulator SDK: iPhoneSimulator18.4.sdk
When I build and install the same app using AIR SDK 51.1.3.10, the app runs correctly in the iOS simulator without crashing.
And what is the iOS version on your iPhone?
My device is an iPhone X running iOS 10.3.
I just received a rejection from App Store review. The app built with AIR SDK 51.2.1.3 crashes during launch on an iPhone 13 running iOS 18.5 used by Apple reviewers.