How can I use the new Objective-C literals described here: http://clang.llvm.org/docs/ObjectiveCLiterals.html ? I have XCode 4.3 installed.
Asked
Active
Viewed 1,271 times
2
-
1possible duplicate of [Is it possible to use NSArray, NSDictionary, and NSNumber "literals" in Xcode 4.3? (LLVM 4.0)](http://stackoverflow.com/questions/10064311/is-it-possible-to-use-nsarray-nsdictionary-and-nsnumber-literals-in-xcode-4) – trojanfoe Jul 06 '12 at 11:19
-
1Users of Apple compiler releases can use these features starting with the Apple LLVM Compiler 4.0. Xcode 4.3 uses compiler version 3.1. – Sergey Kalinichenko Jul 06 '12 at 11:23
1 Answers
0
With Xcode 4.3, you cant. Upgrade to either 4.4 or 4.5 to use these features

wattson12
- 11,176
- 2
- 32
- 34
-
1Yes, Xcode 4.4 and 4.5 are basically the same except 4.5 comes with the iOS 6 SDK packaged in. – trojanfoe Jul 06 '12 at 11:20
-
How do I update Xcode to 4.4/.5? Going into the App Store, under updates section, it tells me all apps are up to date – 0xSina Jul 06 '12 at 11:26
-
It's a developer preview at the moment, you need to get the download from the [developer center](https://developer.apple.com/) – wattson12 Jul 06 '12 at 11:29
-
This is not correct. The literal syntax is a compiler feature (not tied to Xcode itself in any way), and the clang version that supports it is public. All you have to do is swap the compiler that Xcode uses: http://stackoverflow.com/questions/7361824/is-there-any-way-to-use-llvm-3-in-xcode-4-1 – jscs Jul 06 '12 at 18:21