We have a cross platform app that we build with Xcode Cloud and distribute via TestFlight.
We want to test builds with the Xcode Beta. So we have the following build environment:
Xcode version: Xcode 16 beta 6 (16A5230g)
macOS Version: macOS Sonoma 14.5 (23F79)
Everything builds and submits to TestFlight fine. The App runs fine on iOS 18 beta and macOS 15 beta. But when attempting to install via TestFlight and launch the App on macOS 14..6.1 it crashes immediately with what appears to be a missing Foundation symbol.
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Termination Reason: Namespace DYLD, Code 4 Symbol missing
Symbol not found: _$s10Foundation14NSDecimalRoundyySpySo0B0aG_SPyADGSiSo14NSRoundingModeVtF
Referenced from: <CBEBC813-C7B6-3D8E-BE62-16F2EFFEB1FE> /Applications/MyApp.app/Contents/MacOS/MyApp
Expected in: <2F87A303-430F-3EA5-9492-3033F4FEE64B> /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
(terminated at launch; ignore backtrace)
Thread 0 Crashed:
0 dyld 0x7ff8139f687a __abort_with_payload + 10
1 dyld 0x7ff813a0f7f7 abort_with_payload_wrapper_internal + 82
2 dyld 0x7ff813a0f829 abort_with_payload + 9
3 dyld 0x7ff81399c2b5 dyld4::halt(char const*, dyld4::StructuredError const*) + 335
4 dyld 0x7ff8139994bd dyld4::prepare(dyld4::APIs&, dyld3::MachOAnalyzer const*) + 4099
5 dyld 0x7ff8139982e4 start + 1812
Is it expected that this should work? Is this a known issue? Is there any workaround for it?
Should I file feedback or a DTS?
Isn't it related to
your app may crash on launch on platforms earlier than the latest versions of the respective OS with errors indicating missing symbols in NSDecimal
in the Known Issues section of Foundation in the Xcode 16b6 release notes ?
https://developer.apple.com/documentation/xcode-release-notes/xcode-16-release-notes#Foundation