Update: I realized that I never fully completed the installation for the Xcode app on my mac. I finished installing it and now when I try to package my game I no longer have the error relating to Xcode.
However, I am still getting the AutomationTool error and I am unsure how to go about fixing this.