1

Is there a way to have Swift packager download only the necessary source files and not the whole git?

For example, dependency on Alamofire, Xcode will show like this enter image description here

It just doesn't seem clear.

Is anyone else thinking the same as me?

I'm curious about the download mechanism of the Swift package manager.

Is this an intentional design?

king wang
  • 510
  • 2
  • 11
  • @jnpdx no. The `exclude` parameter means `The paths to source and resource files you don’t want to include in the target.` Like an `exclude: ["Info.plist"]` in `Alamofire` manifest file means exclude `Info.plist` in the `Path(Alamofire)/Source/Info.plist` – king wang Dec 31 '21 at 02:27
  • Look at the other answer, though: "This is not currently possible. SwiftPM does a clone of the git repo so it will get any of those files as well." – jnpdx Dec 31 '21 at 02:28
  • Oh, there seems to be no solution, I will close this question – king wang Dec 31 '21 at 02:36

0 Answers0