Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

XMPPFramework crash in iOS 16 and Xcode 14 #1223

Open
zhangylios opened this issue Sep 26, 2022 · 9 comments
Open

XMPPFramework crash in iOS 16 and Xcode 14 #1223

zhangylios opened this issue Sep 26, 2022 · 9 comments

Comments

@zhangylios
Copy link

hello, XMPPFramework runs iOS16, crashes on Xcode14 device, the error is like a screenshot, please help to update and solve it, thank you very much, XMPPFramework is great!
WeChate999a946a8c4024d342e74da6d1e6308

@andrea8000
Copy link

same problem
@zhangylios did you find any solution?

@Monks-Giorgio
Copy link

Monks-Giorgio commented Sep 27, 2022

Hi,
check if you have XMPPStream.enableBackgroundingOnSocket set to YES. In case, try not to use it

@pengxu1013
Copy link

Hi,
check if you have XMPPStream.enableBackgroundingOnSocket set to YES. In case, try not to use it

Remove the xmppStream. EnableBackgroundingOnSocket = YES; It solves the crash problem, but does not setting this property affect the functionality?

@Monks-Giorgio
Copy link

Monks-Giorgio commented Sep 28, 2022

Hi,
check if you have XMPPStream.enableBackgroundingOnSocket set to YES. In case, try not to use it

Remove the xmppStream. EnableBackgroundingOnSocket = YES; It solves the crash problem, but does not setting this property affect the functionality?

yep, for sure it affects functionality, if you need it you should use PushKit as documented in the code (from XMPPStream.h#273):

@property (readwrite, assign) BOOL enableBackgroundingOnSocket DEPRECATED_MSG_ATTRIBUTE("Background sockets are no longer available on iOS 10. You must use PushKit and the XEP-0357 module instead.");

Also check Apple documentation at OptimizeVoIP

@zhangylios
Copy link
Author

Hi,
check if you have XMPPStream.enableBackgroundingOnSocket set to YES. In case, try not to use it

Remove the xmppStream. EnableBackgroundingOnSocket = YES; It solves the crash problem, but does not setting this property affect the functionality?

yep, for sure it affects functionality, if you need it you should use PushKit as documented in the code (from XMPPStream.h#273):

@property (readwrite, assign) BOOL enableBackgroundingOnSocket DEPRECATED_MSG_ATTRIBUTE("Background sockets are no longer available on iOS 10. You must use PushKit and the XEP-0357 module instead.");

Also check Apple documentation at OptimizeVoIP

This is the answer and solved my problem, thanks a lot

@mahesh-reddy-ios
Copy link

Hi,
check if you have XMPPStream.enableBackgroundingOnSocket set to YES. In case, try not to use it

Remove the xmppStream. EnableBackgroundingOnSocket = YES; It solves the crash problem, but does not setting this property affect the functionality?

yep, for sure it affects functionality, if you need it you should use PushKit as documented in the code (from XMPPStream.h#273):
@property (readwrite, assign) BOOL enableBackgroundingOnSocket DEPRECATED_MSG_ATTRIBUTE("Background sockets are no longer available on iOS 10. You must use PushKit and the XEP-0357 module instead.");
Also check Apple documentation at OptimizeVoIP

This is the answer and solved my problem, thanks a lot

Can u please post the solution which solve your problem

@Rajai-Sunnyclock
Copy link

@love-cuteQian
Copy link

您好, 请检查您是否将 XMPPStream.enableBackgroundingOnSocket 设置为 YES。以防万一,尽量不要使用

The simulator can be retained. Use this solution directly for real machine debugging.

@pengxu1013
Copy link

pengxu1013 commented Jan 16, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants