I'm using the instructions located here to create an embedded helper application that will open the main application, and register the helper app as a login item.
The helper app is currently started at login, but is failing to open the main application.
The system's Console repeats the following error over and over for about 5 minutes then starts: 500px Uploader Helper: LSOpenFromURLSpec() returned -10827 for application 500px Uploader path (null).

The helper app is using it's Application Delegate to launch the main app with the following code:
- (void)applicationDidFinishLaunching:(NSNotification *)aNotification
{
dispatch_async(dispatch_get_main_queue(), ^{
BOOL success = [[NSWorkspace sharedWorkspace] launchApplication:@"500px Uploader"];
if (success)
{
NSLog(@"YEAHHHH");
exit(EXIT_SUCCESS);
}
else
{
NSLog(@"NOOOOO");
exit(EXIT_FAILURE);
}
});
}
According to other questions on SO, this is the recommended way to open applications in the sandboxed environment.
I have tried to delay the launch until after the first run loop with no success. A coworker has verified that the issue isn't related to my development environment. I've also tried using the absolute path as the argument to launchApplication:. launchApplication: is also failing to open other applications in /Applications.
Does anyone know of any reason why this might not be working or why it would start to work after a few minutes?