From 171b250e51fc7b1e7717fa3a80291b1be6d5c64c Mon Sep 17 00:00:00 2001 From: pjechris Date: Mon, 12 Feb 2024 10:37:25 +0100 Subject: [PATCH] doc(README): Add doc to integrate AnnotationInject with Xcode+SPM (#20) --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index ec40cf2..fb4767b 100644 --- a/README.md +++ b/README.md @@ -98,6 +98,16 @@ Then add a `Build phases` to your project: swift run annotationinject-cli --sources --output (--args imports= -args imports=>) ``` +- 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: