如何从 Xcode 中删除“URL 类型”?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/43421130/
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 09:55:12  来源:igfitidea点击:

How to delete "URL Types" from Xcode?

iosxcode

提问by Daniel Illescas

I did a URL Type but I clicked on the "+" icon again and now I can't delete the others. Maybe I'm stupid but I'm unable to delete them :(
(This option is found under project > Targets > app > Info)

我做了一个 URL 类型,但我再次点击了“+”图标,现在我无法删除其他人。也许我很愚蠢,但我无法删除它们:(
(此选项位于项目 > 目标 > 应用程序 > 信息下)

enter image description here

在此处输入图片说明

回答by Daniel Illescas

I found a way to delete them: just open the Info.plist, delete the other rows and build/clean the project.

我找到了一种删除它们的方法:只需打开Info.plist,删除其他行并构建/清理项目。

enter image description here

在此处输入图片说明

EDIT

编辑

You might have to restart XCode to see the changes.

您可能需要重新启动 XCode 才能看到更改。

回答by William

  1. Right click on your Info.plist;
  2. "Open As" -> "Source Code";
  3. Search "CFBundleURLTypes", and delete that you want to delete;
  4. Clean and build
  1. 右键单击您的 Info.plist;
  2. “打开为”->“源代码”;
  3. 搜索“CFBundleURLTypes”,删除要删除的;
  4. 清洁和构建

I did not have enough reputation to post images.

我没有足够的声誉来发布图片。

回答by esbenr

Open info.plist in you favorite text editor and delete the nodes.

在您喜欢的文本编辑器中打开 info.plist 并删除节点。

回答by Cameron

I always do it by hovering over it and at the top right of the panel for that specific url type, there is a grey square 'X' button.

我总是通过将鼠标悬停在该特定 url 类型的面板右上角,有一个灰色方形“X”按钮来完成。