Closed BarredEwe closed 1 year ago
Hi @yonaskolb and @freddi-kit ! Do you already have an update when this is about to be merged? We're eagerly waiting for this feature :blush: .
Cheers, Yannik
@yanniks this feature is good to go, we're just waiting on a release of XcodeProj (And the recent merge conflicts to be resolved)
Was there a dependency on Xcode version for this to work? Works fine on my machine with Xcode 14.3.1 but seems to not link it up correctly on my colleague's machine which is on Xcode 14.2
@OmranK Can you add an Xcode error?
PS: If you add a plugin without XcodeGen in Xcode 14.2, does it work correctly?
@BarredEwe There is no error. It simply shows "Run Build Tool Plug-ins (0 items)". If he manually clicks + and adds in SwiftLintPlugin, it works.
@OmranK I can't reproduce this on Xcode 14.2 and the project Fixtures/SPM.
Short description 📝
Support for Build Tool Plugins has been added here. A detailed discussion can be read here: https://github.com/yonaskolb/XcodeGen/issues/1290
Details ⚙️
API
To use plugins, you need to specify in your target which plugin you want to connect.
And don't forget to connect the package.
What is generated
PBXTargetDependency
:plugin:
) is added:What is being validated
If you add a plugin that references a package that is not in the project:
There will be an error:
Spec validation error: Plugin PrefirePlaybookPlugin has invalide package reference SomeName