Swift Package Manager creates an Xcode project while maintaining group structure

Is it possible to maintain a structured hierarchy of groups in Xcode when generating from the Quick Package Manager? Every time I run:

swift package generate-xcodeproj

I lose any group (not the folder that works great) that I had. I often like to have some level of visual organization that doesn't appear in code (i.e. Groups, not folders) when programming in Xcode.

+4
source share
1 answer

I believe that you want to organize your sources as follows (based on the following comment):

Foo/Package.swift Foo/Sources/Foo/Living.swift Foo/Sources/Foo/Specifies/Bird.swift Foo/Sources/Foo/Specifies/Fish.swift Foo/Sources/Foo/Specifies/Human.swift

, , , , Sources. , , , . . .

, Swift ( swift.org), Xcode , .

, , , , .

+2

Source: https://habr.com/ru/post/1656161/


All Articles