Post

Replies

Boosts

Views

Activity

Comment on Passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution
func application( _ application: UIApplication, handleEventsForBackgroundURLSession identifier: String, completionHandler: @escaping () -> Void) has no async version, differently of many other functions. So I need to store that completion handler somewhere in order to use it, but it is not clear where without producing errors.
Topic: Programming Languages SubTopic: Swift Tags:
May ’26
Comment on Crash while presenting a media picker for Music
Of course the main app has the privacy string in info.plist, as well as the test app, otherwise no message would be delivered. I have no other device where to install the app, but I'm afraid some of my users might have the same problem. How do I revoke the permission, should I switch off the Library and Apple Music switch?
Topic: Media Technologies SubTopic: Audio Tags:
Mar ’26
Comment on Type 'class' does not conform to protocol 'protocol'
Non-'@objc' method 'locationManager(:didFailWithError:)' does not satisfy optional requirement of '@objc' protocol 'CLLocationManagerDelegate' ) Requirement 'locationManager(:didFailWithError:)' declared here (CoreLocation.CLLocationManagerDelegate.locationManager) and many more of the same kind I have no space to insert in this comment.
Replies
Boosts
Views
Activity
May ’26
Comment on Passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution
func application( _ application: UIApplication, handleEventsForBackgroundURLSession identifier: String, completionHandler: @escaping () -> Void) has no async version, differently of many other functions. So I need to store that completion handler somewhere in order to use it, but it is not clear where without producing errors.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
May ’26
Comment on Passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution
Of course I also sue Swift 6. The app delegate function just has the completion handler and no version with async and throws. And I need to store it in an actor to check that is not used by different threads contemporarily. So I do not understand why your version produces no error and mine does.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
May ’26
Comment on Crash while presenting a media picker for Music
Of course the main app has the privacy string in info.plist, as well as the test app, otherwise no message would be delivered. I have no other device where to install the app, but I'm afraid some of my users might have the same problem. How do I revoke the permission, should I switch off the Library and Apple Music switch?
Topic: Media Technologies SubTopic: Audio Tags:
Replies
Boosts
Views
Activity
Mar ’26