I assume XCode 3.2.2 is the latest version which can run on PPC OSX (10.5.8). Can it generate universal binaries which will work on Intel Macs too, even Mavericks?
I.e: platform: G4 OSX 10.5.8
XCode: 3.2.2.
Xcode 3.1.4 is the latest version that runs on 10.5. Xcode 3.1 can create universal binaries that run on Intel Macs.
Whether or not the binary you create in Xcode 3.1 runs in Mavericks depends on your code. Avoid using deprecated APIs, such as QuickDraw, and your binary should run on Mavericks.
Related
I get following error:
The version of Xcode installed on this Mac is not compatible with macOS Big Sur. Download the latest version for free from the App Store.
This is on a M1 Mac (ARM, Apple Silicon).
I was able to bypass the macOS denial-prompt, to run Xcode 11.7 on Big Sur (11.0.1) on my M1 MacBook Air, by running the executable directly from Terminal– for example:
/Applications/Xcode.app/Contents/MacOS/Xcode
I just needed to compile, archive, and export a specific app, and it at least worked for that.
I am currently on OSX 10.12.6 (Sierra) but i would like to build binaries for 10.8 (Mavericks).
I am building a console application using the clang compiler. I have installed the 10.8 SDK at a location my disk.
However I cannot figure out the right combination of flags and options to actually link against the 10.8 SDK rather than the 10.12 one. I have tried with the following CFLAGS set by to no avail: MACOSX_DEPLOYMENT_TARGET=10.8 --sysroot=/path/toMacOSX10.8.sdk/ but to no avail.
What must I do to compile for the SDK 10.8 ?
I use Xcode 7.2 on OS X 10.11.
However, I must build using older Xcode SDK (10.8) to support older platform.
I have a problem when I link to libpng installed using homebrew.
A bunch of warnings like following pop up:
Object file
(/usr/local/Cellar/libpng/1.6.21/lib/libpng.16.a(pngwutil.o)) was
built for newer OSX version (10.11) than being linked (10.8)
The problem would be obviously solved if I could force homebrew to compile recipe using older Xcode SDK (10.8) but haven't find a way to accomplish this.
Any suggestion is welcome.
I couldn't find anything in the search so here this goes:
I am looking to build an XCode Mac OS X app, and it is required to be compatible with XCode 2.5, which is for OS X 10.4. I have an OS X 10.11.3 with a XCode 7.3.1.
I tried downloading XCode 2.5 and installing it, but the setup said I needed to have OS X 10.4 to install. When running XCode 7.3.1 on the OS X 10.11.3, I can get the compiler settings to compile and run with the minimum deploy OS X version as 10.4, but I am not sure how to convert the project to XCode 2.5.
I was thinking about running VMWare or something, but I'm not really sure how to get a 10.4 Mac OS X image. Can someone help me figure out what I can do? Would I have to compile projects manually through an older version of compilers? Thanks guys!
You don't need Xcode 2.5 to build binaries for 10.4. What you need is:
The Mac OS X 10.4 SDK
A compatible compiler: GCC 4.0 is recommended, but GCC 4.2 works as well. Things get a bit more complicated if you need C++11 support as well.
A solution is to install the compilers and SDKs you need using the XcodeLegacy script. It extracts these from older Xcode distributions.
You should then be able to select the older Mac OS X SDK and compiler in the Xcode version you have installed. Read carefully the XcodeLegacy documentation.
To test the portability of a piece of code, I would like to install both Apple/LLVM 4.2 (based on LLVM 3.2svn, from XCode 4), and Apple/LLVM 5.0 (based on LLVM 3.3svn, from XCode 5) on the same machine, running Maverick (10.9). I do not need XCode itself, only the compiler suite. Is there a recommended way to install two different versions of Apple/LLVM?