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 Sending 'geoRegion' risks causing data races
Not a very comforting message. When shall you port Api functions to Swift not to have to make those strange concoctions, just to have it compiling?
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
3w
Comment on Sending 'geoRegion' risks causing data races
Still it seems Apple is progressively checking all those annotations as errors. I hope, though, before that happens, all affected code shall be ported to swift, instead go bringing along Objective-C code.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
3w
Comment on Passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution
Still now it gives no error, and that is quite good for me, having bounced my head against a wall for a month trying to port my app to Swift 6...
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
May ’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 Sending 'geoRegion' risks causing data races
As a matter of fact I moved everything in the actor and the error went away.
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
Comment on Crash while presenting a media picker for Music
Crashing on the device. It is very hard and demanding to create a new project just for that. But of course if you cannot understand what is the issue with this problem by the crash log, I'l take my time to create a new project extracting this feature.
Topic: Media Technologies SubTopic: Audio Tags:
Replies
Boosts
Views
Activity
Mar ’26
Comment on Crash while presenting a media picker for Music
At any rate I also set a requestAuthorization function that results in authorized, notwithstanding the app still crashes in the same way.
Topic: Media Technologies SubTopic: Audio Tags:
Replies
Boosts
Views
Activity
Mar ’26
Comment on Augmented Reality app unable to load the image from the camera
I wish I could; still the error surfaces while the internal apple libraries are executed, as you may see in the published logs that do not even mention files in my own project, but rather an exotic FigCaptureSourceRemote.m file, when my code is just Swift!
Replies
Boosts
Views
Activity
Jan ’25
Comment on Augmented Reality app unable to load the image from the camera
I keep updating my feedback assistant thread with no responses by Apple either there or here, and that is quite strange.
Replies
Boosts
Views
Activity
Nov ’24
Comment on Augmented Reality app unable to load the image from the camera
I'm using Xcode Version 15.2 (15C500b), because my Mac does not support newer versions.
Replies
Boosts
Views
Activity
Oct ’24