Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to disable the target for application extension when building in xcode?

I am looking a way to disable today extension target to decrease build time everytime while developing for application target.

like image 921
khunshan Avatar asked Dec 13 '14 11:12

khunshan


2 Answers

In order to disable building/running the NSExtension you build, you should:

  1. Click the project file in the project navigator
  2. Click the containing app target (the one you DO want to run)
  3. Click Build Phases tab
  4. Open Target Dependencies or Embed App Extensions
  5. Remove the extension (the one you DON'T want to run)

To bring it back, simply click the + sign in the same place and re-add it.

like image 126
nurnachman Avatar answered Sep 17 '22 01:09

nurnachman


In Xcode 9 the Extension was stil visible in the Widget List of the phone. In order to hide totally it I had to remove it from "Embed App Extensions". The procedure is similar to the one described by nurxyz:

  1. Click the project file in the project navigator
  2. Click the containing app target (the one you DO want to run)
  3. Click Build Phases tab
  4. Open Embed App Extensions
  5. Remove the extension (the one you DON'T want to run)
like image 21
DungeonDev Avatar answered Sep 17 '22 01:09

DungeonDev