How to enable ARC in custom Xcode 4.2 template?
I am working on a custom template for my iOS apps. I want to enable ARC for the projects I created using this template. I am using these keys for this -

 

	<key>Targets</key>
	<array>
		<dict>
			<key>SharedSettings</key>
			<dict>
				<key>USER_HEADER_SEARCH_PATHS</key>
				<string>$(BUILT_PRODUCTS_DIR)/usr/local/include</string>
				<key>OTHER_LDFLAGS</key>
				<string>-ObjC -all_load</string>
				<key>CLANG_ENABLE_OBJC_ARC</key>
				<string>YES</string>
			</dict>
			<key>Frameworks</key>
			<array>
				<string>CFNetwork</string>
				<string>SystemConfiguration</string>
				<string>QuartzCore</string>
			</array>
		</dict>
	</array>
	<key>Project</key>
	<dict>
		<key>SharedSettings</key>
		<dict>
			<key>CLANG_ENABLE_OBJC_ARC</key>
			<string>YES</string>
			<key>GCC_VERSION</key>
			<string>com.apple.compilers.llvm.clang.1_0</string>
		</dict>
		<key>Configurations</key>
		<dict>
			<key>Debug</key>
			<dict>
				<key>ONLY_ACTIVE_ARCH</key>
				<string>YES</string>
			</dict>
			<key>Release</key>
			<dict/>
		</dict>
	</dict>



But the problem is I can still use `retain` inside project and xcode is not generating any error. Event the the retain is not crossed out in code sense.

I am wondering is the project even a ARC enabled? (I check in build settings and its showing ARC enabled)

Can anyone help?
 
How to enable ARC in custom Xcode 4.2 template?
===

I am working on a custom template for my iOS apps. I want to enable ARC for the projects I created using this template. I am using these keys for this -

 

	<key>Targets</key>
	<array>
		<dict>
			<key>SharedSettings</key>
			<dict>
				<key>USER_HEADER_SEARCH_PATHS</key>
				<string>$(BUILT_PRODUCTS_DIR)/usr/local/include</string>
				<key>OTHER_LDFLAGS</key>
				<string>-ObjC -all_load</string>
				<key>CLANG_ENABLE_OBJC_ARC</key>
				<string>YES</string>
			</dict>
			<key>Frameworks</key>
			<array>
				<string>CFNetwork</string>
				<string>SystemConfiguration</string>
				<string>QuartzCore</string>
			</array>
		</dict>
	</array>
	<key>Project</key>
	<dict>
		<key>SharedSettings</key>
		<dict>
			<key>CLANG_ENABLE_OBJC_ARC</key>
			<string>YES</string>
			<key>GCC_VERSION</key>
			<string>com.apple.compilers.llvm.clang.1_0</string>
		</dict>
		<key>Configurations</key>
		<dict>
			<key>Debug</key>
			<dict>
				<key>ONLY_ACTIVE_ARCH</key>
				<string>YES</string>
			</dict>
			<key>Release</key>
			<dict/>
		</dict>
	</dict>



But the problem is I can still use `retain` inside project and xcode is not generating any error. Event the the retain is not crossed out in code sense.

I am wondering is the project even a ARC enabled? (I check in build settings and its showing ARC enabled)

Can anyone help?
 