Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to install iOS 7 SDK on Xcode 6?

Tags:

xcode

ios7

xcode6

I have Xcode 6 installed but realise that I am only able to develop for iOS8. I am aware that this beta development kit is meant for the development of the iOS 8 beta release but I am in a position where I don't have the time yet to develop for it but wish to take advantage of some of Xcode's new features while I am developing for my current iOS 7 apps.

What can I do to get the iOS 7 SDK installed on xcode 6?

like image 803
Pavan Avatar asked Jun 04 '14 18:06

Pavan


People also ask

What is SDK in Xcode?

In general, a software development kit (SDK) consists of tools used for developing applications for a particular platform. An SDK includes an application programming interface (API), which serves as a link between software applications and the platform they run on.

What is Xcode and iOS SDK?

XCode is an IDE. iOS SDK (Software Development Kit) is a set of development tools (mostly in the form of libraries) that you use to create applications with. As mentioned by @VladTheImpaler you are probably trying to open an application written with the iOS4. 2 SDK in an environment that only has the iOS3.


2 Answers

Seems like if you symlink the relevant SDK from a previous installation of Xcode to the Xcode 6 Beta directory, Xcode 6 will be able to use it. Assuming you still have Xcode 5.1.1 on your machine, try the following in terminal:

ln -s /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk /Applications/Xcode6-Beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk 

This should link the iOS 7 SDK for iPhone (not sim), allowing you to select iOS 7 as the Base SDK in Xcode 6 Beta. If you want to do this for the simulator, replace iPhoneOS.platform with iPhoneSimulator.platform.

NOTE: Just because you have the iOS 7 SDK now doesn't mean it'll build. I'm personally having trouble with the fact that Xcode 6 Beta is using the Apple LLVM 6.0 compiler, which apparently isn't compatible with some of the stuff I'm trying to build.

ref: https://stackoverflow.com/a/11424966/2383003

like image 187
Ziewvater Avatar answered Oct 02 '22 07:10

Ziewvater


Just posting so that someone might find it useful: I wanted to debug my app in iPhone running iOS 7.1, in XCode 6.0.1. The previous iOS version was not being listed in the settings page, to choose as base SDK/deployment target. (I'm using OS X 10.10 Yosemite). I installed both XCode 6.0.1 and Xcode 5.0.1 and copied

/Application/XCode501.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk

to

/Application/XCode601.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/

Now I'm able to run iOS 7 apps from XCode 6.0.1.

like image 45
Joe M Avatar answered Oct 02 '22 06:10

Joe M