Skip to content

Commit

Permalink
doc(README): Add doc to integrate AnnotationInject with Xcode+SPM (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
pjechris committed Feb 12, 2024
1 parent c45e882 commit 171b250
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Expand Up @@ -98,6 +98,16 @@ Then add a `Build phases` to your project:
swift run annotationinject-cli --sources <path to your sources> --output <path to output generated code> (--args imports=<MyLib1> -args imports=<MyLib2>>)
```

- Swift Package Manager (Xcode)

Add AnnotationInject as dependency in Xcode then add this `Build phase` to your project:

```shell
SPM_CHECKOUT_DIR=${BUILD_DIR%Build/*}SourcePackages/checkouts/AnnotationInject
cd $SPM_CHECKOUT_DIR
/usr/bin/xcrun --sdk macosx swift run annotationinject-cli ...
```

- CocoaPods

Add `pod AnnotationInject` to your `Podfile` and a new `Build phases` to your project:
Expand Down

0 comments on commit 171b250

Please sign in to comment.