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: