The app crashes on launch when running from XCode 10.2 (before and after Swift 5.0 migration) with this on console
This copy of libswiftCore.dylib requires an OS version prior to 12.2.0.
I understand the error, but not sure what is required to fix this.
Go to BuildSettings -> Linking -> runpath search path and add
/usr/lib/swift
as your 1st argument like this:
Make sure /usr/lib/swift
is the first argument for runtime search
paths for linker if iOS >= 12.2, it should load platform libraries.
Got it fixed in our ObjectiveC-only project by adding empty Swift file. Don't remove it, just keep it there forever!
For anybody not using BUCK but still experiencing this issue, try adding /usr/lib/swift
in your target's Runtime Search Paths (under Build Settings). Instantly fixed things up for me.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With