Post

Replies

Boosts

Views

Activity

Reply to nw_protocol_error Crash on iOS 17.2 and later versions
NSOperationQueue * queue = [[NSOperationQueue alloc] init]; queue.maxConcurrentOperationCount = 1; NSURLSessionConfiguration *config = [NSURLSessionConfiguration defaultSessionConfiguration]; _session = [NSURLSession sessionWithConfiguration:config delegate:[XXWebImageWeakProxy proxyWithTarget:self] delegateQueue:queue]; …… _sessionTask = [_session dataTaskWithRequest:_request]; [_sessionTask resume]; -- (void)URLSession:(NSURLSession *)session task:(NSURLSessionTask *)task didReceiveChallenge:(NSURLAuthenticationChallenge *)challenge completionHandler:(void (^)(NSURLSessionAuthChallengeDisposition disposition, NSURLCredential * _Nullable credential))completionHandler { @autoreleasepool { NSURLSessionAuthChallengeDisposition disposition = NSURLSessionAuthChallengePerformDefaultHandling; NSURLCredential *creadential = nil; if ([challenge.protectionSpace.authenticationMethod isEqualToString:NSURLAuthenticationMethodServerTrust]) { creadential = [NSURLCredential credentialForTrust:challenge.protectionSpace.serverTrust]; if (creadential) { disposition = NSURLSessionAuthChallengeUseCredential; } else { disposition = NSURLSessionAuthChallengePerformDefaultHandling; } } else { if ([challenge previousFailureCount] == 0) { creadential = _credential; if (creadential) { disposition = NSURLSessionAuthChallengeUseCredential; } else { disposition = NSURLSessionAuthChallengePerformDefaultHandling; } } else { disposition = NSURLSessionAuthChallengePerformDefaultHandling; } } if (completionHandler) { completionHandler(disposition, creadential); } } }
Topic: App & System Services SubTopic: Core OS Tags:
Jan ’24
Reply to Urgent: new build for TestFlight could not install
I encountered the same problem. Problem Description We are experiencing consistent TestFlight installation failures across multiple devices for our app com.lscsmartconnection.smart. The app has successfully passed App Store review and is available for download, but TestFlight beta testing is failing during the installation process. App Information Bundle ID: com.lscsmartconnection.smart App UUID: 60FD30FB-44AF-4CE9-B2C5-6B098329AB11 TestFlight Status: Installation fails during ServiceExtension phase App Store Status: Successfully approved and available Error Details Primary Error: ServiceExtension call 7A5A7F04-DD5B-421F-8D7E-23D8799D641C -> didReachTerminalPhaseWithBetaBundleID. bundleID:com.lscsmartconnection.smart, bundleURL: (null) phaseID:Failed Secondary Errors: AMSAbsinthe Authentication Failure: AMSAbsinthe: Failed to load Absinthe requests from bag. Will continue without adding any signing headers. error = Error Domain=AMSErrorDomain Code=204 "Bag Value Missing" Sandbox Permission Denied: Sandbox: TestFlight(51868) deny(1) mach-lookup com.apple.aa.daemon.xpc XPC Connection Failures: failed to do a bootstrap look-up: xpc_error=[159: Unknown error: 159] Connection invalidated
Oct ’25