简体   繁体   中英

VoIP socket on iOS 16 and Xcode 14

I am developing an app which uses PJSIP library to maintain an open VoIP socket. Since updating to Xcode 14 and my device to iOS 16, the app crashes upon launch when trying to connect the VoIP socket. The crash log says the following:

Application Specific Information: Linked against modern SDK, VOIP socket will not wake. Use Local Push Connectivity instead

Any help would be appreciated.

Apple seems to be enforcing their deprecation of VoIP sockets.

You can keep PJSIP from using them by declaring

#define PJ_IPHONE_OS_HAS_MULTITASKING_SUPPORT 0

in your config_site.h before you compile pjsip. It is described here too.

i add the define in config_site.h

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM