简体   繁体   English

Xcode 9-修复Scope全部变灰

[英]Xcode 9 - Fix all in Scope greyed out

With Xcode 8 the errors could be fixed using the "Fix all in Scope", but in the latest Xcode 9 that option is always greyed out. 使用Xcode 8,可以使用“在范围内全部修复”来修复错误,但是在最新的Xcode 9中,该选项始终显示为灰色。 Do you have an idea if I have to set up something or if it's just a bug? 您是否知道我是否必须设置某些东西还是仅仅是一个错误?

错误代码

Xcode菜单

The Xcode I'm using is the App Store version, build number 9A235, so it's not a beta. 我使用的Xcode是App Store版本,内部版本号9A235,因此它不是beta。

Usually it helps to clean "derived data", the project and to restart your mac. 通常,它有助于清除“派生数据”,项目并重新启动Mac。 Feels like Windows but I have good experiences with this kind of bugs. 感觉像Windows,但是我对这种错误有很好的经验。

Navigate to the deived data folder in Finder. 导航到Finder中的派生数据文件夹。 For this open tab Locations in XCode Settings where you will find a link. 对于此打开的选项卡,您将在XCode设置中找到位置链接。 Delete all data within derived data folder. 删除派生数据文件夹中的所有数据。 (No worry - it will be restored by XCode) (不用担心-XCode将还原它)

look for and select the page you have error and there is the word fix 查找并选择您有错误的页面,并且有单词fix 在此处输入图片说明

and go Editor >>>> Fix All Issues 然后去编辑器 >>>>解决所有问题

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM