Error MonoMac: and Xcode 4.0: "Unknown MainWindow window class in interface builder file"

I created a new MonoMac project and opened MainWindow.xib using Interface Builder (Xcode). After a simple change (renamed window name), the project can no longer be created. Does anyone know how to fix this?

I am using MonoDevelop 2.6, MonoFramework-2.10.1 with Xcode 4.0 on OS X 10.6.7.

This error message is:

2011-03-28 18: 45: 39.986 HelloWorld [30332: 613] Unknown Window class MainWindow in the Interface Builder file, instead create a common window

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

Thanks for any help.

Greetings

PS: I found troubleshooting help http://monotouch.net/Documentation/Troubleshoot#Unknown_class_XXXX_in_Interface_Builder_filebut . I suppose this does not count in this case, since the MainWindow class already exists by default ..

+4
source share
2 answers

I think I found the answer: http://go-mono.com/forums/#nabble-td3390853

Xcode 4.0 is not currently supported. but I hope someone corrects me :-)

+1
source

This post provides an explanation of the incomplete support of Xcode 4.0. It is recommended that you use Xcode 3.2.6 until Xcode 4.0 is supported.

+1
source

Source: https://habr.com/ru/post/1345603/


All Articles