Xcode4 6
Following the release of iOS 6.1, Apple has updated its Xcode developer toolset as well. The new version, Xcode 4.6, includes improvements in code completion heuristics, new compiler warnings, and other coding improvements.

What's new

- Includes SDKs for OS X 10.8 Mountain Lion and iOS 6.1.
- Code completion heuristics are more accurate, and use an optimized default data set.
- New compiler warnings help identify potential bugs when using ARC and weak references.
- C++11 support for ‘user defined literals’ and ‘unrestricted unions’ features.
- Debugger can inspect elements within NSArray or NSDictionary objects.
- Analyze now performs deeper cross-function static analysis of Objective-C and C++ code.
- The number of indexing passes is reduced due to improved dependency checking.
- Additional bug fixes and stability improvements.

Xcode 4.6 is available as a free download from the Mac App Store. [Direct Link]

Top Rated Comments

khirok Avatar
115 months ago
About Time


- Debugger can inspect elements within NSArray or NSDictionary objects.

This should have been in XCode 3! Been needing this for years and has added hours to my life adding logging statements to see the contents of these.
Score: 7 Votes (Like | Disagree)
Stella Avatar
115 months ago
Hey Bro, I understand your frustration, but Apple does have other tasks on hand... give 'em some luv!!!






Love & Peace,
yehudah

Being able to inspect dictionaries and arrays using the debugger is functionality that a developer would expect to exist.
Score: 4 Votes (Like | Disagree)
shurcooL Avatar
115 months ago
Awesome news, the latest Xcode is quite good. And clang has the best C++11 support to date, much better than MSVC 2012.

Here are the changes from 4.5.2 to 4.6:

$ xcrun clang --version
Apple clang version 4.1 (tags/Apple/clang-421.11.66) (based on LLVM 3.1svn)
Target: x86_64-apple-darwin12.2.0
Thread model: posix
$ xcrun clang --version
Apple LLVM version 4.2 (clang-425.0.24) (based on LLVM 3.2svn)
Target: x86_64-apple-darwin12.2.0
Thread model: posix

$ xcrun git --version
git version 1.7.10.2 (Apple Git-33)
$ xcrun git --version
git version 1.7.12.4 (Apple Git-37)
Score: 2 Votes (Like | Disagree)
Saladinos Avatar
115 months ago
Apple generally prefers you work with Objective-C style objects. Core Foundation is just there to enhance C compatibility... They haven't even given Core Foundation ARC yet. It's a bit of a second-class citizen in general.
Yeah but C compatibility is kind of important. Also, unless you're targeting iOS6 (and NSMapTable, which I'm unsure if this new inspector will detail), it's the only way to get a dictionary that doesn't copy its keys or retain its values.

As for bracket autocompletion, the problem is this:

4 + 3

4 + 3 )

(4 + 3 ) now press space...

( )4 + 3 ) why does XCode insert this bracket?!

I like the bracket autocompletion in general, but this one thing just annoys the hell out of me. There's nothing to complete here, the brackets are already closed.
Score: 1 Votes (Like | Disagree)
shurcooL Avatar
115 months ago
Well, here's one very obvious bug that's still not fixed:

Press Cmd+F to open a find dialog, type some query that gets lots of results, press Enter to select next result, it works fine, but Shift+Enter has a problem - it goes to previous entry, then to next one, effectively looping in place.

On the other hand, Cmd+G and Cmd+Shift+G work fine without the bug.
Score: 1 Votes (Like | Disagree)
DaveP Avatar
115 months ago
This should have been in XCode 3! Been needing this for years and has added hours to my life adding logging statements to see the contents of these.

WooHoo! 2001 here we come!
Score: 1 Votes (Like | Disagree)

Related Stories

iphone holiday

Best Black Friday iPhone Deals Still Available

Friday November 26, 2021 4:58 am PST by
Cellular carriers have always offered big savings on the newest iPhone models during the holidays, and Black Friday 2021 sales have now carried over into Cyber Monday as well. Right now we're tracking notable offers on the iPhone 13 and iPhone 13 Pro devices from AT&T, Verizon, and T-Mobile. For even more savings, keep an eye on older models like iPhone SE. Note: MacRumors is an affiliate...
airpods family holiday

Best Black Friday AirPods Deals Still Available

Friday November 26, 2021 4:04 am PST by
Black Friday 2021 deals are still going strong into Cyber Monday, and in this article we're tracking the best deals across Apple's AirPods lineup. Throughout the week we've been sharing the best sales for Apple devices like iPhone, Mac, and iPad, so be sure to follow us on Twitter for all of the latest Black Friday sales Note: MacRumors is an affiliate partner with some of these vendors. When...
apple mixed reality headset mockup feature purple

Kuo: Apple AR Headset Coming in Late 2022 With Mac-Level Computing Power

Thursday November 25, 2021 8:32 pm PST by
Apple's long-rumored augmented reality (AR) headset project is set to bear its first fruit late next year with the launch of the first device carrying a pair of processors to support its high-end capabilities, according to a new research report from noted analyst Ming-Chi Kuo seen by MacRumors. According to Kuo, the higher-end main processor is said to be similar to the M1 chip Apple...
apple watch cellular holiday

Best Black Friday Apple Watch Deals Still Available

Friday November 26, 2021 4:55 am PST by
The Apple Watch always makes a great gift around the holiday season, and for Black Friday 2021 we're tracking a few solid offers on numerous models of the Apple Watch. In this article, you'll find the best Black Friday sales on the new Apple Watch 7, but the best money-saving discounts will be found on older models like the Apple Watch Series 3 and SE. Note: MacRumors is an affiliate partner...
iPads black friday 20 sale feature

Best Black Friday iPad Deals Still Available

Friday November 26, 2021 4:48 am PST by
Although Black Friday sales began as early as October in 2021, the shopping holiday is now officially underway and we're highlighting the best sales for each of Apple's product lines. In this article, you'll find the best Black Friday sales on iPad Pro and iPad mini. Note: MacRumors is an affiliate partner with some of these vendors. When you click a link and make a purchase, we may receive a...
mac family holiday

Best Black Friday iMac and MacBook Deals Still Available

Friday November 26, 2021 4:29 am PST by
Our Black Friday 2021 coverage continues with the best deals you can find on MacBook Pro, MacBook Air, iMac, and Mac mini today. As with all Black Friday deals, we aren't sure how long any of these will last, and prices are always fluctuating, so if you see something you want, be sure to buy it soon. Note: MacRumors is an affiliate partner with some of these vendors. When you click a link and...
General black friday 20 sale feature

Huge List of Black Friday Deals on iPhone and Mac Cases, Cables, Accessories and Software

Friday November 26, 2021 5:09 am PST by
Black Friday is in full swing today, and in this article we're highlighting some of the best deals that you can find online among popular third-party accessory makers like Twelve South, Nomad, Satechi, and many more. Visit our Black Friday Roundup for a deeper dive into the best sales going on today. Note: MacRumors is an affiliate partner with some of these vendors. When you click a link and...
apple black friday shopping event 2021

Apple's Black Friday Promotion Now Underway in the U.S. and More Countries

Friday November 26, 2021 12:07 am PST by
Apple's annual four-day Black Friday through Cyber Monday shopping event is now underway in the United States and select other countries, with customers able to receive a free Apple gift card with the purchase of select products through November 29. Participating countries include the United States, Canada, Australia, New Zealand, the UK, Ireland, France, Spain, Portugal, Italy, Germany,...