+ Start a Discussion
TiratTirat 

Automatic Reference Counting (ARC) in IOS

I am converting the Mobile SDK template project to ARC but it is not working. How does one use the Mobile SDK with automatic reference counting?

 

Thanks,

tirat

OksmanOksman

It's not currently possible to use ARC with the SDK. This feature is on our roadmap. 

TiratTirat

Thanks. Looking forward to it.

J2theCJ2theC

You can use ARC with the template by creating the template with ARC off, and then use the Refactor tool from Xcode to convert the project to ARC. You can also select the specific files in which you with to have ARC off by adding the -fno-objc-arc flag to the file.

RacerRex9727RacerRex9727

Seriously? The SDK does not support ARC?

 

Is there any indication on when this is supposed to change?

J2theCJ2theC

the iOS SDK supports ARC. The salesforce toolkit is not supporting ARC at this moment. However you can use ARC by following the tip posted by me above. According to an early post, ARC is in the roadmap.

RacerRex9727RacerRex9727

Oh, okay. Never mind.

 

Just had one of those "Bulldog Briscoe" moments. "This stinks! This is total BS! ... Oh here it is. Never mind".

lforteslfortes

Nop. Refactoring as described by J2theC does not work. Hangs on "Authorizing" screen after refactor "Convert to Object-C ARC". 

RacerRex9727RacerRex9727

Yeah I just found that out today.

 

But I am trying the flagging method. I think I'm having success.