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];
Post
Replies
Boosts
Views
Activity
this crash only occur in iOS13.1.3~13.5.1, But I didn't see any change about CFNetwork here
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)
My project originally did not have Swift, because WidgetKit appeared, I introduced this, but I did not use Swift in the main project
Anyone Can help me? Or Explain Why?😭
Well done!
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