Xcode Instruments: Leaks - App crashes on launch

后端 未结 2 1864
孤城傲影
孤城傲影 2021-02-04 03:49

Xcode Instruments: Leaks - App crashes on launch

The app crashes on both, a device and in a Simulator.

What could cause the app to crash with the Instrum

2条回答
  •  梦如初夏
    2021-02-04 04:25

    I found my answer here, but only after discovering the "Console" view in Instruments, which included the following log message right after the app appeared to crash:

    This copy of libswiftCore.dylib requires an OS version prior to 12.2.0
    

    I used Xcode 10.2.1 and an iPad running iOS 12.4. So to reiterate the answer (credits to user msk):

    If iOS >= 12.2, provide /usr/lib/swift as a first argument for Runpath Search Paths (under "Linking" in your Build Settings).

提交回复
热议问题