Skip to content

Commit

Permalink
Corrected the instruction for adding a library via SwiftPM
Browse files Browse the repository at this point in the history
  • Loading branch information
jaroshevskii committed Mar 2, 2024
1 parent a1086eb commit f863141
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 21 deletions.
21 changes: 14 additions & 7 deletions README.ja.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,13 +76,20 @@ Xcode に Swift Packages を追加する詳細については、[Hacking with Sw

1. 依存関係として IceCreamSandwich を Package.swift ファイルに追加します:

```swift
dependencies: [
.package(url: "https://github.com/jaroshevskii/ice-cream-snadwich.git", from: "1.0.0"),
],
targets: [
.target(name: "YourTarget", dependencies: ["IceCreamSandwich"]),
]
```swift
let package = Package(
// name, platforms, products, など
dependencies: [
.package(url: "https://github.com/apple/swift-argument-parser", from: "1.0.0"),
],
targets: [
.target(
name: "YourTargetName",
dependencies: [
.product(name: "IceCreamSandwich", package: "swift-ice-cream-sandwich"),
]),
]
)
```

2. `swift build` を実行してパッケージを取得し、プロジェクトに統合する。
Expand Down
21 changes: 14 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,14 +72,21 @@ For more information on adding Swift Packages to Xcode, you can read the [Hackin
### Swift Package Manager

1. Add IceCreamSandwich to your Package.swift file as a dependency:

```swift
dependencies: [
.package(url: "https://github.com/jaroshevskii/ice-cream-snadwich.git", from: "1.0.0"),
],
targets: [
.target(name: "YourTarget", dependencies: ["IceCreamSandwich"]),
]
let package = Package(
// name, platforms, products, etc.
dependencies: [
.package(url: "https://github.com/apple/swift-argument-parser", from: "1.0.0"),
],
targets: [
.target(
name: "YourTargetName",
dependencies: [
.product(name: "IceCreamSandwich", package: "swift-ice-cream-sandwich"),
]),
]
)
```

2. Run `swift build` to fetch and integrate the package into your project.
Expand Down
21 changes: 14 additions & 7 deletions README.uk.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,19 @@ if integerSandwich.isIceCreamSandwich {
1. Додайте IceCreamSandwich до файлу Package.swift як залежність:

```swift
dependencies: [
.package(url: "https://github.com/jaroshevskii/ice-cream-snadwich.git", from: "1.0.0"),
],
targets: [
.target(name: "YourTarget", dependencies: ["IceCreamSandwich"]),
]
let package = Package(
// name, platforms, products і т.д.
dependencies: [
.package(url: "https://github.com/apple/swift-argument-parser", from: "1.0.0"),
],
targets: [
.target(
name: "YourTargetName",
dependencies: [
.product(name: "IceCreamSandwich", package: "swift-ice-cream-sandwich"),
]),
]
)
```

2. Запустіть `swift build`, щоб отримати та інтегрувати пакунок у ваш проект.
Expand All @@ -90,4 +97,4 @@ if integerSandwich.isIceCreamSandwich {

## Ліцензія

Випускається на умовах ліцензії [MIT](LICENSE.txt).
Випускається на умовах [MIT license](LICENSE.txt).

0 comments on commit f863141

Please sign in to comment.