2/13/2023 0 Comments Xcode for mac lion![]() See this stackexchange question for more details. Network time sync may be re-enabled after install. Installing these may require disabling network time sync and setting the date to before installing. (*) These Xcode versions were released before and may cause an "An unknown installation error" during installation, which is due to an expired certificate. Xcode 10.3 on macOS 10.14 (Mojave), please see note on linking below.Xcode 9.4.1 on macOS 10.13 (High Sierra), please see note on linking below.Xcode 8.3.3 on macOS 10.12 (Sierra), please see note on linking below.Xcode 8.2.1 (**) also runs on OS X 10.11, but can only compile for macOS 10.12. Xcode 7.3.1 on OS X 10.11 (El Capitan), please see note on linking below.Xcode 5.1.1 on OS X 10.8 (Mountain Lion).Xcode 3.2.6 on Mac OS X 10.6 (Snow Leopard) - Xcode 4.0.2, Xcode 4.1 and Xcode 4.2 also run on Snow Leopard, but are only available to pay members (*).Here are the latest versions of Xcode that are known to /run/ on each OS X version (the links work if you sign in to Apple Developer first): PowerPC architectures (ppc, ppc7400, ppc970, ppc64) cannot be linked for OS X 10.7 or newer (they would be useless anyway, since PowerPC CPUs were only supported up to 10.5). ![]() The script also fixes the Mac OS X 10.4 SDK so that it works with GCC 4.2 and LLVM GCC 4.2, and later compilers (officially, it only supports GCC 4.0). GCC 4.0, GCC 4.2 and LLVM GCC 4.2 cannot compile for OS X 10.10 or newer. ![]() Links to the compilers are installed in /usr/bin (or /usr/local/bin on OS X 10.11 El Capitan and later): gcc-4.0 g -4.0 gcc-4.2 g -4.2 llvm-cpp-4.2 llvm-g -4.2 llvm-gcc-4.2. The dsymutil utility provided with Xcode 7 and later does not work on PPC binaries, so if the GenerateDSYMFile phase fails, just pass the additional option DEBUG_INFORMATION_FORMAT=dwarf to xcodebuild. Valid archs are ppc, ppc7400 (PowerPC G4, minimum CPU requirement to run 10.5), ppc7450, ppc970 (PowerPC G5 32-bit), ppc64, i386, x86_64 (minimum CPU requirement to run 10.7). You can use GCC 4.2 or LLVM GCC 4.2 with the 10.4 SDK by passing the CC and CXX options too, as in GCC_VERSION=4.0 CC=gcc-4.2 CXX=g -4.2. Useful values for GCC_VERSION are 4.0, 4.2, 42, .clang.1_0. Xcodebuild MACOSX_DEPLOYMENT_TARGET=10.6 SDKROOT=macosx10.6 GCC_VERSION=4.2 CLANG_CXX_LIBRARY=libstdc \ 10.5) and also set SDKROOT to the location of the SDK - these should be redundant with the -mmacosx-version-min and -isysroot compiler options, but older compilers do not seem to pass this option to the linker. set the environment variable MACOSX_DEPLOYMENT_TARGET to the proper value (e.g.compile and link with the options -mmacosx-version-min=10.5 -isysroot /Developer/SDKs/MacOSX10.5.sdk.To use any of the older SDKs, you should: -path=path : install to custom Xcode at 'path'. ![]() -osx107 : only install Mac OSX 10.7 SDK.-osx106 : only install Mac OSX 10.6 SDK.-osx105 : only install Mac OSX 10.5 SDK.-osx104 : only install Mac OSX 10.4 SDK.-compilers : only install the gcc and llvm-gcc compilers, as well as the corresponding Xcode plugins.Optionally, one of the following options can be passed as the first argument to XcodeLegacy.sh, to limit its operation: Please check the script contents before executing it. With the "install" or "uninstall" arguments, the script uses sudo to become root, and will thus ask for your password. The script takes one argument, which can be "buildpackages" (to extract components from the legacy Xcode downloads to the current directory), "install" (to install the components in Xcode 4-10), "cleanpackages" (to delete the extracted components from the current directory), "uninstall" (to uninstall the components from Xcode 4-10). Open a Terminal application, change to the directory where XcodeLegacy.sh, and make it executable, as in:Įxecute the script by typing. However, if you want to enhance the XcodeLegacy script to also include those components, I'll gladly integrate your modifications. Note: There may be similar tips to compile for older iOS (not Mac OS X) versions, but I don't develop for iOS. The script also fixes a few known bugs in the 10.4, 10.5 and 10.6 SDK. GCC 4.0, GCC 4.2 and LLVM GCC 4.2 Xcode plugins.GCC 4.0, GCC 4.2 and LLVM GCC 4.2 compilers.I made the script XcodeLegacy.sh to extract these components (the links work if you sign in to Apple Developer first) from Many components were removed in recent versions of Xcode, the most notable being the Mac OS X 10.6 SDK, which is required to build software using the Carbon API (such as wxWidgets 2.8). Legacy components for Xcode 4-12 (deprecated compilers and Mac OS X SDKs).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |