Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/swift/19.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

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/three.js/2.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
Swift CallerID扩展的最大限制_Swift_Caller Id_Call Directory Extension - Fatal编程技术网

Swift CallerID扩展的最大限制

Swift CallerID扩展的最大限制,swift,caller-id,call-directory-extension,Swift,Caller Id,Call Directory Extension,我已在我的应用程序中包含呼叫者分机。存储数字有限制吗?当我试图保存27000个以上的数字时,它会将我抛出Error Domain=com.apple.CallKit.Error.calldirectorymanager code=2”(空)(基本上加载中断)。我尝试过搜索文档,但找不到。有人能告诉我正确的方向吗 func addAllIdentificationPhoneNumbers(to context: CXCallDirectoryExtensionContext) {

我已在我的应用程序中包含呼叫者分机。存储数字有限制吗?当我试图保存27000个以上的数字时,它会将我抛出
Error Domain=com.apple.CallKit.Error.calldirectorymanager code=2”(空)
(基本上加载中断)。我尝试过搜索文档,但找不到。有人能告诉我正确的方向吗

func addAllIdentificationPhoneNumbers(to context: CXCallDirectoryExtensionContext) {
    
    let list = CallerExtensionHelper.shared.getPhoneList()//List of sorted phone numbers and description fetched from coreData
    if list != nil, let numbers = list as? [CallerID]{
                    context.removeAllIdentificationEntries()
        for savedNumber in numbers{
            let number:CXCallDirectoryPhoneNumber = savedNumber.number
                context.addIdentificationEntry(withNextSequentialPhoneNumber: number, label: savedNumber.name!)
        }
    }
}