Reply to Error -11819 "Cannot Complete Action" on iOS 14.5 I was getting the same error. Further digging made me find out it's because of high memory usage. wrapping the body of the loop inside autoreleasepool fixed it in my case. This answer on stackoverflow helped me a lot. Media Technologies Audio Dec ’23