Mike Flynn
Mike Flynn

Reputation: 24325

How can you tell if iOS project is using ARC without opening it in Xcode?

I dont have access to Xcode and want to make sure a project is using ARC. What file contains the setting that shows ARC is enabled?

There are quite a bit of lines that look like this in my AppDelegate.h file.

@property (nonatomic, strong) Test * test;

Upvotes: 2

Views: 379

Answers (2)

Daniel Klöck
Daniel Klöck

Reputation: 21137

Open the content of your .xcodeproj file: right mouse click -> show content (or something similar). Open project.pbxproj with TextEdit or any other text editor and search for

CLANG_ENABLE_OBJC_ARC = YES;

or

CLANG_ENABLE_OBJC_ARC = NO;

Upvotes: 1

Mike Weller
Mike Weller

Reputation: 45598

Search for the MyProject.xcodeproj/project.pbxproj file, and open it with a text editor to see if it contains values for CLANG_ENABLE_OBJC_ARC. If you see = YES then ARC is enabled for one or more targets in the project.

Upvotes: 3

Related Questions