How do you duplicate a file in XCode?

前端 未结 7 1197
名媛妹妹
名媛妹妹 2021-02-05 00:18

Anyone know a good solution?

So far I have not found a better way than using File>New file and then copying contents from old file to new.

You can probably dupli

7条回答
  •  一向
    一向 (楼主)
    2021-02-05 00:43

    Careful! When you use duplicate ( CMD + Shift + S ) - Xcode have a problem with indexing headers. Also when u want to make a refactoring it can be next error window:

    So there a couple of ways what to do, to fix that.

    1. Delete derived data from menu Window > Projects. Restart Xcode.
    2. Product > Clean

提交回复
热议问题