![]() 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.
0 Comments
Leave a Reply. |