Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/asp.net-mvc-3/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
使用AVSpeechSynthesizer时在iOS 11上崩溃_Ios_Xcode_Ios11_Avspeechsynthesizer - Fatal编程技术网

使用AVSpeechSynthesizer时在iOS 11上崩溃

使用AVSpeechSynthesizer时在iOS 11上崩溃,ios,xcode,ios11,avspeechsynthesizer,Ios,Xcode,Ios11,Avspeechsynthesizer,我们的应用程序使用AVSpeechSynthesizer说出短文本。iOS 11发布后,我们开始在Apple私有类中看到Crashlytics的崩溃报告,AXSpeechManager: Crashed: com.apple.main-thread EXC_BAD_ACCESS KERN_INVALID_ADDRESS 0x0000000000000010 libAXSpeechManager.dylib__61-[AXSpeechManager speechSynthesizer:didSt

我们的应用程序使用
AVSpeechSynthesizer
说出短文本。iOS 11发布后,我们开始在Apple私有类中看到Crashlytics的崩溃报告,
AXSpeechManager

Crashed: com.apple.main-thread
EXC_BAD_ACCESS KERN_INVALID_ADDRESS 0x0000000000000010

libAXSpeechManager.dylib__61-[AXSpeechManager speechSynthesizer:didStartSpeakingRequest:]_block_invoke + 48
在调试过程中,我可以看到当
AVSpeechSynthesizer
正在说文本时调用此方法。但我无法在设备上或模拟器中重现这种崩溃


是否有人有相同的问题,或有什么线索可以导致它?我们的应用程序允许用户编辑将被合成的文本。也许,一些用户输入的文本会导致AXSpeechManager崩溃?

您找到解决方法了吗?@MohitSingh,不是真的。现在我认为崩溃的原因可能与iOS 11没有直接联系。以前的开发人员编写的代码使用全局变量存储为每段文本创建的AVSpeechSynthesizer对象。我已经重写了代码,只有一个AVSpeechSynthesizer实例,但现在说它是否有用还为时过早。可能就是这样!如果你觉得时间对你有用的话,就让我们来。可能会有更多的用户为此而挣扎。感谢您的回复:)