Posts

Post not yet marked as solved
13 Replies
As hacky as this is, I found that briefly suspending and resuming the download task gets progress events firing again. I do this in response to UIApplicationDidBecomeActiveNotification. I'm not sure if all the thread dispatching is necessary but it gets the job done. [self.sharedBackgroundSession getAllTasksWithCompletionHandler:^(NSArray<__kindof NSURLSessionTask *> * _Nonnull tasks) { for (NSURLSessionTask *sessionTask in tasks) { if (sessionTask.state == NSURLSessionTaskStateRunning) { dispatch_async(dispatch_get_main_queue(), ^{ [sessionTask suspend]; dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(1 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{ [sessionTask resume]; }); }); } } }];Tested on physical devices running iOS 12.4.6 and 13.4.
Post not yet marked as solved
8 Replies
Hi all,I'm seeing the same thing with TeamCity buildAgent 2019.2. I've added a bunch of shells and Xcode tools to Full Disk Access and Developer Tools privacy settings, but no luck so far. Please post if you find a solution.note: Execution policy exception registration failed and was skipped: Error Domain=NSPOSIXErrorDomain Code=1 "Operation not permitted"TIA,Tim