Post

Replies

Boosts

Views

Activity

Reply to macOS 26 beta 4 and iOS 26 beta 4 - WebKit XML parser crashes parsing XHTML with namespaces
The feedback number was: FB19181123 It seems to be fixed in the beta 5 developer previews! Verified in Xcode beta 5 iOS 26 simulator, Tahoe beta 5 in a virtual buddy VM, and on an iOS device running the beta 5 release. We've had users on the public beta hitting this as well in our app. Hopefully public beta 2 will be out shortly? They usually follow pretty closely after the developer releases.
Topic: Safari & Web SubTopic: General
Aug ’25
Reply to Xcode 26 - New Swift 6.2 Concurrency Sendable Closure Problems
One more update- I was able to work around this for now just by tossing an assumeIsolated into the completion handler. Hopefully, Apple will eventually annotate all of these completion handlers as explicitly @MainActor, now that the Swift language has evolved and the completion handler isn't implicitly MainActor like it used to be. I'm still not sure how one would use the async version of this API, though. It either should have had its closure marked as @MainActor but didn't, or if it DOES need to be nonisolated (because it runs on a thread), that means for animating view properties we have to use the callback version of this API. Here is my final, working (for now) code. I hope Apple annotates these completion closures better so the original code continues to work. NSAnimationContext.runAnimationGroup({(context) -> Void in context.duration = animated ? 0.5 : 0 clipView.animator().setBoundsOrigin(p) }, completionHandler: { MainActor.assumeIsolated { self.endIgnoreFrameChangeEvents() } })
Topic: UI Frameworks SubTopic: AppKit Tags:
Jun ’25
Reply to Xcode 26 - New Swift 6.2 Concurrency Sendable Closure Problems
Just as an update - I took my changes back to Xcode 16.4 and got the same errors when I tried to use the asynchronous version of runAnimationGroup. So, I don't understand how I am supposed to use the async version of this method. Maybe the async version actually runs its closure on a thread? But back to the original error, which is the thing that started this all off: NSAnimationContext.runAnimationGroup({(context) -> Void in context.duration = animated ? 0.5 : 0 clipView.animator().setBoundsOrigin(p) }, completionHandler: { self.endIgnoreFrameChangeEvents() }) Call to main actor-isolated instance method 'endIgnoreFrameChangeEvents()' in a synchronous nonisolated context This is the error that I get in 6.2 / Xcode 26 that I wasn't getting before. I would expect all of these callback-based APIs to run their completion handlers on the main thread. It seems like maybe there's just a @MainActor missing in the definition of completionHandler: here? It didn't seem like this was necessary before Swift 6.2.
Topic: UI Frameworks SubTopic: AppKit Tags:
Jun ’25
Reply to NSAccessibilityElement sendable but not MainActor?
Another data point that NSAccessibilityElement should probably be MainActor: the UIKit counterpart, UIAccessibilityElement, is defined as @MainActor. For now I'm assuming that NSAccessibilityElement should also be marked MainActor and just isn't yet. I've fixed my issues with MainActor.assumeIsolated in the places where my NSAccessibilityElement subclasses need main actor isolation. So far it looks like it is only used on the main thread so this is working for me, at least for now. I'd love confirmation of this by Apple fixing the SDK if this assumption is correct.
Jul ’24
Reply to Xcode 13 keeps showing line numbers even though I have the preference off
FWIW I got out of it by selecting "Canvas" from the Editor menu. I figured it out by switching between my tabs and looking at what was checked in "Editor." None of the Editor modes had checkboxes by them, somehow, in the one tab that had the issue. Canvas was selected in the tabs that were working normally. Even after I switched to "Canvas" I still had to toggle line numbers (again) to get those to go away. But at least it isn't showing me my changes inline as i make them. That was borderline unusable. I'm not a new Xcode user, I've been using it for well over a decade. I've never been this confused - I still don't know what mode I was in or how I exactly got into it.
Sep ’21
Reply to Xcode 13 keeps showing line numbers even though I have the preference off
Oh it's worse than that. Somehow I have an "Inline Comparison" view I am stuck in. Not only is it showing me line numbers, but it is showing me a comparison with what's in git (I guess). Ok I'll just have to figure out how to get out of this view. I miss the double-arrows button in the old version of Xcode to obviously toggle this sort of view on and off. Now I'm in this mode and can't find my way out.
Sep ’21
Reply to iOS 14.5 + Safari (normal or TP) - Web Inspector ONLY shows Console, Sources and Audit, no Elements, Network, etc.
Looks like Apple just published a fix. Safari Technology Preview build 125 just went live a few minutes ago, and it has the fix. If I use "Develop" from this build of Safari it works just fine. Download it here: https://developer.apple.com/safari/download/ It's the top item in the release 125 release notes: https://developer.apple.com/safari/technology-preview/release-notes/
Topic: App & System Services SubTopic: Core OS Tags:
May ’21