AFNetworking setup on Xcode 3.2.5

Discussion in 'iOS Programming' started by IDMah, Jun 3, 2012.

  1. IDMah macrumors 6502

    IDMah

    Joined:
    May 13, 2011
    #1
    Anyone got AFNetworking compiling clean on Xcode 3.2.5

    if so, how did you do it ?? I'm a noob when it comes to xcode compiler flags.
    I know that I need to add:

    Code:
    -fno-objc-arc
    but not sure where. something about build phase..
    screenshot would be greatly appreciated.. cuz I'm left handed and visual.

    thanks
    Ian
     
  2. xStep, Jun 3, 2012
    Last edited: Jun 3, 2012

    xStep macrumors 68000

    Joined:
    Jan 28, 2003
    Location:
    Less lost in L.A.
    #2
    That project seems to be using newer Objective-C things that Xcode 3 can't handle. Perhaps you can work around them all but it sure is a hassle. For instance, replacing the strong keyword in the property declaration with retain, others with assign, etc. There is more.

    The flag you mention is only needed for projects using ARC. I don't believe Xcode 3 supports ARC, so your project wouldn't need the flag.
     
  3. idelovski macrumors regular

    Joined:
    Sep 11, 2008
    #3
    SkyDrive SDK comes with sample code on ARC and low level code is just old fashion plain obj-c code with retain and release. I made it all work on Xcode 3.2.6 but you really need to know what is the purpose of something and why is it there.

    Read a tutorial about ARC before you start changing anything.
     
  4. IDMah thread starter macrumors 6502

    IDMah

    Joined:
    May 13, 2011
    #4
    copy that...

    Yes I knew it was an ARC thing .. but hoping I could work around it.
    but .. looks like I'm, upgrading to Lion.. shuzbutt !
    ....sigh...

    thanks all
    Later
    Ian
     

Share This Page