App crashes in Release build but not in debug

后端 未结 4 2262
粉色の甜心
粉色の甜心 2020-12-15 03:49

As I said in the title, I am writing an app for iPhone which runs perfectly in debug mode but when I build it as release and install it via TestFlight, it crashes. Due to t

4条回答
  •  忘掉有多难
    2020-12-15 04:00

    To catch the crash test the with the Optimization Level set to Fastest, Smallest [-Os] in Debug mode to more closely simulate the code that will be generated & running on the user’s device.

    You can set it in build settings, under Swift Compiler/Code Generation

提交回复
热议问题