Tirth
Tirth

Reputation: 7789

Developing Iphone app for iOS 4.0 in iOS 5.0?

I developing iPhone application for iOS 4.2 using latest SDK iOS5. I trying to add external classes Kal

but i gives me error "ARC forbids explicit message send of 'autorelease', 'retain', and 'release'". And i want to add this classes in my application in any how condition. I want to execute that classes in my application. I stuck on two points basically, 1) How i use explicit use of retain, release, and autorelease keywords 2) How i deploy my app on 4.0 lower version from latest iOS 5.0(Containing ARC scheme)

Thanks RRB

Upvotes: 1

Views: 650

Answers (3)

Simon Whitaker
Simon Whitaker

Reputation: 20576

See this question for an explanation of how to disable ARC on a per-file basis. The solution here is probably to disable ARC for the Kal files while leaving it enabled for the rest of your project. (ARC works fine on iOS 4.0 with a couple of minor exceptions.)

Upvotes: 1

Andrey Zverev
Andrey Zverev

Reputation: 4428

There is a refactoring that will convert your classes to be compatible with ARC.

In XCode menu: Edit - Refactor - Convert to Objective-C ARC.

Upvotes: 1

Ilanchezhian
Ilanchezhian

Reputation: 17478

You can turn the ARC off in the Xcode 4.2 for your project.

For more info , see the blogpost

Also , see this SO question

Upvotes: 0

Related Questions