-
Notifications
You must be signed in to change notification settings - Fork 728
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
Document how to integrate SwiftGen into .xcodeproj #59
Comments
Hi Martin, This would probably be as simple as adding a "Script Build Phase" in your target settings which invokes the As regard to documenting that in the README, I don't think that's the right place:
So I think an entry in the Wiki could be more appropriate. That way people could also easily share their experience and add other solutions they found useful for different use cases for example. I encourage you to create a simple wiki page there (you should have access to edit the wiki I think) and document that (probably with some captures) once you've configured it successfully on your project. That'll be probably as simple as what the Apple documentation I linked above says, but maybe with a screenshot including the script with the swiftgen calls). I also know that @jschmid is using it on his CircleCI builds to ensure that developers did not forget to regenerate the files if needed. That's a different but interesting approach too, which he may also be interested to help you document in that wiki page. |
I wrote a post about that https://www.linkedin.com/pulse/easy-way-manage-your-storyboards-viacheslav-karamov?trk=prof-post Hope this will help. |
Just to provide a quick example for people looking into this (based on how swiftlint does it) Add a run script phase and paste:
|
I added a wiki page about continuous integration. |
Thanks guys for your help, |
Note that you can also check what @MrAlek did in #64 (comment) to integrate SwiftGen to their Xcode project using a Build Phase like other suggested here; the capture he posted might give you some more pointers. |
I added a dedicated wiki page here. Feel free to improve it. I'm closing this issue now 😉 |
I'd like to integrate swiftgen directly into my xcode project file so that it's invoked automatically on each build so that all generated files are always up to date.
Could you please provide an example how to do it properly in README
thanks,
Martin
The text was updated successfully, but these errors were encountered: