问题
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'PushKit apps that use VoIP push must link either CallKit or IncomingCallNotifications frameworks.'
This error is displayed on xcode 11 Beta that uses iOS 13. No issue on xcode10.
PushKit apps that use VoIP push must link either CallKit or IncomingCallNotifications frameworks. #voip
回答1:
Embedding CallKit.framework in General Settings of the Project resolves this issue.
On iOS 13, Apple now mandates that all VoIP push notifications be reported to the CallKit framework as a new call
Important changes mentioned here:
https://developer.apple.com/documentation/pushkit/pkpushregistrydelegate/2875784-pushregistry?language=objc
https://forums.developer.apple.com/thread/117939
来源:https://stackoverflow.com/questions/57704851/nsinternalinconsistencyexception-while-running-voip-enabled-apps-on-ios13