Skip to content

Commit ba845ee

Browse files
authored
Update Readme to account for Package.swift format (#339)
Adding the product dependency to the target by name only produces an error in Xcode 12.4. Instead, the product dependency should be given as a `.product`. Updated the README with the new format, so that new user's won't stumble over this.
1 parent 2bacb97 commit ba845ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Add the following entry in your <code>Package.swift</code> to start using <code>
2424
```
2525
and `AsyncHTTPClient` dependency to your target:
2626
```swift
27-
.target(name: "MyApp", dependencies: ["AsyncHTTPClient"]),
27+
.target(name: "MyApp", dependencies: [.product(name: "AsyncHTTPClient", package: "async-http-client")]),
2828
```
2929

3030
#### Request-Response API

0 commit comments

Comments
 (0)