I encountered a problem a while ago,ProgramAfter packaging, the interface always crashes. device log only prints exited abnormally with signal 11: segmentation fault
I found the relevant information on the Internet and found that this error is mostly related to memory operations. However, it is clear that this error is correct during debugging?
So I used the release certificate for debugging. The program crashed on that interface and checked the cause. The property of a member variable written by a colleague was written as assign, this attribute is a subview of the current view, so it is immediately released after it is generated (our project is under Arc), and assign is actually unsafe_unretain, that is, it becomes a wild pointer. When the current view is added with a word view, the program will inevitably crash. Later, I asked my colleagues why they wrote so well. My colleague said that he didn't know anything about it. Maybe he had to work too much overtime to get dizzy...
The Program for packaging the debug and release certificates is very likely to be different, because during compilation, their default compilation attributes in xcode are also different, therefore, you must use the release certificate for testing before release. The program of the debug version may not be so strict.