I'm using Xcode 13 on MacOS 12 to develop a Mac client and a Raspberry Pi 4B sever. The RPi has the latest 64bit Bullseye release. The server code is contained in a Swift Package. I write the code in Xcode, then compile and run it on the RPi using Terminal.
I can add words like 'Task' and 'async' to the client code OK, but when I try to add these words to the server package I get the following errors...
"'Task' is only available in MacOS 12.0 or newer" and "Concurrency is only available in MacOS 12.0 or newer"
Now I know this this isn't true, because my server code will compile and run on the RPI just fine. Therefore, it would seem that Xcode couldn't care less about servers - unless there's a way to fool it.
I've found it extremely helpful to 'Build', but not 'Run', the server code in Xcode, prior to compiling on the RPi.
So my question is; how can I carry on using Xcode to edit code for a linux host?