Create groups vs Create folder reference in Xcode

前端 未结 3 1671
囚心锁ツ
囚心锁ツ 2020-12-14 17:36

I\'m curious when using Xcode.

I always need to choose an option when copying the open source class files I need for my project.

The options are \"Create gro

3条回答
  •  不思量自难忘°
    2020-12-14 18:34

    There are two types of any Xcode project structure organization:

    • filesystem project structure (inspectable with Finder.app)
    • IDE project structure (inspectable with Project Navigator in Xcode's navigator area.)

    Xcode relies on filesystem organization by keeping a reference to a "physical" file or folder. That is why you may have all the classes, images, plists, and other parts of your projects stored in the same folder, while the references to these parts are being kept organized into respective groups within Xcode project.

    When you create a group, it affects the organization of your project in Xcode. When you create a group with a reference folder, it creates both, a group in Xcode project and a folder in your filesystem.

    However, since Xcode 9 it seems like, Apple enforces filesystem project structure to correspond to Xcode project structure. It means, that you explicitly has to choose "New Group without Folder"

提交回复
热议问题