libMobileGestalt MobileGestaltSupport.m:153 MobileGestalt.c:550 Xcode 控制台
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/43227082/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
libMobileGestalt MobileGestaltSupport.m:153 MobileGestalt.c:550 Xcode Console
提问by Abdu
I am getting Following messages on Xcode Console View
我在 Xcode 控制台视图上收到以下消息
libMobileGestalt MobileGestaltSupport.m:153: pid 231 (myproject) does not have sandbox access for frZQaeyWLUvLjeuEK43hmg and IS NOT appropriately entitled
libMobileGestalt MobileGestalt.c:550: no access to InverseDeviceID (see )
libMobileGestalt MobileGestaltSupport.m:153: pid 231 (myproject) 没有 frZQaeyWLUvLjeuEK43hmg 的沙箱访问权限,并且没有适当的授权
libMobileGestalt MobileGestalt.c:550:无法访问 InverseDeviceID(请参阅 参考资料)
MacOs Sierra Version: 10.12.4 Xcode Version 8.3 Programming Language : Objective C
MacOs Sierra 版本:10.12.4 Xcode 版本 8.3 编程语言:Objective C
I get this message after application launch, Device is plugged with xcode while running the application. It seems like a rare issue. Anyone can help me to solve this?
我在应用程序启动后收到此消息,设备在运行应用程序时插入了 xcode。这似乎是一个罕见的问题。任何人都可以帮我解决这个问题吗?
回答by inigo333
I had a similar issue:
我有一个类似的问题:
2017-08-04 12:02:44.936288+0100 Demos[1112:472604] libMobileGestalt MobileGestaltSupport.m:153: pid 1112 (Demos) does not have sandbox access for frZQaeyWLUvLjeuEK43hmg and IS NOT appropriately entitled
2017-08-04 12:02:44.936524+0100 Demos[1112:472604] libMobileGestalt MobileGestalt.c:550: no access to InverseDeviceID (see )
2017-08-04 12:02:44.970997+0100 Demos[1112:472749] [INFO] {DefaultFileSource}[Database]: cannot open file at line 38277 of [0e5ffd9123] (Code 14)
2017-08-04 12:02:44.971157+0100 Demos[1112:472749] [INFO] {DefaultFileSource}[Database]: [0e5ffd9123]:38277: (0) open(/var/mobile/Containers/Data/Application/735DAEF4-D6F0-4565-A89E-4FA3A377485B/Library/Application Support/navenio.Demos/.mapbox/cache.db) - (Code 14)
2017-08-04 12:02:44.936288+0100 Demos[1112:472604] libMobileGestalt MobileGestaltSupport.m:153: pid 1112 (Demos) 没有适当地名为 frZQaeyWLUvLjeu 的沙箱访问权限
2017-08-04 12:02:44.936524+0100 Demos[1112:472604] libMobileGestalt MobileGestalt.c:550:无法访问 InverseDeviceID(参见 )
2017-08-04 12:02:44.970997+0100 Demos[1112:472749] [INFO] {DefaultFileSource}[Database]:无法在 [0e5ffd9123] 的第 38277 行打开文件(代码 14)
2017-08-04 12:02:44.971157+0100 Demos[1112:472749] [INFO] {DefaultFileSource}[Database]: [0e5ffd9123]:38277: (0) open(/var/mobile/Containers/Data/ 735DAEF4-D6F0-4565-A89E-4FA3A377485B/Library/Application Support/navenio.Demos/.mapbox/cache.db)-(代码14)
Finally I followed the link indicated there: rdar://problem/11744455and it pointed me in the right direction. In my case, it had to do with user's permissions to use their location:
最后,我按照那里指示的链接进行操作:rdar://problem/11744455,它为我指明了正确的方向。就我而言,这与用户使用其位置的权限有关:
I've managed to solve the same problem for MKMapView. Apparently, that happens when your app's current permissions state doesn't correspond to entitled (declared in Info.plist) one. That effecively means that you need to call APIs to gather user's permissions explicitly and preemptively. (E.g. LocationManager.requestWhenInUseAuthorization before displaying a map with user location on it)
我已经设法为 MKMapView 解决了同样的问题。显然,当您的应用程序的当前权限状态与已授权(在 Info.plist 中声明)不对应时,就会发生这种情况。这实际上意味着您需要调用 API 来显式地、抢先地收集用户的权限。(例如 LocationManager.requestWhenInUseAuthorization 在显示带有用户位置的地图之前)
Maybe your situation is different. But still ,there's a bunch of cases covered in that link.
可能你的情况不一样。但是,该链接中涵盖了很多案例。
回答by b123400
I came across the same issue, it turns out to be issue with multithreading.
我遇到了同样的问题,结果是多线程问题。
Multiple threads was accessing the same piece of data (to be exact, EAGLContext
, and some OpenGL stuffs) and probably messed up the memory.
The issue is gone after making sure accesses are synchronised.
多个线程正在访问同一块数据(确切地说,是EAGLContext
OpenGL 的一些东西)并且可能弄乱了内存。确保访问同步后,问题就消失了。
回答by Tommie C.
Update #1:
更新 #1:
Additionally, I found that the same message appeared in later builds but crashes were associated with invalid Outlets in my storyboard that needed to be renamed or unlinked from the storyboard/controller: Terminating app due to uncaught exception 'NSUnknownKeyException',...
此外,我发现在以后的版本中出现了相同的消息,但崩溃与我的故事板中的无效插座相关联,需要重命名或取消与故事板/控制器的链接: Terminating app due to uncaught exception 'NSUnknownKeyException',...
Original Response
原始回复
In my case, I started seeing this issue after adding Firebase pods into my application. After some debugging with a fresh stub, I fixed my issue by adding the custom Google-Sign-In URL Scheme to my projects URL Types
at the bottom of the info pane.
就我而言,在将 Firebase pod 添加到我的应用程序后,我开始看到这个问题。在使用新的存根进行一些调试后,我通过URL Types
在信息窗格底部向我的项目添加自定义 Google 登录 URL 方案来解决我的问题。
As noted in the instructions:
如说明中所述:
- From your
GoogleService-Info.plist
, copy the value from theREVERSED_CLIENT_ID
key - Click on your blue project file
- Go to the Info Section on the Project Pane
- At the bottom of the pane, Add a new URL Type and paste the copied
text into the
URL Schemes
field
- 从您的
GoogleService-Info.plist
,从REVERSED_CLIENT_ID
键复制值 - 单击您的蓝色项目文件
- 转到项目窗格上的信息部分
- 在窗格底部,添加新的 URL 类型并将复制的文本粘贴到
URL Schemes
字段中
(Source, Google Instructions)
(来源,谷歌说明)
回答by Lahiru Pinto
I am getting the same issue when trying to display the GoogleMapusing GMSMapView. but it is just a warning (I still don't know how to get rid of it). What i wanted to say is the Google Map view display and functionality works fine with this warning too.(I checked in IOS 10.3)
尝试使用 GMSMapView显示GoogleMap时,我遇到了同样的问题。但这只是一个警告(我仍然不知道如何摆脱它)。我想说的是Google 地图视图显示和功能在此警告下也能正常工作。(我检查了 IOS 10.3)
check if you are trying to display the map in a subview there is a separate way to display (This is an easy guide i found - http://www.ryanwright.me/cookbook/ios/obj-c/maps/gmap/subview)
检查您是否尝试在子视图中显示地图,有一种单独的显示方式(这是我找到的一个简单指南 - http://www.ryanwright.me/cookbook/ios/obj-c/maps/gmap/子视图)
otherwise try
否则试试
self.view = gmsMapView;
self.view = gmsMapView;