Interesting. Yeah, that's really weird. Have you checked out the Zombie Objects or Address Sanitizer features? They might be able to help you pinpoint your problem. Both are accessible when you edit your scheme, head to the Run action and click on the Diagnostics tab. After enabling them, run your app. Now when it crashes, you'll get a detailed readout on what went wrong.Say, did you check to see if anything was wrong with your source file? Take a look in the File Inspector. Maybe also create another Swift file with a function in it that does the same thing as your setup code, and call that function from your original file. Other than that, I'm just as stumped as you are.
Topic:
App & System Services
SubTopic:
Core OS
Tags: