15

When I create a new project using the "Messages Application" template of Xcode 8 and try to run it on iOS simulator, I get the following error:

Title

The request to open com.myDomain.MyApp failed.

Details

The request was denied by service delegate (SBMainWorkspace) for reason: NotFound ("Application "com.myDomain.MyApp" is unknown to FrontBoard").

The message is the same for Objective-C and Swift projects.

I don't find any search result for this message yet, so any hint will be helpful. I will update the question as I progress.

Edit

This error occurred with Xcode 8 beta versions.

Totoro
  • 3,398
  • 1
  • 24
  • 39
  • @Vikrant: thanks for editing, but the new formatting treats the error description as code and that makes it harder to read. I edited it again to make it a bit more readable. – Totoro Jun 22 '16 at 01:47
  • 1
    did you check your scheme? Edit Scheme -> Info -> executable should be set to ask on launch rather than MyApp.app – ubiAle Jul 18 '16 at 10:38
  • Thanks a lot, that made it work! I still had to wait until the simulator fully launched (very slow, took a few minutes), but that's it. – Totoro Jul 19 '16 at 01:41
  • What did you help? Just turn on 'Wait executable for launch'? – Misha Vyrko Jul 19 '16 at 07:15
  • @Misha: Yes, I checked the setting and found that the executable was set to the target called .app instead of the extension. ubiAle posted this as an answer, so I accepted it. – Totoro Jul 19 '16 at 07:27

4 Answers4

10

You may want to check your scheme. The executable should be asked on launch (You want to select Messages app). Edit Scheme -> Info -> Executable -> Ask on launch (rather than MyApp.app)

ubiAle
  • 445
  • 9
  • 19
1

I met the same problem,then i fixed it by two steps:

  1. click the New Scheme, add a new scheme.

  2. click the Manage Schemes, and delete the old.

then (Although I don't know why) I can run my project!

Tony Laidig
  • 1,048
  • 2
  • 11
  • 33
fzh
  • 688
  • 1
  • 6
  • 14
1

This happened to me when I was using a beta of xcode 8.1. When I upgraded the app store version of xcode from 8.0 to 8.1 this problem disappeared (and it never happened with 8.0, just the 8.1 beta). Couldn't find a reference to a bug or a fix, but if you're not using the official app store version of xcode it might be worth double checking.

Dylan Nissley
  • 594
  • 1
  • 5
  • 12
  • Good point; I posted the question when I was using the beta version. It never happened after installing the App Store version. Will see if I can update the question. – Totoro Nov 17 '16 at 00:44
0

I had the same issue because I had an empty environment variable set in my current scheme.

Environment variables

I deleted this empty environment variable and was then able to build correctly.

juliensaad
  • 2,019
  • 2
  • 20
  • 27