我可以通过调用
将应用程序内置的铃声用于CallKit的来电let configuration = CXProviderConfiguration(localizedname:"MyApp")
configuration.ringtonesound = "mysound.wav"
但是,我想使用系统铃声,例如存储在“ /library/Ringtones/Beacon.m4r”中的“ Beacon”铃声。将configuration.ringtonesound设置为“ /library/Ringtones/Beacon.m4r”、“Ringtones/Beacon.m4r”、“Beacon.m4r”均无效。
有人知道是否可以使用系统铃声,以及如何使用它们吗?
要重复:问题不在于播放铃声,这很容易。问题是使CallKit将系统铃声用于来电。