在 xcode 中构建时如何禁用应用程序扩展的目标? [英] How to disable the target for application extension when building in xcode?

查看:19
本文介绍了在 xcode 中构建时如何禁用应用程序扩展的目标?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找一种方法来禁用今天的扩展目标,以减少每次开发应用程序目标时的构建时间.

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

推荐答案

为了禁用构建/运行您构建的 NSExtension,您应该:

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

  1. 在项目导航器中点击项目文件
  2. 单击包含的应用目标(您要运行的目标)
  3. 点击Build Phases标签
  4. 打开 Target DependenciesEmbed App Extensions
  5. 删除扩展程序(您不想运行的扩展程序)

要恢复它,只需单击同一位置的 + 符号并重新添加即可.

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

这篇关于在 xcode 中构建时如何禁用应用程序扩展的目标?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆