Signal 11, segmentation fault on iphone App exit

后端 未结 4 1630
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-10 08:17

I have an iphone app. It seems to run fine. When I connect to a provisioned iphone to Xcode and run the App, the console log in the Organizer window, always complains abou

4条回答
  •  星月不相逢
    2020-12-10 08:35

    Perhaps you are releasing some object more times than its retain count. Comment out -release calls in your dealloc methods (or elsewhere) until you find the culprit.

    Then uncomment-out that call and look elsewhere in your code where you are trying to over-release that object.

    If you are using convenience methods, for example, (e.g. [NSString stringWithFormat:@"..."]) as opposed to alloc-init methods (e.g. [[NSString alloc] initWithFormat:@"..."]) the resulting convenience object is autoreleased and should not be manually released.

提交回复
热议问题