每当我尝试从MonoTouch上传到设备时,我都会得到以下控制台输出和错误:
/Developer/MonoTouch/usr/bin/mtouch -installdev="/Users/Chris/Documents/Monotouch Projects/UITextFieldTest/UITextFieldTest/bin/iPhone/Debug/UITextFieldTest.app"
Please ensure your device is connected...
Connected to: OAI
Initializing file service...
Uploading application
Finalizing file service...
Connected to: OAI
Installing application
Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object
at MonoTouch.Installation.Installer.InstallApplication (object,System.EventArgs) <0x001b6>
at MonoTouch.Installation.Device.NotificationCallback (MonoTouch.Installation.Device/am_device_notification_callback_info&) <0x0006e>
at (wrapper native-to-managed) MonoTouch.Installation.Device.NotificationCallback (MonoTouch.Installation.Device/am_device_notification_callback_info&) <0x0003d>
at (wrapper managed-to-native) MonoTouch.CoreFoundation.CFRunLoop.CFRunLoopRun () <0x00003>
at MonoTouch.CoreFoundation.CFRunLoop.Run () <0x0000d>
at MonoTouch.Installation.Installer.InstallApplication (string) <0x00151>
at MTouch.Main (string[]) <0x032d1>
The application was terminated by a signal: SIGHUP
我尝试了很多项目,其中一些项目直接来自WROX和MonoTouch网站。所有在模拟器中完美运行,并完美编译。但是,当我尝试在设备上上传或运行它们时,我总会得到同样的错误。
我已加载有效的App Developer许可证,以及MonoTouch学生许可证。我可以通过Xcode 3.2在我的设备上创建和运行应用程序,没有任何问题。
有关导致此问题的原因以及如何解决问题的任何想法?
答案 0 :(得分:5)
我有一个类似的问题,它最终成为包含空格的解决方案名称。删除这些,它应该工作。
或者,请确保您已设置正确的配置文件。