Moving Files into a Real Folder in Xcode

前端 未结 12 1077
北恋
北恋 2020-12-02 03:20

When I started my project I was happy to use Groups in Xcode rather than literal folders: Since I\'m using the browser in Xcode to access everything, stuff was nicely organi

12条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-02 04:20

    Easiest technique for XCode 8....

    Assuming you have files A,B,C in a logical group, but want them moved into a folder on your hard drive.

    1. Create a destination folder via Finder
    2. Add the folder in XCode (File -> Add Files ) using the Options pane to select a Folder Reference (not a group)
    3. Drag files A,B,C from the (old) group to the (new) folder reference in the project navigator. XCode will move the files into the folder, both in the the project, and on disk.

    Done.

提交回复
热议问题