我有一個非常基本的應用程序,用於測試第三方庫綁定。我通過接口構建器創建了一個IBAction。當我點擊連接到IBAction的按鈕時,我的應用程序崩潰。這隻發生在調試模式下。該應用程序不會在發佈模式下崩潰或在我的設備上運行。甚至在調用任何IBAction方法之前發生崩潰。Xamarin應用程序僅在調試模式下崩潰
這是一個記錄的控制檯上的錯誤:
2014-09-12 08:38:45.293 VinScanSandBox[33818:70b] instance: <CSSNMobileSDKController: 0x7a6a8a30>
mono-rt: Stacktrace:
mono-rt: at <unknown> <0xffffffff>
mono-rt: at (wrapper managed-to-native) MonoTouch.UIKit.UIApplication.UIApplicationMain (int,string[],intptr,intptr) <IL 0x000a6, 0xffffffff>
mono-rt: at MonoTouch.UIKit.UIApplication.Main (string[],string,string) [0x0004c] in /Developer/MonoTouch/Source/monotouch/src/UIKit/UIApplication.cs:39
mono-rt: at VinScanSandBox.Application.Main (string[]) [0x00008] in /Users/scordova/Projects/VinScanSandBox/VinScanSandBox/Main.cs:17
mono-rt: at (wrapper runtime-invoke) <Module>.runtime_invoke_void_object (object,intptr,intptr,intptr) <IL 0x00050, 0xffffffff>
mono-rt:
Native stacktrace:
mono-rt:
=================================================================
Got a SIGSEGV while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application.
=================================================================
更新:取消選中「啓用調試」修復崩潰,但爲什麼它在第一時間發生的事情並不向我解釋。仍在尋找完整的解決方案。