Xcode Simulator - CyMemDef.dylib: mach-o, but not built for iOS simulator

The solution for me was to change my project's iOS Deployment Target to 11.4 or earlier.

With iOS Deployment Target 12.0, the app crashes every time!

I am running Xcode 10.0 and Cylance 2.0.1500.518 on macOS High Sierra 10.13.6.


Had similar trouble with CryptoKit, which was available only in iOS 13 and higher (while project was targeted iOS 9.3). It appeared that CryptoKit was not marked as weak for some reason. Adding -weak_framework CryptoKit into target's Build Settings > Other Linker Flags solved the problem for me:

enter image description here

Tags:

Ios

Xcode