gpt4 book ai didi

interface-builder - MonoMac:和 Xcode 4.0 错误: "Unknown Window class MainWindow in Interface Builder file"

转载 作者:行者123 更新时间:2023-12-04 07:47:06 25 4
gpt4 key购买 nike

我创建了一个新的 MonoMac 项目,并使用 Interface Builder (Xcode) 打开了 MainWindow.xib。做一个简单的更改(重命名窗口标题)后,项目无法再构建。
有谁知道如何解决这一问题?

我在 OS X 10.6.7 上使用 MonoDevelop 2.6、MonoFramework-2.10.1 和 Xcode 4.0。

这是错误消息:

2011-03-28 18:45:39.986 HelloWorld[30332:613] Unknown Window class MainWindow in Interface Builder file, creating generic Window instead

Unhandled Exception: System.InvalidCastException: Cannot cast from source type to destination type. at HelloWorld.MainWindowController.get_Window () <0x0002e> at HelloWorld.AppDelegate.FinishedLaunching (MonoMac.Foundation.NSObject) <0x0003d> at (wrapper dynamic-method) object.[HelloWorld.AppDelegate.Void FinishedLaunching(MonoMac.Foundation.NSObject)] (MonoMac.Foundation.NSObject,MonoMac.ObjCRuntime.Selector,MonoMac.Foundation.NSObject) <0x00033> at (wrapper native-to-managed) object.[HelloWorld.AppDelegate.Void FinishedLaunching(MonoMac.Foundation.NSObject)] (MonoMac.Foundation.NSObject,MonoMac.ObjCRuntime.Selector,MonoMac.Foundation.NSObject) <0x000eb> at (wrapper managed-to-native) MonoMac.AppKit.NSApplication.NSApplicationMain (int,string[]) <0x00003> at MonoMac.AppKit.NSApplication.Main (string[]) <0x00017> at HelloWorld.MainClass.Main (string[]) <0x00019>



谢谢你的帮助。

干杯

PS:我在 http://monotouch.net/Documentation/Troubleshoot#Unknown_class_XXXX_in_Interface_Builder_filebut 上找到了故障排除帮助我想在这种情况下它不算数,因为默认情况下 MainWindow 类已经存在..

最佳答案

我想我已经找到了答案:
http://go-mono.com/forums/#nabble-td3390853

现在并不真正支持 Xcode 4.0..但我希望其他人纠正我:-)

关于interface-builder - MonoMac:和 Xcode 4.0 错误: "Unknown Window class MainWindow in Interface Builder file",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5463677/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com