ASIHTTPRequest fails in production builds

后端 未结 1 1770
Happy的楠姐
Happy的楠姐 2020-12-13 22:36

So i\'ve run into quite a problem. It seems that ASIHTTPRequest just does not want to work in a production build.
Everything works great in debug. However, once I build

相关标签:
1条回答
  • 2020-12-13 23:00

    It looks like there's a bug in ASIHttpRequest, causing this crash when running with Release mode optimizations.

    What worked for me is turning off optimization for the following 2 files: ASIFormDataRequest.m ASIHTTPRequest.m

    Do this by selecting the target project, select the file in "Compile sources" section of the "Build Phases" tab; and add -O0 (capitol O zero).

    You can read more about it here

    0 讨论(0)
提交回复
热议问题