Using build tool plugins with .xcproj

I try to run a very simple plugin but get the following error

error: plugin compilation failed: error: link command failed with exit code 1 (use -v to see invocation)
Undefined symbols for architecture arm64:
  "_main", referenced from:
     implicit entry/start for main executable
ld: symbol(s) not found for architecture arm64

if somebody else has this this is because the plugin was missing @main In the WWDC22 talk of @NeoNacho this was missing.

2 Likes