Closed arlomedia closed 10 months ago
The Xcode 15 release notes mention a linker issue: https://developer.apple.com/documentation/xcode-release-notes/xcode-15-release-notes#Linking Binaries using symbols with a weak definition crash at runtime on iOS 14/macOS 12 or older. This impacts primarily C++ projects due to their extensive use of weak symbols. (114813650) (FB13097713)
I guess this is what is causing the crash. They also mention a workaround.
Thanks for the info. Is it your understanding that -Wl
and -ld_classic
are two separate flags, or one flag -Wl,-ld_classic
? Since I don't have an iOS 12 device to test this with, I want to be sure before releasing another update with Xcode 15. This is what I have now:
I also see that depending on the Xcode settings, OTHER_LDFLAGS
will be displayed as Other Linker Flags
.
I built the example app (from LinkKit 3.1.5) with Xcode 15 using the linker flags -Wl
and -ld_classic
and the macOS deployment target 10.15
. It works without crashing on my Mac Mini running macOS Catalina 10.15.7. I added the two flags like it's shown in your screenshot.
However, I recommend getting test coverage for all the platforms your application is supported on.
Confirmed -- I got an old iPad with iOS 12 and it crashes on launch without those two flags but runs fine with them. Thanks for your help!
I just released my first app versions built with Xcode 15 and started getting crash reports from users with iOS 12 and (for the Mac Catalyst version) macOS 10.15. It seems from the crash logs that this is caused by LinkKit:
That was from macOS. The iOS crash logs aren't symbolicating, but seem similar:
The crash happens on launch, before my app tries to use any LinkKit functions. Apparently just loading the ABLLink library triggers this.
I'm using LinkKit 3.1.5 currently. I see from the release notes that version 3.1.9 had a fix for compatibility with older iOS versions, but that was from a year and a half ago and didn't specify the problem or the versions affected. I don't have and older device to test with at this point so I'd like to know if this is fixed in a particular LinkKit version before releasing another app version with Xcode 15. I have reverted to building with Xcode 14 for now.