自从升级到 Mac OS Sierra 和新的 XCode 版本后,每次我为每个 NSToolbarItems 启动我的应用程序时都会收到以下错误:
Example 1:
2016-09-29 12:46:58.659879 AppTest[] NSToolbarItem (<NSToolbarItem: >) had to adjust the size of <NSPopUpButton: > from {130, 26} to the expected size of {132, 27}. Make sure that this toolbar item view has a valid frame/min/max size. This is an app bug, please do not file a bug against AppKit or NSToolbar! Break on _NSToolbarAdjustedBorderedControlSizeBreakpoint
Example 2:
2016-09-29 12:46:58.666074 AppTest[] NSToolbarItem (<NSToolbarItem: >) had to adjust the size of <NSButton: > from {60, 25} to the expected size of {62, 27}. Make sure that this toolbar item view has a valid frame/min/max size. This is an app bug, please do not file a bug against AppKit or NSToolbar! Break on _NSToolbarAdjustedBorderedControlSizeBreakpoint
我尝试在 StoryBoard 中随意更改大小,但没有运气,当我四处搜索时,我发现有几个人在使用新操作系统时也遇到了这个问题,但没有有用的答案。
有人遇到同样的问题,有什么建议吗?
非常感谢,
马克