Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>I tried to update this for the applified version of Xcode. This will show how to install Xcode 4.4.x with full gcc support.</p> <p>You need: Mac OSX Lion - this is important, don't try with Mountain Lion!</p> <p>You need: a copy of Xcode 4.1 for Lion. Download from Apple with your dev account. Don't install yet.</p> <p>Now install Xcode 4.4.x from Apple via Mac App Store.</p> <p>After this is done, you will have xcode 4.4.x in your applications directory.</p> <p>Depending on user rights, you will have to confirm many of the actions with your admin password. Just do so when necessary. If you damage your system, you are on your own (that should not happen though, as Xcode has been applified).</p> <p>Open Xcode 4.4.x via right mouse click and "Show Package Contents" and then navigate to the gcc 4.2 plugin here:</p> <p>/Applications/Xcode.app/Contents/PlugIns/Xcode3Core.ideplugin/Contents/SharedSupport/Developer/Library/Xcode/Plug-ins/GCC 4.2.xcplugin/Contents/Resources/</p> <p>Open the file gcc 4.2.xcspec with a text editor.</p> <p>Look at lines 41and 42. Make sure they look exactly as presented here (the values will be reversed in a fresh install).</p> <pre><code>ShowInCompilerSelectionPopup = YES; IsNoLongerSupported = NO; </code></pre> <p>Save and close.</p> <p>Install Xcode 4.1 for Lion.</p> <p>Now navigate to the developer directory at the root of your boot drive.</p> <p>Navigate to /Developer/Platforms/iPhoneOS.platform/Developer/usr/</p> <p>copy the usr directory with command-c</p> <p>switch back to xcode 4.4.x</p> <p>navigate to: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/</p> <p>paste the usr directory with command-v</p> <p>now lion will try to merge the two directories. Make sure to press "Keep Newer"</p> <p>Repeat with source: /Developer/Platforms/iPhoneSimulator.platform/Developer/usr And target: /Applications/Xcode.app/Contents/Developer/Platforms/usr</p> <p>Again, merge and "Keep Newer"</p> <p>Navigate to: /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk/usr/lib</p> <p>Now copy the gcc directory by selecting it and using command-c</p> <p>Navigate into the Xcode 4.4.x app: </p> <p>/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk/usr/lib</p> <p>Paste the gcc directory with command-v</p> <p>Repeat from /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk/usr/lib with 'info' directory target is again /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk/usr/lib</p> <p>Done. Launch xcode and chose GCC 4.2 in settings where necessary. You should delete the outdated "Developer" directory.</p> <p>Xcode should now also accept updates via Mac App Store again (this remains to be tested). I also did not download command line tools, but my guess is it will survive that too.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload