Is your iOS app crashing only when you upload it to TestFlight?

Daniel Kioko
TheCodr
Published in
2 min readApr 26, 2020

--

So you finally put together your app confident enough to place it on TestFlight huh? You launch your app and at some point, all you get is this, which is not the same thing as running from Xcode. Right?

If you’re running in release mode you could be getting something similar to this in your logs:

[Project Name] was compiled with optimization - stepping may behave oddly; variables may not be available.

Here’s the thing, libraries on Release mode are compiled differently. Probably to make features provided by them work efficiently on production. The problem is, these optimization settings are not compatible with all libraries and this becomes an issue when it’s test time.

Here’s how you fix that:

Select your project from Xcode and click on Build settings, search for optimization. Set optimization to none like in the screenshot below & set the C++ Standard library to Compiler Default or Switch to another remaining alternative of Compiler Default won’t work for you.

Test using release mode by clicking Product > Scheme > Edit Scheme > Run > Choose Release and make sure to check the box for debug excecutable.

That’s it!

Photo by Tyler Lastovich on Unsplash

Thanks for reading. Did you solve your problem? Let me know.

--

--

Daniel Kioko
TheCodr
Editor for

Innovating, Creating & Learning with Software