WARNING: Questions relating to programming generally belong on Stack Overflow. Scripting and automation questions using swift are on topic here and SO but may be received better here if the overall question is less about the details of the swift language.
Questions relating to programming generally belong at Stack Overflow where programming questions are best asked and answered.
Ask Different focuses on consumer use of release software (please - no beta software, no NDA topics) so basic questions like how to install or launch Xcode are fine here. Also, Automator and AppleScript questions that relate to Xcode are most welcome here.
If in doubt, the Help Center contains the latest guidance for Ask Different.