Skip to content

___cxa_current_primary_exception with Xcode 16.3 #14757

Open
@SmartHbdev

Description

@SmartHbdev

Description

The iOS app crashes with Xcode 16.3 (whereas it works fine with 16.2) when FirebaseCrashlytics is included on any iOS version below 18.4.

After investigation, the issue appears to come from libc++.1.dylib, and the problematic symbol is only present in FirebaseCrashlytics.

Reproducing the issue

Use Xcode 16.3, IOS simulator 18.3.1 and add FirebaseCrashlytics

Firebase SDK Version

11.12.0

Xcode Version

16.3

Installation Method

Swift Package Manager

Firebase Product(s)

Crashlytics

Targeted Platforms

iOS

Relevant Log Output

Symbol not found: ___cxa_current_primary_exception
  Referenced from: <F05C8D89-AA32-3C24-8361-486BA2E9C1C0> /Users/leo/Library/Developer/CoreSimulator/Devices/307AB8B3-A8A9-4912-9F98-88A10F02BFD6/data/Containers/Bundle/Application/B16035FC-3A3E-4B33-AB23-558291E84247/KidCal.app/KidCal.debug.dylib
  Expected in:     <FB59D1E0-4DF5-3571-91CF-F5A90235BA68> /Library/Developer/CoreSimulator/Volumes/iOS_22D8075/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 18.3.simruntime/Contents/Resources/RuntimeRoot/usr/lib/libc++.1.dylib
dyld config: DYLD_SHARED_CACHE_DIR=/Users/leo/Library/Developer/CoreSimulator/Caches/dyld/24E263/com.apple.CoreSimulator.SimRuntime.iOS-18-3.22D8075 DYLD_ROOT_PATH=/Library/Developer/CoreSimulator/Volumes/iOS_22D8075/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 18.3.simruntime/Contents/Resources/RuntimeRoot DYLD_LIBRARY_PATH=/Users/leo/Library/Developer/Xcode/DerivedData/KidCal-frsuuarzskyhxjgzsvshrpsalpjx/Build/Products/Debug-iphonesimulator:/Library/Developer/CoreSimulator/Volumes/iOS_22D8075/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 18.3.simruntime/Contents/Resources/RuntimeRoot/usr/lib/system/introspection DYLD_INSERT_LIBRARIES=/Library/Developer/CoreSimulator/Volumes/iOS_22D8075/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 18.3.simruntime/Contents/Resources/RuntimeRoot/usr/lib/libLogRedirect.dylib:/Library/Developer/CoreSimulator/Volumes/iOS_22D8075/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 18.3.simruntime/Contents/Resources/RuntimeRoot/usr/lib/libBacktraceRecording.dylib:/Library/Developer/CoreSimulator/Volumes/iOS_22D8075/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 18.3.simruntime/Contents/Resources/RuntimeRoot/usr/lib/libMainThreadChecker.dylib:/usr/lib/libRPAC.dylib:/System/Library/PrivateFrameworks/GPUToolsCapture.framework/GPUToolsCapture:/Library/Developer/CoreSimulator/Volumes/iOS_22D8075/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 18.3.simruntime/Contents/Resources/RuntimeRoot/usr/lib/libViewDebuggerSupport.dylib DYLD_FRAMEWORK_PATH=/Users/leo/Library/Developer/Xcode/DerivedData/KidCal-frsuuarzskyhxjgzsvshrpsalpjx/Build/Products/Debug-iphonesimulator:/Users/leo/Library/Developer/Xcode/DerivedData/KidCal-frsuuarzskyhxjgzsvshrpsalpjx/Build/Products/Debug-iphonesimulator/PackageFrameworks DYLD_FALLBACK_FRAMEWORK_PATH=/Library/Developer/CoreSimulator/Volumes/iOS_22D8075/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 18.3.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks DYLD_FALLBACK_LIBRARY_PATH=/Library/Developer/C

If using Swift Package Manager, the project's Package.resolved

Expand Package.resolved snippet
Replace this line with the contents of your Package.resolved.

If using CocoaPods, the project's Podfile.lock

Expand Podfile.lock snippet
Replace this line with the contents of your Podfile.lock!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions