Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get 10.8 SDK and 5.1 compiler in Xcode 6

as from the title, I need to use the 10.8 SDK and the 5.1 (or 5.0) LLVM compiler with Xcode 6, in Mavericks. With the previous Xcode, it was possible to have both the SDKs, but now I see only the 10.9 one. How can I install the previous SDK and compiler in Xcode 6?

like image 715
Shalafi Avatar asked Sep 18 '14 13:09

Shalafi


People also ask

How to install Xcode for iOS SDK on Windows?

Follow the below steps so as to install Xcode on Windows 10, 8 or 8.1 and Windows 7 desktop or Laptop for iOS SDK. Step 1: Initially, download and install VMware or VirtualBox on your Windows computer from the above link. Step 2: Now, you need to download and install OSX Mavericks ISO as a virtual machine.

What version of Xcode does iOS 5 support?

Xcode 4.2adds features to support iOS 5 as well as other enhancements to the application. Xcode 4.3adds features to support iOS 5.0 and OS X v10.7, as well as other enhancements to the toolset. Xcode 4.3.1 and 4.3.2adds support for the updated iOS SDK 5.1.

What SDK do I need to build apps on Mac?

For building apps on Mac requires a SDK called Xcode. Xcode is an integrated development environment (IDE) that consists of set of software development tools which are designed by Apple specifically for developing software on Mac OS X and iOS.

What is the default compiler for iOS app development?

Default Compiler The default compiler for iOS development in Xcode 4.1 is LLVM-GCC 4.2. Compared with the GCC compiler that was the default in Xcode 4.0, LLVM-GCC provides better code generation and optimization than GCC, while being exactly source compatible with GCC 4.2.


2 Answers

It's probably not supported by Apple, but I've seen good results by copying the 10.8 SDK from the Xcode 5.1.1 DMG.

sudo cp -a /Volumes/Xcode/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk \
  /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs
like image 189
byronc Avatar answered Oct 27 '22 07:10

byronc


I tried different ways, and it seems that both @trojanfoe and @byronc are right. On the one hand, by targeting 10.8 with the 10.9 SDK, all the compiling stuff ends fine, so it seems to me the most correct way, using "official" Apple stuff. On the other, when I tried to copy and paste the 10.8 SDK from an old Xcode 5 installation to the Xcode 6 correct folder, the SDK showed up in my project, so this way seems functional too, even if I think it is not the most clear way.

like image 25
Shalafi Avatar answered Oct 27 '22 06:10

Shalafi