Thank you for everyone!
I have solved this problem after updating my Xcode, maybe this is the bug of Xcode 12 Bate 2.
If Updating Don't work, do the setup below:running the extension scheme
click on debug menu -> attach to process
Post
Replies
Boosts
Views
Activity
Well done!
Anyone Can help me? Or Explain Why?😭
My project originally did not have Swift, because WidgetKit appeared, I introduced this, but I did not use Swift in the main project
the crash only happen a few time, When the crash happen,the mobile's memory is about 100mb(not all,one of them is 300mb)
this crash only occur in iOS13.1.3~13.5.1, But I didn't see any change about CFNetwork here
App May Execute this code many times, May this is the problem about this crash?
NSURL *url = [NSURL URLWithString:hostString];
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:url];
[request setAllHTTPHeaderFields:header];
NSURLSessionConfiguration *sessionConfiguration = [NSURLSessionConfiguration defaultSessionConfiguration];
sessionConfiguration.timeoutIntervalForRequest = MAXFLOAT;
self.session = [NSURLSession sessionWithConfiguration:sessionConfiguration delegate:self delegateQueue:_operationQueue];
NSURLSessionWebSocketTask *webSocketTask = [self.session webSocketTaskWithRequest:request];