Optimization iPhone SIGSEGV崩溃,使用ARC+ASIHTTPRequest进行任何级别的优化 我目前使用ASIHTTPRequest进行同步请求 我最近重构了我的代码以符合ARC,并使用编译器标志-fno objc ARC省略了ASIHTTPRequest类 当我使用任何类型的优化时,我有一个_mh_execute_header SIGSEGV崩溃

Optimization iPhone SIGSEGV崩溃,使用ARC+ASIHTTPRequest进行任何级别的优化 我目前使用ASIHTTPRequest进行同步请求 我最近重构了我的代码以符合ARC,并使用编译器标志-fno objc ARC省略了ASIHTTPRequest类 当我使用任何类型的优化时,我有一个_mh_execute_header SIGSEGV崩溃,optimization,crash,automatic-ref-counting,asihttprequest,segmentation-fault,Optimization,Crash,Automatic Ref Counting,Asihttprequest,Segmentation Fault,在关闭所有优化功能的同时,允许我的应用程序运行-我需要能够使用iOS默认设置优化应用程序,该设置使用最快、最小的[-Os] 因为这是一个与内存相关的问题,而且ASIHTTPRequest中只有手动管理的内存,所以使用ASI解决我的问题吗 堆栈跟踪: Thread: Unknown Name (Crashed) 0 libobjc.A.dylib 0x37b9ef7e objc_msgSend + 21 1 Test

在关闭所有优化功能的同时,允许我的应用程序运行-我需要能够使用iOS默认设置优化应用程序,该设置使用最快、最小的[-Os]

因为这是一个与内存相关的问题,而且ASIHTTPRequest中只有手动管理的内存,所以使用ASI解决我的问题吗

堆栈跟踪:

Thread: Unknown Name (Crashed)
    0     libobjc.A.dylib                     0x37b9ef7e objc_msgSend + 21
    1     Test                          0x000dcda5 _mh_execute_header + 126373
    2     Test                          0x000dc4b9 _mh_execute_header + 124089
    3     Test                          0x000cd801 _mh_execute_header + 63489
    4     Test                          0x000ce39d _mh_execute_header + 66461
    5     Test                          0x000cf561 _mh_execute_header + 71009
    6     Test                          0x000d3e3d _mh_execute_header + 89661
    7     UIKit                               0x3334ccbd -[UITextField keyboardInput:shouldInsertText:isMarkedText:] + 148
    8     UIKit                               0x3334cc1f -[UIFieldEditor keyboardInput:shouldInsertText:isMarkedText:] + 94
    9     UIKit                               0x3334cbb9 -[UIKeyboardImpl callShouldInsertText:] + 108
    10   UIKit                               0x3334bb5b -[UIKeyboardImpl addInputString:fromVariantKey:] + 114
    11   UIKit                               0x3334bae1 -[UIKeyboardImpl handleStringInput:fromVariantKey:] + 164
    12   UIKit                               0x3334a775 -[UIKeyboardImpl handleKeyEvent:] + 1320
    13   UIKit                               0x334e48a3 -[UIKeyboardLayoutStar sendStringAction:forKey:isPopupVariant:] + 486
    14   UIKit                               0x33348dcd -[UIKeyboardLayoutStar touchUp:] + 3196
    15   UIKit                               0x333480fd -[UIKeyboardLayout touchesEnded:withEvent:] + 380
    16   UIKit                               0x3324b92b -[UIWindow _sendTouchesForEvent:] + 318
    17   UIKit                               0x3324b319 -[UIWindow sendEvent:] + 380
    18   UIKit                               0x33231695 -[UIApplication sendEvent:] + 356
    19   UIKit                               0x33230f3b _UIApplicationHandleEvent + 5826
    20   GraphicsServices                    0x373f022b PurpleEventCallback + 882
    21   CoreFoundation                      0x357d1523 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 38
    22   CoreFoundation                      0x357d14c5 __CFRunLoopDoSource1 + 140
    23   CoreFoundation                      0x357d0313 __CFRunLoopRun + 1370
    24   CoreFoundation                      0x357534a5 CFRunLoopRunSpecific + 300
    25   CoreFoundation                      0x3575336d CFRunLoopRunInMode + 104
    26   GraphicsServices                    0x373ef439 GSEventRunModal + 136
    27   UIKit                               0x3325fcd5 UIApplicationMain + 1080
    28   Test                          0x000bfc1b _mh_execute_header + 7195

更新:苹果显然不在乎优化水平是多少,所以这更多的是关于技术债务的问题。由于我的应用程序仍然很小,这不再是一个问题。更新:苹果显然不在乎优化水平如何,所以这更多的是一个关于技术债务的问题。由于我的应用程序仍然很小,因此不再那么令人担忧。