macbook on a desk

Xcode: how to disable an extension during app build

Written by

in ,

Sometimes the development version of an app includes multiple code e.g. an extension that should not be released yet. In this case, it’s possible to exclude the extension when building an app. This keeps all your code, but does not include the extension during the build phase.

To achieve this, simply open the Build Phases of your main app and remove the extension(s) from Dependencies and Embed App Extensions. You can add the extension later when required.

Below is a screenshot of the setting in Xcode.

screenshot of xcodes build phase settings

Photo by Clément Hélardot on Unsplash


Comments

Leave a Reply

Your email address will not be published. Required fields are marked *