Skip to content

Commit 8749050

Browse files
authored
Merge pull request #35 from cybozu/update-readme
Update README Installation
2 parents 0828b88 + bd5415b commit 8749050

5 files changed

+38
-10
lines changed

README.md

+38-10
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ Generate a list of licenses for the Swift Package libraries that your app depend
1919

2020
## Requirements
2121

22+
- Development with Xcode 15.2+
2223
- Written in Swift 5.9
2324
- Compatible with iOS 14.0+
24-
- Development with Xcode 15.2+
2525

2626
## Privacy Manifest
2727

@@ -31,15 +31,43 @@ This library does not collect or track user information, so it does not include
3131

3232
LicenseList is available through [Swift Package Manager](https://github.com/apple/swift-package-manager/).
3333

34-
1. Integrate LicenseList in your project
35-
- File > Add Packages...
36-
- Search `https://github.com/cybozu/LicenseList.git`
37-
- Choose `LicenseList` product and add it to your application target
38-
<img src="./Screenshots/installation-1.png" width="600px" />
39-
2. Link LicenseList in your application target
40-
- Application Target > `General` > `Frameworks, Libraries, and Embedded Content` > `+`
41-
- Choose `LicenseList`
42-
<img src="./Screenshots/installation-2.png" width="500px" />
34+
**Xcode**
35+
36+
1. File > Add Package Dependencies…
37+
2. Search `https://github.com/cybozu/LicenseList.git`.
38+
<img src="Screenshots/add-package-dependencies.png" width="800px">
39+
3. Add package and link `LicenseList` to your application target.
40+
<img src="Screenshots/add-package.png" width="600px">
41+
42+
**CLI**
43+
44+
1. Create `Package.swift` that describes dependencies.
45+
```swift
46+
// swift-tools-version: 5.9
47+
import PackageDescription
48+
49+
let package = Package(
50+
name: "SomeProduct",
51+
products: [
52+
.library(name: "SomeProduct", targets: ["SomeProduct"])
53+
],
54+
dependencies: [
55+
.package(url: "https://github.com/cybozu/LicenseList.git", exact: "0.7.0")
56+
],
57+
targets: [
58+
.target(
59+
name: "SomeProduct",
60+
dependencies: [
61+
.product(name: "LicenseList", package: "LicenseList")
62+
]
63+
)
64+
]
65+
)
66+
```
67+
2. Run the following command in Terminal.
68+
```sh
69+
$ swift package resolve
70+
```
4371

4472
## Usage
4573

138 KB
Loading

Screenshots/add-package.png

64.3 KB
Loading

Screenshots/installation-1.png

-349 KB
Binary file not shown.

Screenshots/installation-2.png

-25.2 KB
Binary file not shown.

0 commit comments

Comments
 (0)