Thunder Rabbit
Thunder Rabbit

Reputation: 5449

convert to objective c arc didn't do anything

In XCode 4.2 when I tried to Edit -> Refactor -> Convert to Objective-C ARC ... I got hundreds of errors after the conversion. I used git to reset the code back to its former ARC-free self and it compiled fine.

I just tried again to Edit -> Refactor -> Convert to Objective-C ARC ... and it gave a preview of changes with exactly zero changes. I have deallocs and releases all over my code and XCode says "Target currently uses ARC"

How can I make XCode 4.2 realize this project is not using ARC?

screenshot of XCode claiming a file with a dealloc() is using ARC

Upvotes: 1

Views: 835

Answers (2)

Thunder Rabbit
Thunder Rabbit

Reputation: 5449

I was able to solve it by doing a git reset then Convert to ARC without selecting the problematic library.

Upvotes: 1

Ken Hui
Ken Hui

Reputation: 368

I can't sure where goes wrong during your conversion, but I suggest you follow this tutorial and see any differences about your steps.

I hope it helps :)

Upvotes: 1

Related Questions