# Defining a Custom URL Scheme in XCode

**URL:** https://discourse.cmake.org/t/defining-a-custom-url-scheme-in-xcode/3261
**Category:** Code
**Tags:** gen:xcode
**Created:** [May 4, 2021, 1:50pm UTC](https://discourse.cmake.org/t/defining-a-custom-url-scheme-in-xcode/3261 "2021-05-04T13:50:07Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Guillermo\_Amorin](https://discourse.cmake.org/user_avatar/discourse.cmake.org/guillermo_amorin/32/1426_2.png) [@Guillermo\_Amorin](https://discourse.cmake.org/u/Guillermo_Amorin)
#### Post date: [May 4, 2021, 1:50pm UTC](https://discourse.cmake.org/t/defining-a-custom-url-scheme-in-xcode/3261/1 "2021-05-04T13:50:07Z")

</div>

In Xcode a URL type is defined to have a custom URL Scheme that opens the application, I wanted to know how to set this configuration from cmake.

 ![urlType](https://discourse.cmake.org/uploads/default/original/2X/e/e4932981a097c01a67729e4f37ec0ea29bafcc8c.png)

---

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.cmake.org/u/ben.boeckel)
#### Post date: [May 4, 2021, 4:17pm UTC](https://discourse.cmake.org/t/defining-a-custom-url-scheme-in-xcode/3261/2 "2021-05-04T16:17:57Z")

</div>

Doesn’t this just end up editing the `Info.plist` file that ends up in the application bundle. I suspect that the [`MACOSX_BUNDLE_INFO_PLIST`](https://cmake.org/cmake/help/latest/prop_tgt/MACOSX_BUNDLE_INFO_PLIST.html) can be used to provide an `Info.plist` file that contains whatever is needed for this.

---

<div class="post-metadata">

### Author: ![Guillermo\_Amorin](https://discourse.cmake.org/user_avatar/discourse.cmake.org/guillermo_amorin/32/1426_2.png) [@Guillermo\_Amorin](https://discourse.cmake.org/u/Guillermo_Amorin)
#### Post date: [May 4, 2021, 5:40pm UTC](https://discourse.cmake.org/t/defining-a-custom-url-scheme-in-xcode/3261/3 "2021-05-04T17:40:55Z")

</div>

Thanks, this works for me.
