Xcode: How do I make Xcode4.2 run on OS X Mountain Lion? - xcode

I recently upgraded from Lion to Mountain Lion and my Xcode4.2 stopped working. It complains about it's not for Mountain Lion. I also installed Xcode4.4. But I have an important project that works under Xcode4.2 but had issues with Xcode4.4.
Is there a way to make Xcode4.2 work under Mountain Lion???
I didn't find a version for Mountain Lion on Apple Developer website...

The reason you can't find Xcode 4.2 for Mountain Lion is that there is no such version. In the past, people have used tricks to get older versions of Xcode to run on newer OSs—but, much like the tricks people have used to run older SDKs in newer versions of Xcode, etc., Apple has intentionally or accidentally broken every one of them.
It really isn't worth fighting them on this. If you can get your code working in 4.4, do so. If you can't, keep a Lion machine (or virtual machine) around to build it with.

Xcode 4.2 isn't supported on Mountain Lion. In fact, it's pretty old at this point, and it's not getting any younger. You're going to have to update your project to work with newer versions of Xcode at some point anyway -- why not take the time to do it now? Xcode 4.4 will let you deploy to systems going all the way back to 10.4.

Related

How to install Xcode 4 on Mac OS X Mavericks

I can't install Xcode 4. I have some files that I need to open in Xcode 4. However, when I try to install it, it says "Xcode Install Assistant cannot be installed on this disk. The version of OS X is too new." How can I make it think I'm on Lion or Mountain Lion?
Here is a picture:
Download it in the App Store - it's the newest version and looks like the disc you have doesn't support Mavericks.
I feel tired of these preposterous answers. I think that if you want to stick to an older version of something, you should be able to. Also, I don't think software like XCode 4 are that old anyway.
But, to the point: I think XCode 4.6.3 is compatible with Mavericks. I am not sure about previous 4.6.X, but I think none of them work.
Any versions prior would require a previous operating system. I think you could try using pacifist to install the version you want, but I haven't found any guides.
If your problem is with project compatibility, in XCode 5 there is an option to save the project in a way it is compatible with XCode 4.6, and I suppose 4.6 offers a similar option to save in a version prior. Of course, you may need to adapt the code of the projects accordingly. Usually I try to stick with the Snow-Leopard-compatible code, because it compiles fine in all XCode 4.X and 5.X versions.
You can download any of these from the developer website.
I would try partitioning the disk and installing an older Mac OS X. I work with Snow Leopard and Mavericks in the same Mac. I usually do interface tasks in SL and the rest on Mavericks. The other advantage is that I have both XCode 4.2 and 3.2.6 in the same machine, so I can manage some backwards compatibility. =D

Can github boxen run in mac os 10.7 (Lion)

I am trying github.com's boxen tool in my mac os (10.7.5). However, every time I try to run the project template: https://github.com/boxen/our-boxen, it complains this:
--> You must be running OS X 10.8 (Mountain Lion).
Does that mean boxen tool can only run in Mountain Lion ?
The fact that it's throwing an explicit error means somebody took the time to put it in place for anyone running it on OS's older than Mountain Lion.
There's very likely to be some symbols / API's in the source that are 10.8 only. If you can find those API's and modify those methods to work on older OS's, then you'll have a 10.7 compatible version of Boxen and feel free to contribute your changes back to the community. Be a part of the magic of open source software!

Getting Matlab's mex to work with xcode 4.4 on Mountain Lion

I recently bought a new computer that came with Mountain Lion (OS 10.8). I'd like to start working with mex files on this machine, but I'm having a hard time getting 'mex -setup' to find any compilers.
Specs:
Mountain Lion 10.8
Matlab 2012a
XCode 4.4
I noticed that matlab has released a patch for XCode 4.2, and 4.3. I also realize that XCode 4.4 (and Mountain lion, for that matter) is not officially supported by Matlab. As far as I can tell, there is not a way to install 4.3 on Mountain Lion. So I know it is a long shot to ask the community, but has anyone found a way to get XCode 4.4 to work with Matlab's mex functionality?
Thanks, David
I have the same specs as you mentioned and I reproduced your situation. However, I found a working solution from the Mathworks. It was designed for XCode 4.2 and 4.3, yet it works for XCode 4.4. The fix is simple and involves only running a patch from the Matlab command line.
All information can be found this bug report in the MathWorks support forum.
I had changed 10.7 to 10.8 in each *opt.sh offical patch file from MathWorks, and it works just fine with Mac OS X 10.8, Xcode 4.5, matlab 2012a.
This may not be the answer you want, but you could always use xcode to install a supported version of gcc, and then have Matlab use that...
(Blog post on compiling gcc for Mac)

Xcode 4.3.1 on Mac 10.6.8

I work on Mac 10.6 because I don't want to lose spaces to Lion. It's an extremely efficient part of my workflow. And I program for the iPad and need to write for iOS 5.1 and the new retina display, but for some reason apple has made the new Xcode only available for Mac 10.7 or later.
How can I either install the new Xcode, find a workable Xcode, or somehow install iOS 5.1 support into my current Xcode? (4.0.1)
You can not do that without cheat with Apple, you need to stay up to date !
It is not possible, you have to upgrade. Xcode 4.3 is coded with innovations that will only work on OS X Lion.
The cap was Xcode 4.2 that ran on SL. You will have to upgrade or continue only developing for older, legacy iOS versions (not a good option).

How to uninstall xcode3 from Lion 10.7?

I have just bought a macbook air 11" with Lion 10.7. I installed xcode 3.2.5 on it. But its not working. Xcode is installed, consuming much space but I cannot see it in applications. Somewhere I heard that xcode 3 will not work on Lion 10.7, only xcode 4 is compatible on this os. Is it really true? I tried removing xcode 3 but efforts go worthless. What should I do to uninstall it?
For Xcode, you want to use scripts provided with Xcode to remove it completely. Open a terminal window and invoke /Developer/Library/uninstall-devtools. Alternatively, you can just drag the Developer folder to the trash, but I don't think that removes everything that gets installed by the installer.
And no, Xcode3.2 won't work (entirely right) under Lion. You need Xcode4, v4.2 being the most recent with the iOS5 SDK. And if you want to submit anything to Apple, you'll need 4.2 (i.e. the latest released tools) anyway, at this point.
I would use this utility. It's always worked better than the traditional way to "unistall" applications form OSX
http://appzapper.com/
The reviews have always been good for this app.

Resources