Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode: How to remove a target dependency from the build phase for a specific configuration

I have an app that includes a Watch Extension and App target. I would to be able to have one of my configurations (for a beta) exclude these targets from the target dependencies so that I can distribute the build without the Watch Extension/App. However I still want my debug configuration to include them. Is this possible? Perhaps there is some run script that could add Target Dependencies manually? Thanks.

like image 589
Mark Leonard Avatar asked Oct 17 '25 14:10

Mark Leonard


1 Answers

Duplicate your "Release" Configuration, that will include your Watch Extension. Here the official resource: https://developer.apple.com/library/ios/recipes/xcode_help-project_editor/Articles/BasingBuildConfigurationsonConfigurationFiles.html

enter image description here

In this configuration.

  1. Remove the WatchKit extension from Target Dependencies
  2. Remove WatchKit extension from Embed App Extensions
like image 189
Pau Senabre Avatar answered Oct 20 '25 05:10

Pau Senabre