I've been a programmer 20 years (VB, C#, Java, PHP/HTML/Javascript. Now I'm trying to write for Mac.
I can't get past square 1.
I'm trying to recreate an example:
I copy that zip & open it into a folder.
It compiles fine in Terminal using swift build
I copy & unzip the same zip to a new directory.
I compile in the new directory and it compiles fine.
I open Package.swift in the new folder and delete all the code.
I copy the code from the file in the example folder.and paste it into the file in the new folder.
It throws an error:
argument 'targets' must precede argument 'dependencies'.
I get other errors about commas and other things too.
I've done this over and over and over and over.
There have been times when I did the same thing and the new folder compiled fine.
I do the exact same exact thing again and it doesn't compile.
If I actually TYPE something into the new file, even in the comments it never compiles.
In general I'm finding it to be extremely inconsistent and volatile.
What is going on?
How in the world are you guys programming for Mac?