Why in Xcode, Groups can be created, but not real folders?

后端 未结 3 1477
悲&欢浪女
悲&欢浪女 2021-01-30 13:02

When doing iOS programming, it is interesting that in Xcode (4.3.2), we can create groups, such as a group call Images, and add files to it (either as a link or cho

3条回答
  •  再見小時候
    2021-01-30 13:52

    This is a pet peeve of mine.

    I recommend, making the folder in your file system, where you have your project files, then drag that folder into Xcode where you want the group. It will act like any other group, but now be linked to the folder on the file system. Adding files to that group in Xcode now adds them to the folder in the file system.

    Much cleaner way of working and helps when locating files in big projects. Keeps git cleaner too.

    Update for Xcode 9:

    Once you have the groups in Xcode matching the directory structure on disk, moving a file from one group to another in Xcode will now move the file correctly on disk to match.

提交回复
热议问题