folder structure in xcode vs folder structure in finder

后端 未结 6 621
广开言路
广开言路 2021-02-01 05:59

I have the following folder structure in xcode for a project.

\"file

6条回答
  •  耶瑟儿~
    2021-02-01 06:43

    You can do this to some extent! There's just one extra step to do every time you create a new group (and this first time you'll have a lot of catching up to do!):

    • Xcode 3: Whenever you create a group in Xcode, immediately get info on it, and notice the "Path:" setting just below its name. Click "Choose..." and set it to a new folder with the same name.
    • Xcode 4: Whenever you create a group in Xcode, immediately select it and open the righthand sidebar. Notice the "Path:" setting just below its name. Click the icon next to "None" (what is that, a file in a window?) and set it to a new folder with the same name.

    Now, whenever you add files to the group, they'll head to the corresponding folder on disk. Woo!

    Hence, I always create folder in Finder and then add that in Xcode.

提交回复
热议问题