App won't launch in the Xcode simulator

I just ran into the same issue. I’m using build 2017.3068. I also see the same messages at the Xcode log and nothing odd at the Corona console. 

Seeing the same thing on both of my dev machines (which are set up a bit differently). 

I don’t suppose you’ve figured it out?

What plugins are you using?

Is xxx.yyy.zzz the real bundleID for your app?

What Xcode simulator device are you trying to simulate?

Rob

I’ve tried building for different devices. This build window started out on “iPhone SE” when I first got the error to begin with. I’ve switched it to “iPhone 5s” without any effect.

I created a simple “hello” app and tried to run it after posting the above. The app is called “hitest”. It did the same thing:

May 18 23:59:53 Big-Mac-2 CoreSimulatorBridge[11761]: [Common] [FBSSystemService][0x414b] Error handling open request for com.example.hitest: { description = "The request to open "com.example.hitest" failed."; failureReason = "The request was denied by service delegate (SBMainWorkspace) for reason: NotFound ("Application "com.example.hitest" is unknown to FrontBoard")."; underlyingError = { description = "The operation couldn’t be completed. Application "com.example.hitest" is unknown to FrontBoard."; failureReason = "Application "com.example.hitest" is unknown to FrontBoard."; }; } May 18 23:59:53 Big-Mac-2 CoreSimulatorBridge[11761]: Error Launching: Error Domain=FBSOpenApplicationServiceErrorDomain Code=1 "The request to open "com.example.hitest" failed." UserInfo={BSErrorCodeDescription=RequestDenied, NSUnderlyingError=0x7f9fbc6f8780 {Error Domain=FBSOpenApplicationErrorDomain Code=4 "Application "com.example.hitest" is unknown to FrontBoard." UserInfo={BSErrorCodeDescription=NotFound, NSLocalizedFailureReason=Application "com.example.hitest" is unknown to FrontBoard.}}, NSLocalizedDescription=The request to open "com.example.hitest" failed., NSLocalizedFailureReason=The request was denied by service delegate (SBMainWorkspace) for reason: NotFound ("Application "com.example.hitest" is unknown to FrontBoard").} May 18 23:59:53 Big-Mac-2 CoreSimulatorBridge[11761]: Recoverable error launching 'com.example.hitest', will retry. Error was: Error Domain=FBSOpenApplicationServiceErrorDomain Code=1 "The request to open "com.example.hitest" failed." UserInfo={BSErrorCodeDescription=RequestDenied, NSUnderlyingError=0x7f9fbc6f8780 {Error Domain=FBSOpenApplicationErrorDomain Code=4 "Application "com.example.hitest" is unknown to FrontBoard." UserInfo={BSErrorCodeDescription=NotFound, NSLocalizedFailureReason=Application "com.example.hitest" is unknown to FrontBoard.}}, NSLocalizedDescription=The request to open "com.example.hitest" failed., NSLocalizedFailureReason=The request was denied by service delegate (SBMainWorkspace) for reason: NotFound ("Application "com.example.hitest" is unknown to FrontBoard").} May 18 23:59:53 Big-Mac-2 CoreSimulatorBridge[11761]: Launch attempt #1308 for bundle 'com.example.hitest', have been trying to launch for 13977 seconds. Modern launch services = YES May 18 23:59:53 Big-Mac-2 CoreSimulatorBridge[11761]: Failed to get LSBundleProxy for 'com.example.hitest' May 18 23:59:53 Big-Mac-2 CoreSimulatorBridge[11761]: [Common] [FBSSystemService][0xb7c9] Sending request to open "com.example.hitest"

Okay, what is really odd is that I tried running it again this morning and got this:

May 19 10:08:26.681 Copyright (C) 2009-2017 C o r o n a L a b s I n c .  Version: 3.0.0  Build: 2017.3068 May 19 10:08:26.872 Loading project from: ~/Documents/hitest May 19 10:08:26.872 May 19 10:08:26.902 Project sandbox folder: ~/Library/Application Support/Corona Simulator/hitest-1A000D642F41374DB7C4F6FA05AF548B Platform: iPhone / x86\_64 / 10.12.5 / NVIDIA GeForce GTX 680MX OpenGL Engine / 2.1 NVIDIA-10.17.5 355.10.05.45f01 / 2017.3068 / en-US | US | en\_US | en May 19 10:08:49.473 Building iOS app for john\_carlson@me.com with 2017.3068 May 19 10:08:56.295 BuildID: 591f0a8573493 May 19 10:08:58.403 Using additional build settings from: build.settings Building: Copying app resources Excluding specified files from build:   excluding: \*.d2c  excluding: \*.bak Building: Unpacking build from server Creating Info.plist...  adding extra plist setting UIStatusBarHidden: true  adding extra plist setting UILaunchStoryboardName: LaunchScreen  adding extra plist setting CFBundleName: hitest  adding extra plist setting CFBundleIconFiles: []  adding extra plist setting CFBundleDisplayName: hitest Application version information:  Version: 1.0 [CFBundleShortVersionString] (set in Build dialog)  Build: 2017.05.191008 [CFBundleVersion] (set by Simulator) Building: Signing application for Xcode Simulator May 19 10:08:58.403 ERROR: build command failed: /usr/bin/codesign --force --sign - --timestamp=none "/Users/john\_carlson/Desktop/hitest.app" May 19 10:08:58.403 ERROR: with exit code 1 and output: May 19 10:08:58.404 May 19 10:08:58.432 /Users/john\_carlson/Desktop/hitest.app: replacing existing signature /Users/john\_carlson/Desktop/hitest.app: resource fork, Finder information, or similar detritus not allowed BUILD ERROR: ERROR: code signing for Xcode Simulator failed: /Users/john\_carlson/Desktop/hitest.app: replacing existing signature /Users/john\_carlson/Desktop/hitest.app: resource fork, Finder information, or similar detritus not allowed May 19 10:08:58.433 iOS build failed (12) after 5 seconds May 19 10:08:58.746 ERROR: Build Failed: ERROR: code signing for Xcode Simulator failed: /Users/john\_carlson/Desktop/hitest.app: replacing existing signature /Users/john\_carlson/Desktop/hitest.app: resource fork, Finder information, or similar detritus not allowed May 19 10:08:58.747 

This is without having changed anything. 

The app is very simple and doesn’t use any images. Just these files:

main.lua

build.settings

config.lua

Launch.png 

Launch@2x.png 

Launch@3x.png

LaunchScreen.storyboardc

I added the launch images last night following directions here: 

https://docs.coronalabs.com/guide/distribution/launchFile/index.html 

Googling this 2nd error seems to indicate there is something wrong with the png files (http://stackoverflow.com/questions/39652867/code-sign-error-in-macos-sierra-xcode-8-resource-fork-finder-information-or).

Seems like some sort of xcode error/issue, but the fix suggested (eliminating the resource fork) didn’t help.

I think either something is wrong with the xcode setup or I am just doing something dumb.

What happens if you try to build one of our sample apps like HelloWorld?

Rob

@Rob No, xxx.yyy.zz is a placeholder here, the app in question has a proper id.

Anyway, I sort of “solved” the problem by removing all simulators from within Xcode (I’m away from the Mac currently but it’s done in View->Devices or something like that), then uninstalling Xcode itself and reinstalling it from the Appstore. 

I still have no idea what happened. In no console, log or anywhere else was there a single clue as to what could be wrong.

Since reinstalling Xcode solved the issue, I would guess it was caused by some technical hiccup during updating/building/whatever of Xcode or Corona. It has worked fine for a couple of days now.

I should have thought to try that. “Hello World” runs and the build seems to complete:

May 19 10:16:24.501 May 19 11:28:53.294 Copyright (C) 2009-2017 C o r o n a L a b s I n c . Version: 3.0.0 Build: 2017.3068 May 19 11:28:53.303 Loading project from: /Applications/CoronaSDK/SampleCode/GettingStarted/HelloWorld May 19 11:28:53.303 Project sandbox folder: ~/Library/Application Support/Corona Simulator/HelloWorld-F8E2C5BA4CE84C12437755BD91CD8FA0 May 19 11:28:53.371 Platform: iPhone / x86\_64 / 10.12.5 / NVIDIA GeForce GTX 680MX OpenGL Engine / 2.1 NVIDIA-10.17.5 355.10.05.45f01 / 2017.3068 / en-US | US | en\_US | en May 19 11:29:09.742 Building iOS app for john\_carlson@me.com with 2017.3068 May 19 11:29:14.706 BuildID: 591f1d57b0ceb May 19 11:29:16.899 Using additional build settings from: build.settings Building: Copying app resources Building: Unpacking build from server Creating Info.plist... adding extra plist setting UILaunchStoryboardName: LaunchScreen adding extra plist setting CFBundleIconFiles: ["Icon-40.png","Icon-58.png","Icon-76.png","Icon-80.png","Icon-87.png","Icon-120.png","Icon-152.png","Icon-167.png","Icon-180.png"] Application version information: Version: 1.0 [CFBundleShortVersionString] (set in Build dialog) Build: 2017.05.191129 [CFBundleVersion] (set by Simulator) Building: Signing application for Xcode Simulator iOS build succeeded in 5 seconds May 19 11:29:17.149 Running '/Users/john\_carlson/Desktop/HelloWorld.app' on Xcode iOS Simulator - iPhone 5s / iOS 10.3 (FF0B3720-3620-4D78-8B1D-AE1BD562498B)

However, it still “hangs” while “Copying app to Xcode iOS Simulator…”

The xcode log looks the same as above:

May 19 11:35:48 Big-Mac-2 CoreSimulatorBridge[14956]: Error Launching: Error Domain=FBSOpenApplicationServiceErrorDomain Code=1 "The request to open "com.example.HelloWorld" failed." UserInfo={BSErrorCodeDescription=RequestDenied, NSUnderlyingError=0x7fd8ba817d20 {Error Domain=FBSOpenApplicationErrorDomain Code=4 "Application "com.example.HelloWorld" is unknown to FrontBoard." UserInfo={BSErrorCodeDescription=NotFound, NSLocalizedFailureReason=Application "com.example.HelloWorld" is unknown to FrontBoard.}}, NSLocalizedDescription=The request to open "com.example.HelloWorld" failed., NSLocalizedFailureReason=The request was denied by service delegate (SBMainWorkspace) for reason: NotFound ("Application "com.example.HelloWorld" is unknown to FrontBoard").} May 19 11:35:48 Big-Mac-2 CoreSimulatorBridge[14956]: Recoverable error launching 'com.example.HelloWorld', will retry. Error was: Error Domain=FBSOpenApplicationServiceErrorDomain Code=1 "The request to open "com.example.HelloWorld" failed." UserInfo={BSErrorCodeDescription=RequestDenied, NSUnderlyingError=0x7fd8ba817d20 {Error Domain=FBSOpenApplicationErrorDomain Code=4 "Application "com.example.HelloWorld" is unknown to FrontBoard." UserInfo={BSErrorCodeDescription=NotFound, NSLocalizedFailureReason=Application "com.example.HelloWorld" is unknown to FrontBoard.}}, NSLocalizedDescription=The request to open "com.example.HelloWorld" failed., NSLocalizedFailureReason=The request was denied by service delegate (SBMainWorkspace) for reason: NotFound ("Application "com.example.HelloWorld" is unknown to FrontBoard").} May 19 11:35:48 Big-Mac-2 CoreSimulatorBridge[14956]: Launch attempt #35 for bundle 'com.example.HelloWorld', have been trying to launch for 384 seconds. Modern launch services = YES May 19 11:35:48 Big-Mac-2 CoreSimulatorBridge[14956]: Failed to get LSBundleProxy for 'com.example.HelloWorld' May 19 11:35:48 Big-Mac-2 CoreSimulatorBridge[14956]: [Common] [FBSSystemService][0x9ccd] Sending request to open "com.example.HelloWorld" May 19 11:35:59 Big-Mac-2 CoreSimulatorBridge[14956]: [Common] [FBSSystemService][0x9ccd] Error handling open request for com.example.HelloWorld: \<NSError: 0x7fd8ba9188e0; domain: FBSOpenApplicationServiceErrorDomain; code: 1 (RequestDenied); reason: "The request was denied by service delegate (SBMainWorkspace) for reason: NotFound ("Application "com.example.HelloWorld" is unknown to FrontBoard")."\> { description = "The request to open "com.example.HelloWorld" failed."; failureReason = "The request was denied by service delegate (SBMainWorkspace) for reason: NotFound ("Application "com.example.HelloWorld" is unknown to FrontBoard")."; underlyingError = \<NSError: 0x7fd8ba918ab0; domain: FBSOpenApplicationErrorDomain; code: 4 (NotFound); reason: "Application "com.example.HelloWorld" is unknown to FrontBoard."\> { description = "The operation couldn’t be completed. Application "com.example.HelloWorld" is unknown to FrontBoard."; failureReason = "Application "com.example.HelloWorld" is unknown to FrontBoard."; }; }

In my experience it sometimes takes the Xcode simulator too long to start up and that will cause the Corona app to not start up. The simulator has to boot up just like starting a phone or tablet from power-off state. Once it’s up and running I’ve not had issues with Corona apps starting on it.

Rob

Unfortunately, deleting the simulators and xcode, then reeinstalling from the app store didn’t work for me. I am still getting the same error trying to run anything in an iOS device simulator. Launching the simulator first doesn’t help. Output from system log is below (but I think it is the same as before).

I think I figured out the error about “detritus” in the app, however. I was putting the build on my desktop, which is synced to icloud. Moving the build to a folder that isn’t synced to icloud hasn’t resulted in that error.

I hoped this fix might solve the issue with the iOS simulator, but it didn’t:

May 19 14:11:46 Big-Mac-2 CoreSimulatorBridge[1867]: Error Launching: Error Domain=FBSOpenApplicationServiceErrorDomain Code=1 "The request to open "com.example.HelloWorld" failed." UserInfo={BSErrorCodeDescription=RequestDenied, NSUnderlyingError=0x7fee4201b690 {Error Domain=FBSOpenApplicationErrorDomain Code=4 "Application "com.example.HelloWorld" is unknown to FrontBoard." UserInfo={BSErrorCodeDescription=NotFound, NSLocalizedFailureReason=Application "com.example.HelloWorld" is unknown to FrontBoard.}}, NSLocalizedDescription=The request to open "com.example.HelloWorld" failed., NSLocalizedFailureReason=The request was denied by service delegate (SBMainWorkspace) for reason: NotFound ("Application "com.example.HelloWorld" is unknown to FrontBoard").} May 19 14:11:46 Big-Mac-2 CoreSimulatorBridge[1867]: Recoverable error launching 'com.example.HelloWorld', will retry. Error was: Error Domain=FBSOpenApplicationServiceErrorDomain Code=1 "The request to open "com.example.HelloWorld" failed." UserInfo={BSErrorCodeDescription=RequestDenied, NSUnderlyingError=0x7fee4201b690 {Error Domain=FBSOpenApplicationErrorDomain Code=4 "Application "com.example.HelloWorld" is unknown to FrontBoard." UserInfo={BSErrorCodeDescription=NotFound, NSLocalizedFailureReason=Application "com.example.HelloWorld" is unknown to FrontBoard.}}, NSLocalizedDescription=The request to open "com.example.HelloWorld" failed., NSLocalizedFailureReason=The request was denied by service delegate (SBMainWorkspace) for reason: NotFound ("Application "com.example.HelloWorld" is unknown to FrontBoard").} May 19 14:11:46 Big-Mac-2 CoreSimulatorBridge[1867]: Launch attempt #52 for bundle 'com.example.HelloWorld', have been trying to launch for 545 seconds. Modern launch services = YES May 19 14:11:46 Big-Mac-2 CoreSimulatorBridge[1867]: Failed to get LSBundleProxy for 'com.example.HelloWorld' May 19 14:11:46 Big-Mac-2 CoreSimulatorBridge[1867]: [Common] [FBSSystemService][0x8aac] Sending request to open "com.example.HelloWorld" May 19 14:11:56 Big-Mac-2 CoreSimulatorBridge[1867]: [Common] [FBSSystemService][0x8aac] Error handling open request for com.example.HelloWorld: \<NSError: 0x7fee4151f2f0; domain: FBSOpenApplicationServiceErrorDomain; code: 1 (RequestDenied); reason: "The request was denied by service delegate (SBMainWorkspace) for reason: NotFound ("Application "com.example.HelloWorld" is unknown to FrontBoard")."\> { description = "The request to open "com.example.HelloWorld" failed."; failureReason = "The request was denied by service delegate (SBMainWorkspace) for reason: NotFound ("Application "com.example.HelloWorld" is unknown to FrontBoard")."; underlyingError = \<NSError: 0x7fee4140dad0; domain: FBSOpenApplicationErrorDomain; code: 4 (NotFound); reason: "Application "com.example.HelloWorld" is unknown to FrontBoard."\> { description = "The operation couldn’t be completed. Application "com.example.HelloWorld" is unknown to FrontBoard."; failureReason = "Application "com.example.HelloWorld" is unknown to FrontBoard."; }; }

Also, I meant to report that a basic “hello world” app designed in xcode runs fine. So, it seems like there’s something going on in the handoff between the corona build script and the iOS simulator?

@john carlson

I think this might be an important observation.

I also had the app on desktop which is synced with iCloud.

Yet another thing that might be linked to the problem: at first I had not enough space on my iCloud so the folder had trouble syncing. Apart from reinstalling Xcode to get it to work, I also got more space on iCloud in the meantime. 

@rob 

Just to clarify, I tried waiting for +/- an hour as well as launching the app when the emulator was already running. Regardless of the simulated device, the simulator would output some stuff suggesting that it wanted to open an app that’s wasn’t there, falling into a retry-loop on “copying app to xcode simulator”. I’m pretty sure the binary wasn’t copied at all. 

@pirx

When reinstalling xcode, did just trash the app and reinstall it? Or did you track down and trash all xcode-related preferences as well?

I just trashed the app, so I may need to be more thorough.

Okay, I feel like I’ve tried almost everything.

I’ve uninstalled xcode and Corona SDK using an app removal tool.

I’ve run OS scripts and cleared caches using Cocktail.

I’ve rebooted a few times.

I’ve reinstalled xcode and Corona SDK.

I’ve deleted devices from the CoreSimulator folder.

I’ve tried using no provisioning profile, a development profile, and a team development profile.

The build folder is on my (local) hard drive.

I’ve tried both the “HelloWorld” and “Clock” apps that come with Corona (in addition to the app I was working on).

I’ve tried running the apps from a different User account.

I always get the same error about the application being unknown to FrontBoard while Corona “hangs” trying to copy the app.

Any help/ideas what to try next? I’ll update if I figure something out.

I’m asking Engineering to look into this.

Rob

Try running Xcode and starting the simulator from there then have Corona build to it.

Also, if you haven’t rebooted in a while try that as well.

Rob

Thanks so much for the help – it’ll be late tonight or tomorrow before I can get back to it. School play to get to.

I have tried using the simulator started from xcode, but I’ll reboot and give it another shot.

I am still able to install an app directly to my iphone, so that’s really good.

Can you also try these steps:

  1. In the Xcode simulator do “Simulator -> Reset contents and files”

  2. Deleted existing Corona builds from your build folder.

  3. Chose “None” in provisioning field in Corona build window

Then try your build.

Rob

@john carlson

No, I just trashed Xcode, didn’t do any additional “cleaning”.

@Rob

When I had this problem I tried these:

  1. In the Xcode simulator do “Simulator -> Reset contents and files”

  2. Deleted existing Corona builds from your build folder.

  3. Chose “None” in provisioning field in Corona build window

 

Then try your build.

and most of these:

I’ve uninstalled xcode and Corona SDK using an app removal tool.

I’ve run OS scripts and cleared caches using Cocktail.

I’ve rebooted a few times.

I’ve reinstalled xcode and Corona SDK.

I’ve deleted devices from the CoreSimulator folder.

I’ve tried using no provisioning profile, a development profile, and a team development profile.

The build folder is on my (local) hard drive.

I’ve tried both the “HelloWorld” and “Clock” apps that come with Corona (in addition to the app I was working on).

I’ve tried running the apps from a different User account.

After reinstalling Xcode and enabling more space on my iCloud it started to work but I’m not 100% sure it wasn’t linked to something else I might have done in the meantime. 

It just worked, but I have no idea why.

I thought I’d try a quick test before rebooting and getting to work. I didn’t do anything really new.

I just did the following:

Deleted files in CoreSimulator

Deleted all traces of prior builds*

Pointed new build to a build folder on my hd (the same folder I’ve been using to avoid the “detritus” issue)

Started xcode and launched the simulator (iPhone 6 is what launched)

Reset contents and settings in the simulator

Built the project in Corona using no provisioning profile and set it to launch in iPhone 6/10.3

After a brief delay, the app started up in the running iOS simulator.

The device log looks good now.

I’ve done all of this before.

*The only potentially different thing I did was locate an extra old build from yesterday and move it to the trash. I don’t think this is “the solution” since the problem was occurring when trying to run apps I hadn’t previously built (from the Corona sample code folder) and that didn’t have any older builds to delete.

Not sure if this will keep working, but thank you both for the help. I’ll update if I learn anything more.

I had the same problem and running simulator from xcode before building trough corona worked for me