0
我們基於Xamarin的iOS應用在iPhone上運行良好,但在iPad上崩潰。違規的調用是SetEnableIO
:Xamarin iOS在呼叫AudioUnit.SetEnableIO時中止
audioUnit = new AudioUnit.AudioUnit(component);
audioUnit.SetEnableIO(true, AudioUnitScopeType.Input, kInputBus);
在這裏,在調試窗口接收到的輸出:
2016-09-20 09:59:19.006 MyAppiOX[329:100987] critical:
Native stacktrace:
2016-09-20 09:59:19.099 MyAppiOX[329:100987] critical: 0 MyAppiOX 0x00000001001b97d8 mono_handle_native_sigsegv + 260
2016-09-20 09:59:19.099 MyAppiOX[329:100987] critical: 1 libsystem_platform.dylib 0x00000001853df348 _sigtramp + 52
2016-09-20 09:59:19.100 MyAppiOX[329:100987] critical: 2 libsystem_kernel.dylib 0x0000000185319480 <redacted> + 100
2016-09-20 09:59:19.100 MyAppiOX[329:100987] critical: 3 libsystem_kernel.dylib 0x00000001853194c8 system_set_sfi_window + 0
2016-09-20 09:59:19.100 MyAppiOX[329:100987] critical: 4 TCC 0x000000018855a560 <redacted> + 0
2016-09-20 09:59:19.100 MyAppiOX[329:100987] critical: 5 TCC 0x000000018855a45c <redacted> + 0
2016-09-20 09:59:19.100 MyAppiOX[329:100987] critical: 6 TCC 0x000000018855d52c <redacted> + 288
2016-09-20 09:59:19.100 MyAppiOX[329:100987] critical: 7 libxpc.dylib 0x000000018542401c <redacted> + 80
2016-09-20 09:59:19.101 MyAppiOX[329:100987] critical: 8 libxpc.dylib
0x0000000185423f8c <redacted> + 40
2016-09-20 09:59:19.101 MyAppiOX[329:100987] critical: 9 libdispatch.dylib 0x00000001851d91c0 <redacted> + 16
2016-09-20 09:59:19.101 MyAppiOX[329:100987] critical: 10 libdispatch.dylib 0x00000001851e7ab4 <redacted> + 732
2016-09-20 09:59:19.101 MyAppiOX[329:100987] critical: 11 libdispatch.dylib 0x00000001851e938c <redacted> + 572
2016-09-20 09:59:19.101 MyAppiOX[329:100987] critical: 12 libdispatch.dylib 0x00000001851e90ec <redacted> + 124
2016-09-20 09:59:19.101 MyAppiOX[329:100987] critical: 13 libsystem_pthread.dylib 0x00000001853e12c8 _pthread_wqthread + 1288
2016-09-20 09:59:19.102 MyAppiOX[329:100987] critical: 14 libsystem_pthread.dylib 0x00000001853e0db4 start_wqthread + 4
2016-09-20 09:59:19.102 MyAppiOX[329:100987] critical:
=================================================================
Got a SIGABRT while executing native code. This usually
indicates a fatal error in the mono runtime or one of the
native libraries used by your application.
有誰知道如何解決這個問題?問候。
環境:
Visual Studio 2015 with update 3
Xamarin 4.2.0.680
Xamarin.iOS 10.0.0.6
iPad is running iOS 10.0.1
我們需要更多的細節來幫助你。例如。這不是一個象徵性的,也不是完整的堆棧跟蹤。您沒有說明設備運行的是哪個版本的iOS,您也沒有指定確切的模型。 _latest version_也不會作爲將來引用人們閱讀您的問題的有用信息。 – poupou
謝謝你的幫助。我已經用確切的版本號更新了這篇文章。至於堆棧跟蹤,這是我在VS輸出窗口收到的。 – Peter