我有一个在第一次运行时询问用户是否允许通知的应用程序。它为此提出了标准OS UI。我现在使用Xcode服务器进行CI,当我将其安装到服务器的模拟器上时,它们会陷入"允许通知"
上有没有办法在bot脚本中自动触发此?
注意:Xcode 8.x,Macos Sierra。
可以根据需要添加更多详细信息。
可以查看XCTestCase.addUIInterruptionMonitor(withDescription:handler:)
API,可用于提供闭合,当出现通知许可证提示等警报时将调用。
https://developer.apple.com/reference/xctest/xctestcase/1496273-adduiinterruptionMonitor