What does the dark triangle located on folder icons in Xcode 9 mean?

I am using Xcode 9.0. Some folder icons in my Xcode project have dark triangles in the lower left corner - for example, "0. Login", "Frameworks", "Products", "Pods". What does it mean?

Image with dark triangles on folder icons

+17
xcode xcode9
Aug 23 '17 at 8:41
source share
2 answers

Folders without dark triangles exist as a group in your project, and also (what's new in Xcode 9) exist as a folder in the file structure.

Example: After double-clicking in the project navigator, you can see the menu:

enter image description here

For a new Xcode group, create a group in the project navigator and create a folder in the file structure (in search mode) and in the course for a new group without a folder, create only a group.

enter image description here

+23
Aug 24 '17 at 17:40
source share

Introducing yellow folders with a triangle ( enter image description here ) in Xcode 9 is the same as an additional new feature that allows the Project Navigator team to communicate directly with the file system.

Yellow Xcode 9 folders with a triangle ( enter image description here ) is a group that is not associated with a file system directory. So Xcode 9 yellow folder-with-a-triangle Group ( enter image description here ) is the same as the plain yellow Xcode 8 group ( enter image description here ) ... since prior to Xcode 9, Project Navigator groups could not be explicitly linked to the file system directory.

In Xcode 9, file system directory associations can be explicitly added or removed from the Project Nagivator group using the File Inspector . The triangle will turn on or off to indicate whether a file system association exists for the group.

Click the File folder icon in the Add File System Contains Directory system for the group:

enter image description here

Click โ€œ Clear path โŠ— File Inspectorโ€ to remove the file system directory association from the group. Or click the folder icon to change the file system containing the directory association into a group:

enter image description here

In the context menu of Xcode> File> New or in Project Navigator, you can add groups in the following ways:

enter image description here

  • A new group: ( enter image description here ) creates an empty group and creates a linked โ€œcontainingโ€ file system directory.
  • New group without folders: ( enter image description here ) creates a new empty group without file system directory associations.
  • New group from the selection: ( enter image description here ) creates an empty group and creates the associated "containing" directory of the file system AND moves the selected items to the newly created "containing" directory in the file system.

In addition, with the new Xcode 9 features, dragging the file system directory into the project navigator will create groups ( enter image description here ) and subgroups ( enter image description here ), each of which is associated with the corresponding source directory of the file system.

enter image description here

Release Notes Xcode 9 notes that a group with an appropriate file system directory also has the following new features:

  • Dragging and dropping files between groups in Project Navigator moves files in the file system and updates any associated working copies of SCM.

  • When a group is connected to a folder in the file system, creating, renaming and deleting groups updates the corresponding files and folders in the file system.

0
Dec 26 '17 at 3:26
source share



All Articles