Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I remove ARC from iPhone project build for iOS 5?

Tags:

xcode4

iphone

Now I have a Xcode project which is built for iOS 5, but now i have to install it on an iPhone 3GS, which has a older iOS. I came to know that this is because I am using ARC in this project and it is not available in iOS 3.2. How can I remove ARC from my current project?

like image 624
shine Avatar asked Dec 10 '22 01:12

shine


2 Answers

If you want it disabled for the whole project, you need to go to the target's build settings and set it to No enter image description here

like image 149
Demz Avatar answered Jan 05 '23 15:01

Demz


enter image description here very simple first go to targets in that go "buldphases"-->compileSource--> here "yourfile.m" --> set value -fno-objc-arc(only particular files )

if u want remove ARC in entire project go to targets in that go "buldsettings" ---> objective-c automaticrefcount :NO

enter image description here

like image 24
Nag_iphone Avatar answered Jan 05 '23 17:01

Nag_iphone