Xcode 8与较旧的Base SDK [英] Xcode 8 with older Base SDK

查看:187
本文介绍了Xcode 8与较旧的Base SDK的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遇到了一些我在项目中使用的外部框架的兼容性问题。有没有办法在Xcode 8上更改Base SDK?目前在项目设置中只显示最新的SDK。

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.

我已经尝试将旧版SDK从另一个版本的Xcode复制到此处,但它不起作用:

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 /

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


推荐答案

从Xcode 7.3开始,除了在SDK中复制外,还必须编辑某个Info.plist文件,如此处所述的agx 中的macOS 。它看起来像iOS的类似文件,

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

尝试将10.0中的 MinimumSDKVersion 的值更改为你想要的任何SDK版本。

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

我没试过iOS,但是,使用这个解决方法,我只能使用Xcode使用macOS 10.6构建macOS目标8.0(8A218a)(GM)。

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").

更新

上面描述的hack在Xcode 9中停止了为我工作。如果你想使用Xcode 9+,请参阅我最近在2017年11月22日的回答。

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.

这篇关于Xcode 8与较旧的Base SDK的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆