Sourcery icon indicating copy to clipboard operation
Sourcery copied to clipboard

SPM Installation, Sourcery Pro clarification

Open Serafiniert opened this issue 1 year ago • 3 comments

Hey folks,

I am installing Sourcery via SPM, and wondered which boxes I should check. I am on Xcode using native Swift.

Sourcery Install Options

Also, I am curious about the difference between this package and Sourcery Pro.

Serafiniert avatar Jul 20 '23 15:07 Serafiniert

If you want to use SPM Plugin then it's .package(url: "https://github.com/krzysztofzablocki/Sourcery.git", from: "2.0.2"), this integration that you posted is for Framework use not normal CLI, for that you'd need one of the other install methods.

Sourcery Pro is Xcode Extension + powerful stencil editor so it can be used to write your own custom templates for Sourcery CLI but also one-off scenarios that CLI integration is not suited for, you can see more here

krzysztofzablocki avatar Jul 21 '23 09:07 krzysztofzablocki

Thanks for your reply.

I've tried the github link you provided, but with the same result.

Screenshot

My primary use case would be to create mock data and stubs.

Serafiniert avatar Jul 24 '23 11:07 Serafiniert

not what I meant, plugins are for use inside the SPM Package.swift definition not regular package project dependency like you are trying. You should install sourcery using one of this methods

krzysztofzablocki avatar Jul 24 '23 16:07 krzysztofzablocki