Skip to content

Commit 4c29a96

Browse files
authored
Add Instration in README
1 parent 702118b commit 4c29a96

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

README.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,28 @@ extension Example {
4040
)
4141
}
4242
```
43+
44+
## Instaration
45+
46+
### For Xcode
47+
48+
If you are using [GUI to set up Package Dependencies in Xcode](https://developer.apple.com/documentation/xcode/adding-package-dependencies-to-your-app), add the URL in Pacakge Dependencies.
49+
50+
```
51+
https://github.com/CuriositySoftware/swift-fatal-test-value
52+
```
53+
54+
### For Package.swift
55+
56+
If you are using Package.swift add:
57+
58+
```swift
59+
.package(url: "https://github.com/CuriositySoftware/swift-fatal-test-value/", from: "1.0.0")
60+
```
61+
62+
and then add the product to any target that needs access to the macro:
63+
64+
```swift
65+
.product(name: "FatalTestValue", package: "swift-fatal-test-value"),
66+
```
67+

0 commit comments

Comments
 (0)