Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can you use XCode6.3 with IOS7.1 SDK

Is it possible to use XCode6 beta with an IOS 7.1 SDK? The new tools are much nicer but I need to build for IOS7

like image 913
Jeef Avatar asked Jun 04 '14 12:06

Jeef


3 Answers

Yes. 1. First download 7.1 SDK - XCode6Beta > Preferences > Downloads > iOS 7.1 Simulator.

Note: XCode6-Beta can co-exist with regular XCode (XCode 5.x). But when you download iOS 7.1 Simulator, it actually gets downloaded into XCode 5's path!! (probably a bug).

  1. Open XCode5's SDKs folder.. /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs
  2. Open XCode6-beta's SDKs folder..
    /Applications/Xcode6-Beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs
  3. Copy iPhoneOS7.1.sdk from XCode5's to XCode6-Beta's SDK folder.
  4. Restart XCode6-beta

Now if you go to Project's Build Settings, Base SDK, you will see 7.1 along with 8.0.

Enjoy!enter image description here

like image 74
Raja Rao Avatar answered Oct 23 '22 05:10

Raja Rao


I'm using XCode6 and SDK version 8 regularly now, but I had to compile an app with version 7 of SDK, because version 8 was causing a lot of problems on devices with iOS8 installed, while in devices with iOS7 installed everything was running fine.. (!!)

I then:

  • went to XCode Downloads
  • browsed through some pages in order to get the latest XCode 5 version and downloaded it
  • opened the DMG with Image Mounter
  • rightclicked XCode icon and selected "Show package contents"
  • browsed Finder through Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/
  • copied iPhoneOS7.sdk and pasted it to /Applications/XCode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/
  • restart XCode
  • now you can select SDK 7.1 as the one to use in your project

this has immediately solved all of my issues with the app

like image 3
Fabio Napodano Avatar answered Oct 23 '22 04:10

Fabio Napodano


From the command line, you can copy the 7.1 SDK from the current Xcode distribution to the Xcode 6 Beta distribution like this:

cp -r /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk /Applications/Xcode6-Beta5.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/

The example above will recursively copy the contents of the iPhoneOS7.1.sdk folder to the appropriate destination for Xcode6-Beta5 . Copying the SDK to Xcode6-Beta6 would require adjusting the command line to point to the Xcode6-Beta6.app folder.

like image 1
Mark Semsel Avatar answered Oct 23 '22 05:10

Mark Semsel