Problems with c++ on iOS arm64e device.

Tested on: iPhone11+iOS16.5/iPhoneXS+iOS15.4.
Compile with: XCode12/13/14.

I tried following code, compile with arch=arm64e only, and result in crash "EXC_BAD_ACCESS". at "LDRAA"

std::cout << "";

The crash will not be triggered if:

  • compile with arch=arm64 only
  • compile with arch=arm64e only and tested on iOS<=14
  • not use any c++ I/O api

Is there a specific reason you’re using arm64e? Apple does not generally support arm64e for third-party code, although there are some very specific exceptions to that rule.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Problems with c++ on iOS arm64e device.
 
 
Q