Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to delete "URL Types" from Xcode?

Tags:

xcode

ios

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)

enter image description here

like image 470
Daniel Illescas Avatar asked Apr 15 '17 01:04

Daniel Illescas


People also ask

How do I add a URL type in XCode?

Register your scheme in Xcode from the Info tab of your project settings. Update the URL Types section to declare all of the URL schemes your app supports, as shown in the following illustration. In the URL Schemes box, specify the prefix you use for your URLs.

What is URL scheme in iOS?

URL schema is used as an identifier in launching applications and performing a set of commands in iOS devices. The schema name of a URL is the first part of a URL. (e.g. schemaname:// ). For web pages, the schemas are usually http or https.

Where is the app URL scheme?

Go to the Play store, find the app and view its page. Copy the URL from the browser address bar. Make a note of this as the "Android Fallback URL." You'll see a parameter called "id" followed by an equal sign (=).


2 Answers

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

enter image description here

EDIT

You might have to restart XCode to see the changes.

like image 56
Daniel Illescas Avatar answered Sep 23 '22 13:09

Daniel Illescas


  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

I did not have enough reputation to post images.

like image 32
William Avatar answered Sep 22 '22 13:09

William