Iphone App 调试助手信息

    技术2022-05-20  36

    1.MallocStackLogging

    2.NSZombieEnabled

    3.NSDubgEnabled

    4.MallocStackLoggingNoCompact

    5.MallocScribble

     

    6.malloc: *** error for object 0x38a410: double free

        ***set a breakpoint in malloc_error_break to debug

     

    方法:(GDB)break malloc_error_break

     

    7.watch the object allocate history

    方法:(GDB)shell malloc_history 3939 0xa4e10

     

    8.remove xcode instantly

    cmd:sudo /Developer/Library/uninstall-devtools --mode=all

     

    9.Check crash log

    1)run app in debug mode in xcode until it crashes

    2)Application utility Activity monitor

    3)select the crashed app in list and double click to open the info window

    4)click sample button

    10.change xcode template company name

    defaults write com.apple.Xcode PBXCustomTemplateMacroDefinitions '{ "ORGANIZATIONNAME" = "Apple.com.ltd"; }'


    最新回复(0)