← Retour au blog
tech 14 July 2026

Building and Shipping Mac and iOS Apps Without Opening Xcode

Learn how to develop and ship Mac and iOS applications without ever launching Xcode, using command line tools and automated scripts.

Article inspired by the original source
Building and Shipping Mac and iOS Apps Without Ever Opening Xcode ↗ scottwillsey.com

Introduction

Xcode is often criticized for its complexity and unintuitive interface. However, it's possible to develop and distribute Mac and iOS apps without ever opening Xcode, by leveraging command line tools and automated scripts. In this article, we will explore how you can free yourself from Xcode while maintaining maximum efficiency.

Why Avoid Xcode?

The first question to ask is: why would one want to avoid Xcode? Although powerful, Xcode can be slow and difficult to use for those who prefer a more straightforward and automated approach. With the right configurations, you can minimize time spent in the GUI and focus on coding and development.

The Necessary Tools

To start, you will still need to install Xcode, as it contains essential tools like xcodebuild, notarytool, and devicectl. However, once installed, these tools can be used directly from the terminal without opening Xcode's graphical interface.

Installation and Configuration

  1. Install Xcode: Download and install the latest version of Xcode from the Mac App Store.
  2. Configure Command Line Tools: Ensure that Xcode is set as the default command line tool with xcode-select.
  3. Install XcodeGen: Use Homebrew to install XcodeGen, a tool that automatically generates Xcode projects.

``bash brew install xcodegen ``

Automation with Scripts

Automation is key to bypassing Xcode. By writing scripts, you can manage the entire build and distribution process.

Example Build Script

Here's an example script that handles everything:

```bash #!/bin/bash

# Archive xcodebuild archive -scheme MyApp -archivePath build/MyApp.xcarchive

# Sign with Developer ID xcodebuild -exportArchive -archivePath build/MyApp.xcarchive -exportPath build/MyApp -exportOptionsPlist exportOptions.plist

# Notarize xcrun notarytool submit build/MyApp.zip --apple-id [email protected] --password @keychain:AC_PASSWORD --team-id TEAMID

# Stapler xcrun stapler staple build/MyApp.app ```

Distribution

Once the app is built and notarized, it is ready for distribution. The script above covers everything from archiving to notarizing, signing, and stapling.

Conclusion

By automating tasks with scripts and using command line tools, you can free yourself from Xcode while maintaining an efficient and reliable build and distribution process. Ready to simplify your workflow? Let's discuss your project in 15 minutes.

Xcode iOS apps Mac apps Automation Command line tools
Deepthix newsletter · 100% AI · every Monday 8am

An AI agent reads tech for you.

Our AI agent scans ~200 sources per week and ships the best articles to your inbox Monday 8am. Free. One click to unsubscribe.

Visit the newsletter page →

Want to automate your operations?

Let's talk about your project in 15 minutes.

Book a call