Xcodegen: Add postGen hook

Created on 7 Jan 2019  路  3Comments  路  Source: yonaskolb/XcodeGen

This would add a hook for a script to be run after generation. Critically this won't run if caching is on and the project isn't generated.
This solves the issue of running pod install only if the project has changed as discussed here https://github.com/yonaskolb/XcodeGen/pull/412.

Example:

options:
  postGenScript: pod install
targets:
  ...
feature

Most helpful comment

Could we also add a pre gen hook for thing like swiftgen? Right now gen files not commutes are not added to the project if not committed

All 3 comments

It's a pretty good solution! Because we always create script that runs XcodeGen and CocoaPods.

Could we also add a pre gen hook for thing like swiftgen? Right now gen files not commutes are not added to the project if not committed

Was this page helpful?
0 / 5 - 0 ratings