# Launching iOS App in debug mode from Xojo IDE

**URL:** <https://forum.xojo.com/t/launching-ios-app-in-debug-mode-from-xojo-ide/74807>\
**Category:** iOS\
**Created:** [March 11, 2023, 11:07am UTC](https://forum.xojo.com/t/launching-ios-app-in-debug-mode-from-xojo-ide/74807 "2023-03-11T11:07:41Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sebastien\_REMY](https://forum.xojo.com/user_avatar/forum.xojo.com/sebastien_remy/32/1946_2.png) [@Sebastien\_REMY](https://forum.xojo.com/u/Sebastien_REMY)\
**Post date:** [March 11, 2023, 11:07am UTC](https://forum.xojo.com/t/launching-ios-app-in-debug-mode-from-xojo-ide/74807/1 "2023-03-11T11:07:41Z")

</div>

I just buy a Pro licence to launch my first Xojo iOS App on the AppStore. I test successfully my app on simulator. But I can not test my app (or any other sample app provided by Xojo sample) to my real device. I already read documentation and configure Xcode, developper account etc.

I can easily run a my Xojo App From from Xcode on my device.

When I try to run my Xojo App from Xojo IDE I have the following message. I have the following message :

Since we could not locate the target IDE to start a debug session, this application will now exit

Any idea ?

---

<div class="post-metadata">

**Author:** ![Greg\_O](https://forum.xojo.com/user_avatar/forum.xojo.com/greg_o/32/22785_2.png) [@Greg\_O](https://forum.xojo.com/u/Greg_O)\
**Post date:** [March 11, 2023, 11:25am UTC](https://forum.xojo.com/t/launching-ios-app-in-debug-mode-from-xojo-ide/74807/2 "2023-03-11T11:25:13Z")

</div>

First, please make sure you’ve selected **App Store** instead of **development** in the IDE build settings. It’s a subtle but not obvious requirement,

Also, make sure your device is plugged into your computer. WiFi debugging does work, but it’s very picky the first time.

---

<div class="post-metadata">

**Author:** ![Sebastien\_REMY](https://forum.xojo.com/user_avatar/forum.xojo.com/sebastien_remy/32/1946_2.png) [@Sebastien\_REMY](https://forum.xojo.com/u/Sebastien_REMY)\
**Post date:** [March 11, 2023, 11:45am UTC](https://forum.xojo.com/t/launching-ios-app-in-debug-mode-from-xojo-ide/74807/3 "2023-03-11T11:45:23Z")

</div>

Thanks @Greg_O

> [@Greg\_O](#):
>
> First, please make sure you’ve selected **App Store** instead of **development** in the IDE build settings.

I do not have AppStore on stage Code

 ![Capture d’écran 2023-03-11 à 12.42.24](https://forum.xojo.com/uploads/default/original/2X/7/7293b79f91ebef5c02fdc11a7e32550750035617.jpeg)

My device is plugged with a USB wire and I still have the same error ☹

---

<div class="post-metadata">

**Author:** ![Greg\_O](https://forum.xojo.com/user_avatar/forum.xojo.com/greg_o/32/22785_2.png) [@Greg\_O](https://forum.xojo.com/u/Greg_O)\
**Post date:** [March 11, 2023, 11:49am UTC](https://forum.xojo.com/t/launching-ios-app-in-debug-mode-from-xojo-ide/74807/4 "2023-03-11T11:49:52Z")

</div>

It’s in the iOS build settings, not Shared.

---

<div class="post-metadata">

**Author:** ![Sebastien\_REMY](https://forum.xojo.com/user_avatar/forum.xojo.com/sebastien_remy/32/1946_2.png) [@Sebastien\_REMY](https://forum.xojo.com/u/Sebastien_REMY)\
**Post date:** [March 12, 2023, 9:44am UTC](https://forum.xojo.com/t/launching-ios-app-in-debug-mode-from-xojo-ide/74807/5 "2023-03-12T09:44:51Z")

</div>

I still have the same error this not the solution

---

<div class="post-metadata">

**Author:** ![Sebastien\_REMY](https://forum.xojo.com/user_avatar/forum.xojo.com/sebastien_remy/32/1946_2.png) [@Sebastien\_REMY](https://forum.xojo.com/u/Sebastien_REMY)\
**Post date:** [March 12, 2023, 9:53am UTC](https://forum.xojo.com/t/launching-ios-app-in-debug-mode-from-xojo-ide/74807/6 "2023-03-12T09:53:41Z")

</div>

I found the solution in the “Certificates, Identifiers & Profiles” of my Apple Developer account. I selected all my devices including my Mac, previously I had only selected my iPhone. Apparently, that wasn’t enough!

 ![Capture d’écran 2023-03-12 à 10.46.13](https://forum.xojo.com/uploads/default/original/2X/3/3a43434129056e9fb6a8fa80232465a9aef8ad0b.png)
