I have built my JUCE app on MAC several times using the command line. The command I use is
sudo xcodebuild -project Builds/MacOSX/MyApp.xcodeproj -alltargets -parallelizeTargets -configuration Release build CODE_SIGN_IDENTITY='My Developer ID Application' OTHER_CODE_SIGN_FLAGS="--timestamp"
I had to add sudo recently because I also use AAX and for some reason it could not create a folder (installation folder for AAX) in /Library/ Application Supports/Avid/Audio/Plug-Ins
My first question is that if I can only use this command if I have MyApp.xcodeproj file and I can only have that file when I open Xcode from the ProJucer. Is it the right approach? Or there is another better way to do it? I am not fully sure that opening the Xcode with Projucer to create the Builds/MacOSX and the xcodeproj file and after that running the command is the best way.
In this way, I committed the whole Builds folder so I could use Github Actions for automatic builds too.
Am I doing it correctly?
I would really appreciate it if you could also share your experience with me.