Post

Replies

Boosts

Views

Activity

Reply to Swift 6 Migration error in Sample code (Updating an app to use strict concurrency sample code) provided by Apple.
I'm getting the exact same error, very similar circumstances: extension NSItemProvider { func loadObject<T>(ofClass: T.Type) async throws -> T? where T : _ObjectiveCBridgeable, T._ObjectiveCType : NSItemProviderReading { return try await withCheckedThrowingContinuation { continuation in _ = self.loadObject(ofClass: ofClass) { item, error in switch (item, error) { case (.some(let item), .none): continuation.resume(returning: item) /* Task-isolated value of type 'T' passed as a strongly transferred parameter; later accesses could race; this is an error in the Swift 6 language mode */ case (.none, .some(let error)): continuation.resume(throwing: error) default: let error = NSError(...) continuation.resume(throwing: error) } } } } } Based on the advice below I changed the method signature to: func loadObject<T>(ofClass: T.Type) async throws -> T? where T : _ObjectiveCBridgeable, T._ObjectiveCType : NSItemProviderReading, T: Sendable which seems to have fixed it!
Topic: Programming Languages SubTopic: Swift Tags:
Sep ’24
Reply to AppKit/Mac Catalyst apps are being rejected by App Review for launching default web browser for login
In the end I had to escalate to the App Review Board, who approved the release. Since then I’ve added some text at the top of the “Notes” section of each release asking App Review not to reject me for 4.0 as use of a browser in this way is a) required and b) has been approved by App Review Board. I haven’t had an issue since then. Really not good that you are still getting rejected for this though - it doesn’t reflect well on App Review that this message still hasn’t got out.
Topic: App & System Services SubTopic: Core OS Tags:
Jun ’24
Reply to AppKit/Mac Catalyst apps are being rejected by App Review for launching default web browser for login
It's not just a GoogleSignIn issue: they just rejected my app for using completely standard OAuth 2 web authentication, for precisely this reason. It's incredibly frustrating: if they don't like it they should be complaining to the Apple team who develop ASWebAuthentication. It's not like we app developers can do anything about it - we are just caught in the middle. I've raised an appeal to App Review but I have no idea what the "Plan B" is if they reject my appeal.
Topic: UI Frameworks SubTopic: AppKit Tags:
Apr ’24
Reply to Inline Comparison on Commit seems to be forced in XCode 15 Beta 3
Another new Github Desktop user here. I've battled with Xcode 15 long enough and I'm fed up with commits which take twice as long as they should (because it's so hard to review changes) and then seem to leave half the committed files behind. And that's if it doesn't freeze. Am not sure what was driving these changes and why Apple thought adding steps, complexity and poor UX to this process was necessary but it needs a fast re-think. This isn't something we'll learn to love given time. We will just switch away.
Nov ’23
Reply to Copy context menu item
Just to add to this, it's not even consistent on the same surface in Xcode. For code it's: Right-click -> Copy -> Copy But if you want to copy the an error message or warning it's: Right-click -> Copy just like the rest of the world uses. PLEASE FIX THIS
Oct ’23
Reply to Inline Comparison on Commit seems to be forced in XCode 15 Beta 3
The new "Integrate" options have been a car crash for me: I've had several partial checkins where not all files seemed to get included, countless occasions where the Commit and Push button does nothing until I restart Xcode, and I still have no idea how to specify on a per-file basis which should or shouldn't be included in a commit. But the disappearance of side-by-side comparison is worst of all - I'm going to have to stop using Xcode for VCS at this rate. Please fix this Apple.
Oct ’23