Rename a class in Xcode: Refactor… is grayed out (disabled). Why?

后端 未结 10 1452
清歌不尽
清歌不尽 2020-12-13 23:00

Why is Refactor... grayed out (disabled) in Xcode?

I\'d like to rename a class.

10条回答
  •  温柔的废话
    2020-12-13 23:41

    For me I realized Refactor was disabled because the Xcode project I had opened was referencing a Base SDK that was missing. Edit Project Settings and in the Build tab set the Base SDK to one that you have (like for me this was iOS 4.2). This enabled Refactor for me.

提交回复
热议问题