@@ -7,23 +7,22 @@ tags: xcode swift package manager server side
77<p >
88 <img src =" https://img.shields.io/badge/swift-4-blue.svg " />
99 <img src =" https://img.shields.io/badge/os-macOS-green.svg?style=flat " />
10+ <img src =" https://img.shields.io/homebrew/v/cake.svg " />
1011</p >
1112
12- Use Swift packages directly from within Xcode,
13+ Use
14+ [ Swift Package Manager] ( https://swift.org/package-manager/ ) ,
15+ packages directly from within Xcode,
1316w/o having to jump to the Terminal.
1417With swift builds, in a non-annoying way.
15- Build large dependencies once, not for every project.
18+ Build large dependencies once, notagain and again for every project.
1619Do not require an Internet connection just to create a new project.
1720
21+
1822##Goals
1923
2024###1. Use Swift Package Manager directly from within Xcode
2125
22- Goal (duration: a few seconds):
23- 1 . Create a project from within Xcode. (Cmd-Shift-N, follow wizard)
24- 2 . Build and run. Works.
25- You need to add a package? Just edit` Package.swift ` and build.
26-
2726State of the art (duration: some minutes or more):
28271 . Open terminal.
29282 . Call` mkdir MyProject ` . Do a` cd MyProject ` .
@@ -33,13 +32,18 @@ State of the art (duration: some minutes or more):
33326 . Build and Run.
3433You need to add a package? Start again at step 4, sometimes 3.
3534
35+ Goal (duration: a few seconds):
36+ 1 . Create a project from within Xcode. (Cmd-Shift-N, follow wizard)
37+ 2 . Build and run. Works.
38+ You need to add a package? Just edit` Package.swift ` and build.
39+
3640###2. Reduce Compile Time
3741
38- Calling` swift build ` as a toolis somewhat expensive .
42+ Calling` swift build ` as a tooltakes some second(s) .
3943
4044Goal:
4145Instead of doing calling` swift build ` on every build,
42- do a` swift build ` onlyif the` Package.swift ` changes .
46+ do a` swift build ` onlywhen the` Package.swift ` file is changed .
4347Produces a static library (pretty big, bundles up all the packages),
4448which is directly linked against the Xcode target.
4549