Skip to content

Commit

Permalink
Merge pull request #89 from Matejkob/update-readme
Browse files Browse the repository at this point in the history
Update installation instructions
  • Loading branch information
Matejkob authored Mar 5, 2024
2 parents f93c7ee + 416ba9c commit 76717f8
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -168,26 +168,25 @@ The latest documentation for this library is available [here](https://swiftpacka

## Installation

> Warning: Xcode beta 15.x command line tools are required.
### Integrating with Xcode Projects

**For Xcode project**
To incorporate Spyable into your Xcode project, add it as a package dependency:

If you are using Xcode beta 15.x command line tools, you can add
[swift-spyable](https://github.com/Matejkob/swift-spyable) macro to your project as a package.

> `https://github.com/Matejkob/swift-spyable`
```
https://github.com/Matejkob/swift-spyable
```

**For Swift Package Manager**
### Using with Swift Package Manager (SwiftPM)

In `Package.swift` add:
For projects utilizing Swift Package Manager, you can include Spyable by modifying your `Package.swift` file. Add the following to your `dependencies` array:

``` swift
```swift
dependencies: [
.package(url: "https://github.com/Matejkob/swift-spyable", from: "0.1.0")
.package(url: "https://github.com/Matejkob/swift-spyable", from: "0.3.0")
]
```

and then add the product to any target that needs access to the macro:
Next, to use Spyable in your project, append the product to the appropriate target(s) in your `Package.swift`:

```swift
.product(name: "Spyable", package: "swift-spyable"),
Expand Down

0 comments on commit 76717f8

Please sign in to comment.