我为它构建了一个自定义控件和一个 IB 插件。如果我使用 IB 作为插件项目中的自定义可执行文件运行插件,那么一切都会像冠军一样工作。但是,如果我将框架和插件复制到“正常位置”,为它创建一个测试应用程序,然后运行模拟器 - IB 在从模拟器返回后崩溃。我已经搜索了网络和文档,但我在这些方法上找不到任何东西。知道我错过了什么吗?(顺便说一下,框架在/Library/Frameworks,插件在/Developer/Platforms/MacOSX.platform/Developer/Library/Interface Builder/Plugins)。这是来自 IB 崩溃报告的堆栈:
断言消息:“IBResizeActionInitialFrame”键没有对象。
回溯:
0.Interface Builder 0x00004d29 [IBApplication handleAssertion:inFile:onLine:]
1.InterfaceBuilderKit 0x002c74ee [IBLibraryController createDetailedDescriptionFromTemplate:]
2.InterfaceBuilderKit 0x003aad22 [NSView lastResizeAction]
3.Foundation 0x90b98a7a [NSObject valueForKey:]
4.Foundation 0x002c74ee [NSObject valueForKeyPath:b6 ]
5. InterfaceBuilderKit 0x0043cec6 [IBResourceManager 文档]
6. InterfaceBuilderKit 0x0043d6f9 [IBResourceManager 文档:willSynchronizeWithProjectFiles:project:]
7. InterfaceBuilderKit 0x002dfdae [IBDocument willSynchronizeWithProjectFiles:project:]
8. InterfaceBuilderKit 0x002df00a [IBDocument beginSyncingWithXcodeIfNeeded]
9.基金会0x90baa22e [NSRunLoop runMode:beforeDate:]
10.的CoreFoundation 0x932d6b25 CFRunLoopRunSpecific
11.的CoreFoundation 0x932d6cd8 CFRunLoopRunInMode
12.使HIToolbox 0x92f622c0 BlockUntilNextEventMatchingListInMode
13.使HIToolbox 0x92f620d9 BlockUntilNextEventMatchingListInMode
14.使HIToolbox 0x92f61f4d BlockUntilNextEventMatchingListInMode
15.了AppKit 0x95229d7d _DPSNextEvent
16 . AppKit 0x95229630 [NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:]
17. Interface Builder 0x0000276b [IBApplication nextEventMatchingMask:untilDate:inMode:dequeue:]
18. AppKit 0x9522266b [NSApplication run]
19. AppKit 0x951ef8a4 NSApplicationMain
20. Interface Builder 0x00004eca [IBApplication changeInspectorMode:]