Xcode - Mac App - Bootstrap loading error on startup

I am building a C ++ Mac application with Xcode. I did this before without any problems, but a few weeks ago I started a new project and this one has a problem.

Launch message

When I launch the application, this message appears in the console after the call SDL_GL_CreateContext

bootstrap_check_in():  (os/kern) unknown error code (44c)

I had never seen this before, and I don’t know what that means. The application is still starting up.

Opening popups

osascriptdoes not work any more. When this command is called,

osascript  -e 'try' -e 'POSIX path of ( choose file name with prompt "Save screenshot" default name "Screenshot.png" )' -e 'on error number -128' -e 'end try'

this message appears in the console:

2017-11-25 10:50:19.837159+1030 osascript[7910:487965] +[NSXPCSharedListener endpointForReply:withListenerName:]: an error occurred while attempting to obtain endpoint for listener 'com.apple.view-bridge': Connection interrupted
2017-11-25 10:50:19.838056+1030 osascript[7910:487963] *** Assertion failure in +[NSXPCSharedListener connectionForListenerNamed:fromServiceNamed:], /BuildRoot/Library/Caches/com.apple.xbs/Sources/ViewBridge/ViewBridge-341.1/NSXPCSharedListener.m:421
2017-11-25 10:50:19.838724+1030 osascript[7910:487963] *** Assertion failure in -[NSVBSavePanel viewWillInvalidate:], /BuildRoot/Library/Caches/com.apple.xbs/Sources/AppKit/AppKit-1561.10.101/Nav.subproj/OpenAndSavePanelRemote/NSVBOpenAndSavePanels.m:387
2017-11-25 10:50:19.879032+1030 osascript[7910:487963] -[NSVBSavePanel init] caught non-fatal NSInternalInconsistencyException 'bridge absent' with backtrace

I excluded the stack trace. Comment if you want me to enable stack tracing.

Random message

Sometimes a different message appears on the console.

2017-11-26 11:09:14.994459+1030 Buttons[28532:1663094] [User Defaults] Couldn't read values in CFPrefsPlistSource<0x6000000e6b80> (Domain: com.apple.PowerManagement, User: kCFPreferencesAnyUser, ByHost: Yes, Container: (null), Contents Need Refresh: Yes): accessing preferences outside an application container requires user-preference-read or file-read-data sandbox access, detaching from cfprefsd

Tracks

The call SDL_GetPrefPathgives different paths in this application.

This app

SDL_GetPrefPath("company", "my app") -> "/Users/indikernick/Library/Containers/company.my-app/Data/Library/Application Support/company/my app/"

Another application that is not broken

SDL_GetPrefPath("company", "my app") -> "/Users/indikernick/Library/Application Support/company/my app/"

What all

, . Github, , , . , Xcode 9.0 MacOS 10.13.1

.

+6
1
+5

All Articles