Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode 8 with older Base SDK

Tags:

ios

xcode8

I'm running into compatibility issues for some external frameworks I'm using in my project. Is there a way to change the Base SDK on Xcode 8? Currently in the project settings only show me the Latest SDK.

I've tried copying the older SDK from another version of Xcode to here but it didn't work:

/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/

like image 886
tonik12 Avatar asked Jun 15 '16 14:06

tonik12


People also ask

How do I change base SDK in Xcode?

Several years ago developers were allowed to manually choose a Base SDK to compile their apps against but Apple has removed this feature. All modern versions of Xcode come with an SDK pre-installed that developers cannot easily change nor should you.

Does iOS SDK come with Xcode?

Xcode 14. This version of Xcode: Includes SDKs for iOS 16, iPadOS 16, macOS 12.3, tvOS 16, and watchOS 9.

How do I check my Xcode SDK version?

To find out the version number of each framework, navigate to the . framework file, locate and open the Info. plist file. If you are using an IDE (Integrated Development Environment), such as Xcode, look for the value for the key Bundle versions string.


1 Answers

Starting with Xcode 7.3, in addition to copying in the SDK, you must also edit a certain Info.plist file, as described here for macOS in the post by agx. It looks like there is a similar file for iOS, at

Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Info.plist 

Try changing the value of MinimumSDKVersion in there from 10.0 to whatever SDK version you want.

I've not tried this with iOS, but, using this workaround, I was just able to build a macOS target with macOS 10.6 using Xcode 8.0 (8A218a) (the "GM").

UPDATE

The hack described above stopped working for me in Xcode 9. If you want to use Xcode 9+, see my more recent answer dated Nov 22, 2017.

like image 133
Jerry Krinock Avatar answered Sep 26 '22 06:09

Jerry Krinock