App crashed after exiting debug mode

I am writing my first ios application. I can't open the app on my iPhone after exiting debug mode of Xcode. It crashed immediately when I click the icon of my application.

Answered by Claude31 in 698995022

Can you confirm all the steps ? Or what is the exact sequence

  • you connect iPhone to Mac
  • you compile to the iPhone in debug mode
  • App launches on iPhone
  • you stop app in Xcode (it should stop on iPhone)
  • You disconnect the iPhone
  • You tap on app icon on iPhone
  • app crashes.

Is it exactly this ?

If yes, did you test with release mode instead ?

Accepted Answer

Can you confirm all the steps ? Or what is the exact sequence

  • you connect iPhone to Mac
  • you compile to the iPhone in debug mode
  • App launches on iPhone
  • you stop app in Xcode (it should stop on iPhone)
  • You disconnect the iPhone
  • You tap on app icon on iPhone
  • app crashes.

Is it exactly this ?

If yes, did you test with release mode instead ?

App crashed after exiting debug mode
 
 
Q