Xcode 9(测试版)重构:重命名已损坏 [英] Xcode 9 (beta) refactoring: Rename broken

查看:211
本文介绍了Xcode 9(测试版)重构:重命名已损坏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在XCode 9 beta中,没有任何重构工具对我有用.即使使用Beta创建的新项目也是如此(与测试项目一样,下面的屏幕截图).有什么作用?

None of the refactor tools are working for me in XCode 9 beta. This is true even for new projects created with the beta (as with the test project, screenshot below). What gives?

我发现几个

I've found several demonstrations on YouTube showing the Xcode 9 rename refactor, but when I control-click on, say, a function name, the four refactoring options are all grayed out, including "Rename…".

今天我安装了beta 2,希望可以解决此问题,但仍然:

Today I installed beta 2 in hopes that that would fix the issue, but still:

是否需要更改某些设置或某些内容才能启用重构?

如果没有,解决此问题的最佳方法是什么?

If not, what's the best way to troubleshoot this?

推荐答案

第一次打开项目时,我单击了变量名,然后单击了refactor >>重命名.但是,那时的旋转器永远都花了.我删除了派生数据,但这也不起作用.诀窍是构建项目.不确定对您来说是否一样.索引也需要完成,否则将需要很长时间.

For the first time I opened my project, I clicked on a variable name and hit refactor >> rename. But then the spinner on it took for ever. I deleted my derived data, but that didn't work either. What did the trick was building the project. Not sure if it's the same for you. Also the indexing needs to become completed, otherwise it would take forever.

这篇关于Xcode 9(测试版)重构:重命名已损坏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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