Closed razor313 closed 7 months ago
I suggest you take a look at the scripts that xcodegen allows you to generate within each target. Something like this:
I hope this helps you 😃
Try the example bellow with xcodegen 2.37.0:
targets:
MyApp:
...
dependencies:
- package: Rswift
product: RswiftLibrary
buildToolPlugins:
- package: Rswift
plugin: RswiftGenerateInternalResources
packages:
Rswift:
url: https://github.com/mac-cain13/R.swift
from: 7.3.2
Also you might consider the plugin within a local package. See the conceptual example here -> mac-cain13/R.swift#838 . Corresponding manifest:
targets:
MyApp:
...
dependencies:
- package: RswiftPlugin
product: RswiftPluginDependencies
buildToolPlugins:
- package: RswiftPlugin
plugin: RswiftPlugin
packages:
RswiftPlugin:
path: Packages/RswiftPlugin
Now xcodegen supports Add support for adding build tool plugins to targets #1374 🚀
I'm trying to use R.swift in my project and add it in the
packages
as well as in thebuildToolPlugins
as the following code, but it wasn't in theRun Build Tool Plug-ins
section after generating *.xcproject file. Did I define it wrong?Xcodegen: 2.32.0 Xcode: 14.3