When I'd like to test the plugin API in my Package.swift file. I got the error saying
plugin target 'Generate' cannot be used because the feature isn't enabled (set SWIFTPM_ENABLE_PLUGINS=1 in environment)
I can easily
export SWIFTPM_ENABLE_PLUGINS=1 and run
swift build successfully in the terminal.
But how can I add this env value so that Xcode can read.
Tried to add the export in my .zshrc file not working
Xcode scheme editor can add env value easily but scheme is not available before properly "Resolve Package" is done
I tried ProcessInfo().environment, but it's a get-only property