Main.Options.swift:34:64: warning:
reference to static property 'arguments' is not concurrency-safe
because it involves shared mutable state
var arguments = CommandLine.arguments.makeIterator()
how do i fix this?
Main.Options.swift:34:64: warning:
reference to static property 'arguments' is not concurrency-safe
because it involves shared mutable state
var arguments = CommandLine.arguments.makeIterator()
how do i fix this?
This is a known issue.
My standard workaround is to use ProcessInfo
but, given your aversion to Foundation, I doubt you’ll want to follow me down that path.
Share and Enjoy
Quinn “The Eskimo!” @ DTS @ Apple