Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SPM Installation, Sourcery Pro clarification #1183

Open
Serafiniert opened this issue Jul 20, 2023 · 3 comments
Open

SPM Installation, Sourcery Pro clarification #1183

Serafiniert opened this issue Jul 20, 2023 · 3 comments

Comments

@Serafiniert
Copy link

Serafiniert commented Jul 20, 2023

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.

@krzysztofzablocki
Copy link
Owner

krzysztofzablocki commented Jul 21, 2023

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

@Serafiniert
Copy link
Author

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.

@krzysztofzablocki
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants