Xcode-Mac App-引导程序启动时签入错误 [英] Xcode - Mac App - Bootstrap check in error on launch

查看:824
本文介绍了Xcode-Mac App-引导程序启动时签入错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Xcode创建一个C ++ Mac应用程序.我之前没有做过任何问题,但是几周前我开始了一个新项目,这个项目有问题.

I'm creating a C++ Mac app with Xcode. I've done this before without any problems but I started a new project a few weeks ago and this one has problems.

启动应用程序时,调用SDL_GL_CreateContext

When I launch the app, this message appears in the console after calling SDL_GL_CreateContext

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

我以前从未见过,我也不知道这意味着什么.该应用程序仍会启动.

I've never seen this before and I don't know what it means. The app still launches though.

osascript不再起作用.调用此命令后,

osascript no longer works. When this command is invoked,

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've excluded the stack trace. Comment if you want me to include the stack trace.

有时控制台中还会显示一条消息.

Sometimes another message appears in 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's container requires user-preference-read or file-read-data sandbox access, detaching from cfprefsd

路径

SDL_GetPrefPath的调用在此应用程序中会产生不同的路径.

Paths

Calls to SDL_GetPrefPath yield different paths in this application.

此应用

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

另一个没有损坏的应用程序

Another application that isn't broken

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

仅此而已

我很确定所有这些问题都是相关的.该项目位于 Github 上,因此,如果您已看到此问题,则可以检查项目设置.如果有问题,我正在使用Xcode 9.0和MacOS 10.13.1

That's all

I'm pretty sure all of these problems are related. The project is on Github so if you've seen this problem before you can check the project settings. If it matters, I'm using Xcode 9.0 and MacOS 10.13.1

在此先感谢您的帮助.

推荐答案

您的应用程序似乎(以某种方式)被沙盒化.从SDL_GetPrefPath返回的路径(以~/Library/Containers开头)和随机"消息中可以清楚地看到这一点,该消息明确指出:

It looks like your application is (somehow) sandboxed. This is seen from the path returned by SDL_GetPrefPath, which starts with ~/Library/Containers, and from the 'random' message, which clearly states:

在应用程序容器之外访问首选项需要 用户偏好读取或文件读取数据沙箱访问

accessing preferences outside an application's container requires user-preference-read or file-read-data sandbox access

弹出错误消息也非常令人怀疑:您的应用似乎无权访问某些系统资源.

The popup error message is also very suspect: it looks like your app is not entitled to access some system resource.

您应该在xcode中签入您的应用是否启用了沙箱(例如,检查项目导航器中是否显示了名为.entitlements的属性列表文件).

You should check in xcode if sandboxing is enabled for your app (i.e. check if a property list file called .entitlements is shown in the project navigator).

有关沙箱的更多信息: https://developer.apple.com/library/content/documentation/Security/Conceptual/AppSandboxDesignGuide/AppSandboxInDepth/AppSandboxInDepth.html

More on sandboxing: https://developer.apple.com/library/content/documentation/Security/Conceptual/AppSandboxDesignGuide/AppSandboxInDepth/AppSandboxInDepth.html

这篇关于Xcode-Mac App-引导程序启动时签入错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆