This solution works for me.
https://developer.apple.com/forums/thread/738317
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
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: