Xcode 3.2 Daily Tip: Upgrading Xcode
For those about to code, we salute you. Developers: are you ready to upgrade your new Snow Leopard install to Xcode 3.2? The Xcode installer package appears in your Snow Leopard disc's Optional Installs folder. Double-click the mpkg file to open the installer and begin the installation process.
Xcode 3.2 offers a number of really great new features, several of which will be highlighted in upcoming daily tips. Standouts include the new built-in static code analysis, the two new LLVM compiler front ends (GCC 4.2 and Clang), and the new Build Results window.
Until you install, you may run into problems using the standard C compiler from the command line. (It threw errors about not finding <stdio.h>, etc.) This despite the fact that I had already re-installed the iPhone SDK.
Once I upgraded to the new Xcode, and rebooted, the command line cc started working again. The reboot step seemed necessary because cc didn't work until I did so. There might have been a less extreme alternative I'm not aware of to use instead. (If you know of one, please let me know in the comments!)
You'll need to re-install your iPhone SDK packages as well. Make sure you download the SDK versions that were built specifically for Snow Leopard. The iPhone Dev Center provides both Leopard and Snow Leopard SDKs for each of its standard and beta distributions. Install these packages after upgrading to Xcode 3.2. I did not and ran into trouble with project creation (as well as the already mentioned command line cc) until I finally got the install order corrected.
Update: Remember, the iPhone SDK packages do not include Xcode 3.2, so just downloading the iPhone SDK for Snow Leopard will not upgrade Xcode.
Thanks go to hatfinch for his help.
Share
Source: http://developer.apple.com/
For those about to code, we salute you. Developers: are you ready to upgrade your new Snow Leopard install to Xcode 3.2? The Xcode...
Add a Comment
Maybe CC does not work before reboot beacuse macosx lacks ldconfig (thus is not needed because the system uses a different approach on installing using and removing apps than other unixes) on reboot the shared library cache flushes and there you have it the new libdeps just come up on reboot. it's just a humble guess ;) but could explain your problems with CC before reboot.
I performed the upgrade as directed, but I'm able to consistently lock up Xcode while running iPhone unit tests.
Easy for me to reproduce, start a new iPhone project, follow the steps in the developer guide to add a new unit test, build, hang...
Anyone else have this happening to them?
Ta.
Steve Porter
I currently have the iPhone SDK 3.0 installed in /Developer and the iPhone SDK 3.1 Beta 2 in /DeveloperBETA ... (The way I understood it was you had to install them separately to still build and submit iPhone applications with 3.0)
Does this mean I will need to install Xcode 3.2 twice, (once in /Developer and once in /DeveloperBETA) and then re-download and install the 3.0 and 3.1b2 Snow Leopard iPhone SDKs in their appropriate folders?
Is SL smart enough to detect that an existing SDK? I'm trying iPhone dev out, and I'm not sure if I have to remove the old stuff.
September 03 2009 at 10:43 PM Report abuse Permalink rate up rate down ReplyHey!
I'm downloading "iPhone SDK 3.0 leopard 9m2736 final" right now.
ca I use this iPhone SDK with Xcode 3.2 on SnowLeopard?? I have a slow connection and I don't want to waste my time downloading something that doesn't work on SL ...
thanx.
Then stop your download now and get the Snow Leopard version. There is a Leopard and a Snow Leopard iPhone SDK. Make sure you get the Snow Leopard one.
September 03 2009 at 7:55 PM Report abuse Permalink rate up rate down ReplyAlso, you must install XCode from your Snow Leopard disk before the iPhone SDK will work. It doesn't include an install for XCode yet.
September 03 2009 at 10:42 PM Report abuse Permalink rate up rate down ReplyXcode is shaping up quite nicely. Hopefully as clang matures they fully integrate that into Xcode to provide live feedback about syntax errors and the like while typing. The static analyzer is a busy programmers dream come true.
GCD + OpenCL + Xcode 3.x + clang + LLVM = mac developer heaven?
Agreed, I am totally hyped about the possibilities for smooth IDE integration with Clang and LLVM. Real-time feedback is just one of them, and will bring Xcode that much closer to matching all the good things about Eclipse, while (hopefully) continuing to dodge or amend the bad parts. (Xcode already does predictive compiling, but GCC was never designed for providing live error and warning feedback, and is GPL'd to boot, so it has been near impossible for Xcode to display before compiling.) There are still features from other leading IDEs that I'd like to see, but the pool of those is rapidly diminishing.
September 03 2009 at 11:50 PM Report abuse Permalink rate up rate down ReplyHot Apps on TUAW
Deals of the Day
more deals- Altec Lansing Octiv Duo iDock for $48 + free shipping
- Used Apple iMac 17" Core 2 Duo 1.83GHz for $430 + $28 s&h
- Lounge Deluxe Stand for iPhone / iPod touch for $28 + $8 s&h
- Brookstone Surround-Sound Earbuds for $14 + $7 s&h
- Refurbished Skullcandy Tokidoki Smokin' Buds Mic'd Headset for $5 + $2 s&h
- Stitchway Backup Battery for iPod / iPhone for $5 + free shipping
Software Updates
more updates- EFI Firmware Update brings Lion Internet Recovery to 2010-model Macs
- OS X Lion 10.7.3 released with Safari 5.1.3, Wi-Fi bug fix
- Aperture updated to 3.2.2, addresses Photo Stream issue
- Apple updates Keynote to address Lion issues
- Google Search app gets new look on iPad
- Apple releases Apple TV Software Update 4.4.3



13 Comments