如何从现有的 Xcode 项目中删除 Apple Watch 应用程序?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/30453191/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 07:11:52  来源:igfitidea点击:

How to remove apple Watch app from existing Xcode project?

iosxcodexcode6apple-watch

提问by Sin Hasegawa

I add a watch app target to my project. How can I undo this?

我在我的项目中添加了一个手表应用程序目标。我怎样才能撤消这个?

I remove Watch target and scheme already. But it's show alert message "install app failed" on my apple watch when i debug my ios app project.

我已经删除了 Watch 目标和方案。但是当我调试我的 ios 应用程序项目时,它在我的 Apple Watch 上显示警报消息“安装应用程序失败”。

回答by vomako

In Xcode 6.3.2, twosteps are necessary:

在 Xcode 6.3.2 中,需要两个步骤:

  • Remove the WatchKit extension from "Target Dependencies"
  • Remove WatchKit extension from "Embed App Extensions"
  • 从“目标依赖项”中删除 WatchKit 扩展
  • 从“嵌入应用程序扩展”中删除 WatchKit 扩展

A detailed description is available here.

此处提供详细说明。