App Crashs with IOS 12 with XCODE 15, but runs fine with XCODE 14

Hi,

I am using the latest version of XCODE 15, when I run my app on an IOS12 device I got a crash before the app reaches did didFinishLaunchingWithOptions. But when I open XCODE 14 and run the app on IOS12 the app is running fine. I am getting the crash with users devices in the Crashs reports on Organizer.

Here is the crash output:

2023-09-26 10:44:37.728454-0300 *****[1859:756753] [DYMTLInitPlatform] platform initialization successful
2023-09-26 10:44:37.969090-0300 *****[1859:756542] [NetworkInfo] Signal strength query returned error: Error Domain=NSPOSIXErrorDomain Code=13 "Permission denied", descriptor: <CTServiceDescriptor 0x281a51860, domain=1, instance=1>
Thread 1 Queue : com.apple.main-thread (serial)
#0	0x0000000000000000 in 0x00000000 ()
#1	0x0000000101971ed4 in ___lldb_unnamed_symbol512322 ()
#2	0x0000000101971ed4 in ___lldb_unnamed_symbol512322 ()
Thread 2#0	0x00000001a412fb74 in __workq_kernreturn ()
#1	0x00000001a41b2138 in _pthread_wqthread ()
#2	0x00000001a41b4cd4 in start_wqthread ()
Thread 3#0	0x00000001a41b4cd0 in start_wqthread ()
gputools.smt_poll.0x281a69f40 (4)#0	0x00000001a412f400 in __semwait_signal ()
#1	0x00000001a40a556c in nanosleep ()
#2	0x00000001a40a5444 in usleep ()
#3	0x000000010921257c in smt_poll_thread_entry(void*) ()
#4	0x00000001a41b12c0 in _pthread_body ()
#5	0x00000001a41b1220 in _pthread_start ()
#6	0x00000001a41b4cdc in thread_start ()
Thread 5#0	0x00000001a41b4cd0 in start_wqthread ()

  • Update XCode to 15.1 it is fixed for me.

Add a Comment

Accepted Reply

I was able to fix the problem.

OK. That sounds like a known issue (FB13097713) with the new linker implementation. See the Xcode 15 Release Notes for details. Monitor any future Xcode release notes to be learn about a fix. At that point remove your workaround, just to confirm that the issue is the one we think it is.

Share and Enjoy

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

  • Thanks for the feedback @eskimo . I will monitor the future releases from XCODE, and will try to remove the linker implementation to see if works again! I will tell here which future release will have the fix.

Add a Comment

Replies

I was able to fix the problem. On XCODE 15 go to:

Targets -> Build Settings -> Linking General -> Other Linker Flags
Add:
-ld_classic

It will compile and work on IOS 12

  • Thank you for this comment. After adding -ld_classic on my Other Linker flags my project was working on iOS 12.

  • I had the same problem and used this method to solve it. thank you

  • Thanks a lot, it worked for me!

I was able to fix the problem.

OK. That sounds like a known issue (FB13097713) with the new linker implementation. See the Xcode 15 Release Notes for details. Monitor any future Xcode release notes to be learn about a fix. At that point remove your workaround, just to confirm that the issue is the one we think it is.

Share and Enjoy

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

  • Thanks for the feedback @eskimo . I will monitor the future releases from XCODE, and will try to remove the linker implementation to see if works again! I will tell here which future release will have the fix.

Add a Comment