简体   繁体   English

Xcode模拟器已打开。 由于音频引擎,Jenkins Space崩溃了自动测试

[英]Xcode simulator on. Jenkins space crashes automated tests due to audio engine

I have a swift app that has automated tests, a few of which trigger sounds for different things. 我有一个快速的应用程序,它具有自动测试功能,其中一些会触发不同事物的声音。 They run fine on my local machine in a simulator and on a real device. 它们可以在我的本地计算机上的模拟器和真实设备上正常运行。

On our Jenkins machine which spins off slave nodes for each build, the tests that trigger audio crash. 在我们的Jenkins机器上,该机器会为每个构建分拆从属节点,这些测试会触发音频崩溃。 The root cause seems to that AvAudioPlayerNode fails due to the engine not running. 根本原因似乎是AvAudioPlayerNode由于引擎未运行而失败。

[avae] AVAEInternal.h:70:_AVAE_Check: required condition is false: [AVAudioPlayerNode.mm:536:StartImpl: (_engine->IsRunning())] [avae] AVAEInternal.h:70:_AVAE_Check:所需条件为假:[AVAudioPlayerNode.mm:536:StartImpl:(_engine-> IsRunning())]

This worked fine in iOS 11.2 and Xcode 9. We've just got our Jenkins machine and code updated for iOS 12 and Xcode 10. 在iOS 11.2和Xcode 9上运行良好。我们刚刚为Jenkins机器和针对iOS 12和Xcode 10的代码进行了更新。

Has anyone seen this before? 谁看过这个吗?

I think the way the simulator is handling pass through from the microphone on the computer into the virtual microphone has changed in Xcode10. 我认为模拟器的处理方式已从Xcode10中的计算机麦克风传到虚拟麦克风。 Jenkins and Travis computers often are virtual machines without a microphone at all. Jenkins和Travis计算机通常是完全没有麦克风的虚拟机。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM