您现在的位置是:首页 > 电脑 > 

Xamarin iOS会在调用AudioUnit.SetEnableIO时中止(Xamarin iOS aborts on call to AudioUnit.SetEnableIO)

2025-07-21 10:40:47
Xamarin iOS会在调用AudioUnit.SetEnableIO时中止(Xamarin iOS aborts on call to AudioUnit.SetEnableIO) 我们基于Xamarin的iOS应用在iPhone上运行良好,但在iPad上崩溃。 有问题的调用是SetEnableIO : audioUnit = new AudioUnit
Xamarin iOS会在调用AudioUnit.SetEnableIO时中止(Xamarin iOS aborts on call to AudioUnit.SetEnableIO)

我们基于Xamarin的iOS应用在iPhone上运行良好,但在iPad上崩溃。 有问题的调用是SetEnableIO :

audioUnit = new AudioUnit.AudioUnit(component); audioUnit.SetEnableIO(true, AudioUnitScopeType.Input, kInputBus);

这是在调试窗口中收到的输出:

2016-09-20 09:59:19.006 MyAppiOX[29:100987] critical: ative stacktrace: 2016-09-20 09:59:19.099 MyAppiOX[29:100987] critical: 0 MyAppiOX 0x00000001001b97d8 mono_handle_native_sigse + 260 2016-09-20 09:59:19.099 MyAppiOX[29:100987] critical: 1 libsystem_platform.dylib 0x0000000185df48 _sigtramp + 52 2016-09-20 09:59:19.100 MyAppiOX[29:100987] critical: 2 libsystem_kernel.dylib 0x000000018519480 <redacted> + 100 2016-09-20 09:59:19.100 MyAppiOX[29:100987] critical: libsystem_kernel.dylib 0x0000000185194c8 system_set_sfi_window + 0 2016-09-20 09:59:19.100 MyAppiOX[29:100987] critical: 4 TCC 0x000000018855a560 <redacted> + 0 2016-09-20 09:59:19.100 MyAppiOX[29:100987] critical: 5 TCC 0x000000018855a45c <redacted> + 0 2016-09-20 09:59:19.100 MyAppiOX[29:100987] critical: 6 TCC 0x000000018855d52c <redacted> + 288 2016-09-20 09:59:19.100 MyAppiOX[29:100987] critical: 7 libxpc.dylib 0x000000018542401c <redacted> + 80 2016-09-20 09:59:19.101 MyAppiOX[29:100987] critical: 8 libxpc.dylib 0x000000018542f8c <redacted> + 40 2016-09-20 09:59:19.101 MyAppiOX[29:100987] critical: 9 libdispatch.dylib 0x00000001851d91c0 <redacted> + 16 2016-09-20 09:59:19.101 MyAppiOX[29:100987] critical: 10 libdispatch.dylib 0x00000001851e7ab4 <redacted> + 72 2016-09-20 09:59:19.101 MyAppiOX[29:100987] critical: 11 libdispatch.dylib 0x00000001851e98c <redacted> + 572 2016-09-20 09:59:19.101 MyAppiOX[29:100987] critical: 12 libdispatch.dylib 0x00000001851e90ec <redacted> + 124 2016-09-20 09:59:19.101 MyAppiOX[29:100987] critical: 1 libsystem_pthread.dylib 0x0000000185e12c8 _pthread_wqthread + 1288 2016-09-20 09:59:19.102 MyAppiOX[29:100987] critical: 14 libsystem_pthread.dylib 0x0000000185e0db4 start_wqthread + 4 2016-09-20 09:59:19.102 MyAppiOX[29: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 Xamarin 4.2.0.680 Xamarin.iOS 10.0.0.6 iPad is running iOS 10.0.1

Our Xamarin-based iOS app works fine on iPhone but crashes on iPad. The offending call is to SetEnableIO:

audioUnit = new AudioUnit.AudioUnit(component); audioUnit.SetEnableIO(true, AudioUnitScopeType.Input, kInputBus);

Here is output received in the debug window:

2016-09-20 09:59:19.006 MyAppiOX[29:100987] critical: ative stacktrace: 2016-09-20 09:59:19.099 MyAppiOX[29:100987] critical: 0 MyAppiOX 0x00000001001b97d8 mono_handle_native_sigse + 260 2016-09-20 09:59:19.099 MyAppiOX[29:100987] critical: 1 libsystem_platform.dylib 0x0000000185df48 _sigtramp + 52 2016-09-20 09:59:19.100 MyAppiOX[29:100987] critical: 2 libsystem_kernel.dylib 0x000000018519480 <redacted> + 100 2016-09-20 09:59:19.100 MyAppiOX[29:100987] critical: libsystem_kernel.dylib 0x0000000185194c8 system_set_sfi_window + 0 2016-09-20 09:59:19.100 MyAppiOX[29:100987] critical: 4 TCC 0x000000018855a560 <redacted> + 0 2016-09-20 09:59:19.100 MyAppiOX[29:100987] critical: 5 TCC 0x000000018855a45c <redacted> + 0 2016-09-20 09:59:19.100 MyAppiOX[29:100987] critical: 6 TCC 0x000000018855d52c <redacted> + 288 2016-09-20 09:59:19.100 MyAppiOX[29:100987] critical: 7 libxpc.dylib 0x000000018542401c <redacted> + 80 2016-09-20 09:59:19.101 MyAppiOX[29:100987] critical: 8 libxpc.dylib 0x000000018542f8c <redacted> + 40 2016-09-20 09:59:19.101 MyAppiOX[29:100987] critical: 9 libdispatch.dylib 0x00000001851d91c0 <redacted> + 16 2016-09-20 09:59:19.101 MyAppiOX[29:100987] critical: 10 libdispatch.dylib 0x00000001851e7ab4 <redacted> + 72 2016-09-20 09:59:19.101 MyAppiOX[29:100987] critical: 11 libdispatch.dylib 0x00000001851e98c <redacted> + 572 2016-09-20 09:59:19.101 MyAppiOX[29:100987] critical: 12 libdispatch.dylib 0x00000001851e90ec <redacted> + 124 2016-09-20 09:59:19.101 MyAppiOX[29:100987] critical: 1 libsystem_pthread.dylib 0x0000000185e12c8 _pthread_wqthread + 1288 2016-09-20 09:59:19.102 MyAppiOX[29:100987] critical: 14 libsystem_pthread.dylib 0x0000000185e0db4 start_wqthread + 4 2016-09-20 09:59:19.102 MyAppiOX[29: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.

Does anyone know How to get around this problem? Regards.

Environment:

Visual Studio 2015 with update Xamarin 4.2.0.680 Xamarin.iOS 10.0.0.6 iPad is running iOS 10.0.1

最满意答案

我们终于到了问题。 显然,Xamarin还没有在iOS 10上完全测试过。操作系统引入了一些新的隐私设置。 如果您没有定义iOS应用程序打算使用的设置,您将看到您的应用程序因SIGABRT错误而崩溃。 隐私设置可以在Info.plist.定义Info.plist. 在我们的例子中,它是SMicrophoneUsageDescription. 希望您觉得这个有帮助。

We finally nailed the problem down. Apparently, Xamarin has not yet been fully tested on iOS 10. The OS has introduced some new privacy settings. If you do not define the settings that your iOS app intends to use, you will see your app crash with SIGABRT errors. The privacy settings can be defined in Info.plist. In our case, it was SMicrophoneUsageDescription. Hope you find this useful.

#感谢您对电脑配置推荐网 - 最新i3 i5 i7组装电脑配置单推荐报价格的认可,转载请说明来源于"电脑配置推荐网 - 最新i3 i5 i7组装电脑配置单推荐报价格

本文地址:http://www.dnpztj.cn/diannao/50305.html

相关标签:无
上传时间: 2023-04-14 14:39:48
留言与评论(共有 5 条评论)
本站网友 牛奶蜂蜜面膜怎么做
21分钟前 发表
100987] critical
本站网友 e网
14分钟前 发表
19.100 MyAppiOX[29
本站网友 小彬
27分钟前 发表
100987] critical
本站网友 大门
7分钟前 发表
19.006 MyAppiOX[29