Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd001a8e

Browse files
committed
Fixes
1 parent8dc1097 commitd001a8e

File tree

1 file changed

+13
-9
lines changed

1 file changed

+13
-9
lines changed

‎index.md‎

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,23 +7,22 @@ tags: xcode swift package manager server side
77
<p>
88
<imgsrc="https://img.shields.io/badge/swift-4-blue.svg" />
99
<imgsrc="https://img.shields.io/badge/os-macOS-green.svg?style=flat" />
10+
<imgsrc="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,
1316
w/o having to jump to the Terminal.
1417
With swift builds, in a non-annoying way.
15-
Build large dependencies once, not for every project.
18+
Build large dependencies once, notagain and againfor every project.
1619
Do 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-
2726
State of the art (duration: some minutes or more):
2827
1. Open terminal.
2928
2. Call`mkdir MyProject`. Do a`cd MyProject`.
@@ -33,13 +32,18 @@ State of the art (duration: some minutes or more):
3332
6. Build and Run.
3433
You 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

4044
Goal:
4145
Instead 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.
4347
Produces a static library (pretty big, bundles up all the packages),
4448
which is directly linked against the Xcode target.
4549

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp