错误消息'_BSMachError:(os / kern)invalid capability(20)' [英] Error message '_BSMachError: (os/kern) invalid capability (20)'
问题描述
请注意,此错误消息的级别相当低,因此在不同情况下出于不同原因会出现错误。如果你有一个在下面的答案中没有提到的场景,请考虑添加你的情况,所以这可能是引发此错误信息的各种情况的核心答案。
Please note that this error message is pretty low level, so it crops up for different reasons in different scenarios. If you have a scenario that isn't mentioned in one of the answers below, please consider adding your situation as well, so maybe this could be a central answer for various situations that raise this error message.
编辑2015年11月10日另请注意,我将自己的答案标记为答案,但这是在其他人发布之前。我想没有人应该真的被标记为答案,因为正如我们现在看到的那样......这个错误不仅仅有一个答案,因为它的级别太低了。
Edit Nov 10, 2015 Also note, I marked my own answer as the answer, but that was before anyone else had posted. I guess none should really be marked as the answer, because as we've now seen below... this error doesn't have just one answer because it's so low level.
我正在运行
- iOS 9.0模拟器
- XCode 7.0
昨天一切正常。
今天,在轮换相关的东西上做了很多工作之后,当我在模拟器中运行应用程序并旋转它时,我开始在控制台输出中收到此错误。
Today, after a bunch of work on rotation related stuff, I started getting this error in my console output when I run the app in the Simulator and I rotate it.
_BSMachError:(os / kern )无效能力(20)
_BSMachError: (os/kern) invalid capability (20)
_BSMachError:(os / kern)无效名称(15)
_BSMachError: (os/kern) invalid name (15)
- 我已经清除了我的构建文件夹,
- 我已经清理了派生数据文件夹,
- I我重置了模拟器。
- I've cleared my build folder, - I've cleaned the derived data folder, - I've reset the simulator.
我正在工作ith
-
UIViewController viewWillLayoutSubviews
-
UIViewController viewWillTransitionToSize:...
UIViewController viewWillLayoutSubviews
UIViewController viewWillTransitionToSize:...
我还在检查各种'绘图'设置IB中的Attributes Inspector。
I was also checking various 'Drawing' settings on the Attributes Inspector in IB.
我还在UIView上创建了一个实用程序类别,我创建了一堆创建 CGRect $ c的方法$ c>并帮助我为视图分配帧。
I also made a utility category on UIView where I created a bunch of methods that create CGRect
's and helps me assign frames to views.
推荐答案
好的,我还没有把它完全固定下来,但这会让你99%的路程。
我正在使用来自ESRI的第三方地图控件,而且它的某些内容与属性检查器中的其中一个绘图设置不同。我没有单独尝试每个设置来查看它是什么设置,但是当我关闭所有设置时(在红色框中),一切都像魅力一样,我在控制台中退出上面的错误消息。如果我有时间将其设置为精确设置或设置组合,我将更新答案。
Ok, I haven't pinned it down completely, but this will get you 99% of the way there. I'm using a third party map control from ESRI, and something about it doesn't like one of these drawing settings in the Attributes Inspector. I haven't tried each setting individually to see which setting it is, but when I turned all of them off (in the red box), everything worked like a charm, and I quit getting the error message above in the console. If and when I get time to nail it down to the precise setting or combination of settings, i'll update the answer.
这篇关于错误消息'_BSMachError:(os / kern)invalid capability(20)'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!