ARC and ASIHTTPRequest

前端 未结 2 1881
深忆病人
深忆病人 2020-12-24 15:26

I have a strange problem.

I use ASIHTTPRequest in a iOS 5 project with ARC enabled. Since ASIHTTPRequest does not support ARC I have disabl

相关标签:
2条回答
  • 2020-12-24 16:28

    You typed -fno-ojbc-arc. The correct flag is -fno-objc-arc.

    0 讨论(0)
  • 2020-12-24 16:30

    I did it this way.

    You have to make the ASIHTTP as a library and include it in your project.

    Following is the procedure.

    1. Create iPhone Project Cocoa Touch Static Library.
    2. Copy all the ASIHTTP supported files and Rechability .h and .m files inside the Library Project.
    3. Make a Build.
    4. You will get a .a file.
    5. Copy the file in your project.
    6. Copy the necessary .h (header) files you are going to use in your project.

    You will not get any ARC Error. Hope it helps some one facing similar ARC problems..

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