Installing
Binary form
Download latest release with prebuilt binary from release tab. Unzip the archive into desired destination and run
bin/sourceryCocoaPods
Add pod ‘Sourcery’ to your Podfile and run
pod update Sourcery. This will download latest release binary and will put it to your project’s CocoaPods path so you will run it with$PODS_ROOT/Sourcery/bin/sourceryBuilding from source
Download latest release source code from release tab or clone the repository an build Sourcery manually.
Building with Swift Package Manager
Run
swift build -c releasein the root folder. This will create a.build/releasefolder and will put binary there. Move the whole.build/releasefolder to your desired destination and run withpath_to_release_folder/sourceryNote
JS templates are not supported when building with SPM yet.
Building with Xcode
Open
Sourcery.xcworkspaceand build withSourcery-Releasescheme. This will createSourcery.appin the Derived Data folder. You can copy it to your desired destination and run withpath_to_sourcery_app/Sourcery.app/Contents/MacOS/Sourcery
View on GitHub
Installing Reference