xcode 无法找到 sdk 'iphoneos11.2'

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/52512887/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 10:49:16  来源:igfitidea点击:

unable to find sdk 'iphoneos11.2'

iosxcodexcode10

提问by Yinper

IDE: Xcode10

IDE: Xcode10

OS: 10.13.6

操作系统:10.13.6

A compiler error

编译器错误

Showing Recent Messages Build system information error: unable to find sdk 'iphoneos11.2' (in target 'xxx')

显示最近的消息构建系统信息错误:无法找到 sdk 'iphoneos11.2'(在目标 'xxx' 中)

The project built on Xcode 9.4 / OS 10.13.4. Only after updating did the project build start failing.

该项目建立在 Xcode 9.4 / OS 10.13.4 上。只有在更新后,项目构建才开始失败。

Screenshot of error in Xcode

Xcode 中的错误截图

回答by Michael Sacks

Click on your target

点击你的目标

Click Build Settings

单击构建设置

Under the Base SDKrow, change the value to iOS(or whatever platform you are building for).

Base SDK行下,将值更改为iOS(或您正在构建的任何平台)。

Screenshot of Xcode Build Settings

Xcode 构建设置的屏幕截图

回答by SqlACID

I had this problem and fixed it by going to Build Settings, Basic; the Base SDK was set to "11.4 (SDK not found)" ; I changed it to iOS and that fixed it.

我遇到了这个问题并通过转到构建设置,基本来解决它;基础 SDK 设置为“11.4(未找到 SDK)”;我将其更改为 iOS 并修复了它。