Using Swift Scripts with Xcode

Learn how to run Swift scripts as part of the Xcode build phase, giving you control to configure or validate your app while building your project. By Ehab Amer.

5 (10) · 1 Review

Download materials
Save for later
Share
You are currently viewing page 4 of 4 of this article. Click here to view the first page.

Where to Go From Here?

The sky is the limit for what you can do in the build phases with Swift. You can download resources used by the project from a remote server, you can validate more things in your project directly from Xcode or you can automate configuration changes or even upload the compiled binary yourself. You can literally program your own CI/CD if you want to. :]

To learn more about the command-line tool you were using to compile the Swift files, check Swift’s GitHub docs.

Also, you should refer to Apple’s Reference for all the Environment variables.

We hope you enjoyed this tutorial. If you have any questions or comments, please join the forum discussion below!