Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > News and Article Discussion > Mac Blog Discussion

Reply
 
Thread Tools Search this Thread Display Modes
Old Jan 28, 2013, 01:51 PM   #1
MacRumors
macrumors bot
 
Join Date: Apr 2001
Xcode Developer Toolset Updated to Version 4.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.
Quote:
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]

Article Link: Xcode Developer Toolset Updated to Version 4.6
MacRumors is offline   1 Reply With Quote
Old Jan 28, 2013, 02:11 PM   #2
khirok
macrumors newbie
 
Join Date: Jul 2009
About Time

Quote:
- 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.
khirok is offline   7 Reply With Quote
Old Jan 28, 2013, 02:40 PM   #3
valexa
macrumors member
 
Join Date: Nov 2007
is it just me or is the update really 1.3 GB, pretty much as big as the full 1.5 GB Xcode in the store.
__________________
❹ ❽ ❶❺ ❶❻ ❷❸ ❹❷
valexa is offline   0 Reply With Quote
Old Jan 28, 2013, 02:42 PM   #4
Peace
macrumors P6
 
Join Date: Apr 2005
Location: Space--The ONLY Frontier
Told ya !

http://forums.macrumors.com/showpost...3&postcount=72
Peace is offline   1 Reply With Quote
Old Jan 28, 2013, 02:55 PM   #5
ArtOfWarfare
macrumors 603
 
ArtOfWarfare's Avatar
 
Join Date: Nov 2007
Send a message via Skype™ to ArtOfWarfare
Great news, all around.

Has Clang been updated? I was finding quirks with it refusing to compile some C++ code a week or two ago... I'm wondering if that code will still not compile.
__________________
Don't tell me Macs don't last: 2007 iMac, 2007 Mac Mini, 2008 MacBook Air, all Vintage.
(iMac obsoletion: April 28, 2015, MBA: October 14, 2015, Mac Mini: March 9, 2016)
ArtOfWarfare is offline   0 Reply With Quote
Old Jan 28, 2013, 03:23 PM   #6
MrCubes
macrumors member
 
Join Date: Dec 2008
Quote:
Originally Posted by khirok View Post
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.
I'm hoping this is the start of a much-needed and long overdue ramp up of the debugger support. For me, at least, it's the weakest part of the XCode experience by far.

I'm giving them a pass for getting things on track with lldb and see this latest change as a step in the right direction. I'm hoping they'll run with it from here the way they have with the static analysis etc.
__________________
blog: http://www.levelofindirection.com C++/ Obj-C test framework: catch-lib.net
MrCubes is offline   0 Reply With Quote
Old Jan 28, 2013, 03:39 PM   #7
mdriftmeyer
macrumors 68020
 
mdriftmeyer's Avatar
 
Join Date: Feb 2004
Location: Pacific Northwest
LLVM/Clang 3.3 will be a big update to LLDB, C11, C++11, ObjC [ARC and more] OpenCL, OpenGL and a complete advancement in design modularity.

Both NVPTX [Nvidia] and R600 [AMD GPGPUs] targets and lots of OpenCL work. Not to mention OpenMP support and ARM64 amongst other target additions.
mdriftmeyer is offline   0 Reply With Quote
Old Jan 28, 2013, 04:17 PM   #8
yehudah72
macrumors regular
 
Join Date: May 2008
Quote:
Originally Posted by khirok View Post
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.


Hey Bro, I understand your frustration, but Apple does have other tasks on hand... give 'em some luv!!!






Love & Peace,
yehudah
__________________
1 MacBook Pro 17", 3 iPad 4, 3 iPad Mini, 5 MacBook Air, 1 MacBook Pro 13", 6 iPhone 5 White, 4 iPhone 4S White, 4 MacBooks 13" Wht & Blk, 1 iMac 24", 1 T-Mo Sonic 2 HotSpot
yehudah72 is offline   0 Reply With Quote
Old Jan 28, 2013, 04:29 PM   #9
Stella
macrumors 603
 
Stella's Avatar
 
Join Date: Apr 2003
Location: Canada
Quote:
Originally Posted by yehudah72 View Post
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.
__________________
Hardware / Software: The right tools for the job - be it Apple or otherwise.
Stella is offline   4 Reply With Quote
Old Jan 28, 2013, 04:30 PM   #10
KnightWRX
macrumors Pentium
 
KnightWRX's Avatar
 
Join Date: Jan 2009
Location: Quebec, Canada
Quote:
Originally Posted by Stella View Post
Being able to inspect dictionaries and arrays using the debugger is functionality that a developer would expect to exist.
It did. You people didn't know about Right-Click->Inspect ?

Worked fine, just a bit less visual than the new functionality.
__________________
"What you leave behind is not what is engraved in stone monuments, but what is woven into the lives of others."
-- Pericles
KnightWRX is offline   1 Reply With Quote
Old Jan 28, 2013, 05:10 PM   #11
dethmaShine
macrumors 68000
 
Join Date: Apr 2010
Location: Into the lungs of Hell
Quote:
Originally Posted by khirok View Post
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.
I totally agree. It's beyond me why they didn't do it with Xcode 3 itself.
__________________
Steve is smiling down from above.
-darkfiber
dethmaShine is offline   0 Reply With Quote
Old Jan 28, 2013, 06:36 PM   #12
Mr. Retrofire
macrumors 601
 
Mr. Retrofire's Avatar
 
Join Date: Mar 2010
Location: www.emiliana.cl
Quote:
Originally Posted by ArtOfWarfare View Post
Great news, all around.

Has Clang been updated? I was finding quirks with it refusing to compile some C++ code a week or two ago... I'm wondering if that code will still not compile.
It is usually not the compiler. Your project is probably an old GCC project, which has visible or invisible settings, which are incompatible with other compilers, such as Clang.
__________________

“Only the dead have seen the end of the war.”
-- Plato --
Mr. Retrofire is offline   0 Reply With Quote
Old Jan 28, 2013, 07:26 PM   #13
Saladinos
macrumors 68000
 
Saladinos's Avatar
 
Join Date: Feb 2008
Hopefully bracket autocomplete is fixed.

Why does it insist on inserting a ')' after every '(', even if there's an unclosed ')' already? God that drives me nuts!
Saladinos is offline   0 Reply With Quote
Old Jan 28, 2013, 09:23 PM   #14
DaveP
macrumors 6502
 
Join Date: Mar 2005
Quote:
Originally Posted by khirok View Post
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!
DaveP is offline   1 Reply With Quote
Old Jan 28, 2013, 10:30 PM   #15
Saladinos
macrumors 68000
 
Saladinos's Avatar
 
Join Date: Feb 2008
Bracket completion hasn't been fixed. Also the dictionary inspector doesn't support CFDictionaryRef or CFMutableDictionaryRef objects :sigh:

You can work around it by telling it to display as an NSDictionary, but that's not really a solution.
Saladinos is offline   0 Reply With Quote
Old Jan 28, 2013, 11:08 PM   #16
shurcooL
macrumors 6502a
 
Join Date: Jan 2011
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:

Code:
$ 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
Code:
$ xcrun git --version
git version 1.7.10.2 (Apple Git-33)
$ xcrun git --version
git version 1.7.12.4 (Apple Git-37)

Last edited by shurcooL; Jan 29, 2013 at 10:11 AM.
shurcooL is offline   2 Reply With Quote
Old Jan 29, 2013, 06:12 AM   #17
ChristianJapan
macrumors Demi-God
 
ChristianJapan's Avatar
 
Join Date: May 2010
Location: 日本
I didn't touched XCode recently too much. Anyone has a hint for me if the wireless deployment meanwhile is back ? I found the idea of XCode 4.2 to wireless manage devices nice; less dealing with cables. It got removed in 4.3 but never showed up again. Was there any statement from Apple ? Just curious ...
__________________
Member of MacRumors.com Folding@Home Team (#3446) & developer of the F@H Mobile Monitoring app
ChristianJapan is offline   0 Reply With Quote
Old Jan 29, 2013, 08:44 AM   #18
TouchMint.com
macrumors 65816
 
TouchMint.com's Avatar
 
Join Date: May 2012
Location: Phoenix
Quote:
Originally Posted by Saladinos View Post
Hopefully bracket autocomplete is fixed.

Why does it insist on inserting a ')' after every '(', even if there's an unclosed ')' already? God that drives me nuts!
Thats just xcode playing games it likes to have fun too!
__________________
TouchMint.com iOS App Site
Adventure To Fate iOS RPG Game Site
Indie iOS Game: Adventure To Fate : A Quest To The Core JRPG

TouchMint.com is offline   0 Reply With Quote
Old Jan 29, 2013, 09:42 AM   #19
ConCat
Banned
 
Join Date: Jul 2012
Location: In an ethereal plane of existence.
Quote:
Originally Posted by Saladinos View Post
Bracket completion hasn't been fixed. Also the dictionary inspector doesn't support CFDictionaryRef or CFMutableDictionaryRef objects :sigh:

You can work around it by telling it to display as an NSDictionary, but that's not really a solution.
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.
ConCat is offline   0 Reply With Quote
Old Jan 29, 2013, 09:46 AM   #20
D.T.
macrumors 68030
 
D.T.'s Avatar
 
Join Date: Sep 2011
Location: Vilano Beach, FL
*Had* to update to 4.6 after updating my iP5 to 6.1 (of course, right in the middle of something), then XC terminated trying to startup after the install, finally got it sorted out, got my 6.1 deployment target up and running again. Fixed some munged up tablecells too (just the visual layout in storyboard).
__________________
"I am not in danger, Skyler. I am the danger. A guy opens his door and gets shot, and you think that of me? No, I am the one who knocks." ~Walter White
D.T. is offline   0 Reply With Quote
Old Jan 29, 2013, 10:05 AM   #21
notarysojac
macrumors newbie
 
Join Date: Nov 2006
Location: Santa Fe, NM
Hi Saladinos...

Not sure your point of complaint ever was a behavior - meaning PARENS '(' were auto-balanced.

It's always been the BRACES '{' and BRACKETS '[' which were the added characters, depending on preferences settings as per auto-completion.

Just saying...
notarysojac is offline   0 Reply With Quote
Old Jan 29, 2013, 10:09 AM   #22
shurcooL
macrumors 6502a
 
Join Date: Jan 2011
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.
shurcooL is offline   1 Reply With Quote
Old Jan 29, 2013, 10:55 AM   #23
Saladinos
macrumors 68000
 
Saladinos's Avatar
 
Join Date: Feb 2008
Quote:
Originally Posted by ConCat View Post
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.
Saladinos is offline   1 Reply With Quote
Old Jan 29, 2013, 11:25 AM   #24
Marjamrob1
macrumors regular
 
Join Date: Jul 2012
Quote:
Originally Posted by Saladinos View Post
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.
Ya, those brackets are really weird.
Marjamrob1 is offline   0 Reply With Quote
Old Jan 29, 2013, 12:23 PM   #25
ConCat
Banned
 
Join Date: Jul 2012
Location: In an ethereal plane of existence.
Quote:
Originally Posted by Saladinos View Post
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.
I've noticed this quite often too. Sometimes the I realize I need to enclose something in brackets after it's been typed, so I put the end bracket first since i'm already at the end, then go to the beginning, and magically that extraneous bracket appears. Ah well, it's clearly a very simple logic error that would take all of five seconds to fix, they just have to do it...
ConCat is offline   0 Reply With Quote

Reply
MacRumors Forums > News and Article Discussion > Mac Blog Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
Xcode 5 Developer Preview 6 showing up on IOS Dev Site, Released 08/21/2013! kevpan815 iPhone/iPad Programming 4 Aug 23, 2013 12:54 AM
Where to download Xcode 3.1.4 since Apple's Developer Center is down?? Kusi Mac Applications and Mac App Store 1 Jul 24, 2013 06:15 AM
Developer Preview and final App Store version Der Kommandant OS X Mavericks (10.9) 6 Jun 15, 2013 01:50 AM
Resolved: Developer tools without Xcode? beautifulcoder Mac Programming 23 Jun 9, 2013 07:39 PM

Forum Jump

All times are GMT -5. The time now is 10:00 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC