The app works like debugging but crashes as release

I have a program that works fine on the device in the Debug configuration, but doesn't work like Release. Does anyone have this experience and how to fix it?

thank

+5
source share
2 answers

I ran into the same problem - the application worked perfectly on the simulator and the device in Debug mode, but not in Release mode (it did not install, but simply displayed a pop-up window)

  • Xcode 4.3.2
  • Deployment Goal iOS 4.3

StackOverflow, , , , iPhone 4S. " ", , , , - .

โ†’ Apple LLVM 3.1 โ†’ , Release , [-Os] [-O0]. โ€‹โ€‹.

: http://www.mindjuice.net/2011/11/30/how-to-fix-an-app-that-crashes-in-release-but-not-debug/.

Apple Documentation , , - :

- , . , , , . , , , , .

: . , . .

, . , . , .

+15

!

""? ? ? ? ? ? - , - ? < #ifdef DEBUG? asserts ? ? ++? ?

; . , , , debug. , , .

.

, , ?

+1

All Articles