Post

Replies

Boosts

Views

Activity

Comment on how to perform xcrun with sandbox
It's been 5 years, and looks like things changed. As of today /Applications/Xcode.app/Contents/Developer/usr/bin/simctl is just a trampoline to execute /Library/Developer/PrivateFrameworks/CoreSimulator.framework/Versions/A/Resources/bin/simctl that to my surprise does not need security scoped bookmark to launch. Sandboxed app runs simctl "just like that". That something I didn't expect.
Topic: Code Signing SubTopic: General Tags:
May ’22
Comment on How can we performantly scroll to a target location using TextKit 2?
I analyzed again the alignViewportToDocumentEndLocationIfNeeded() you provided, and noticed that despite it being called from textViewportLayoutControllerDidLayout the viewportLayoutController.viewportRange! is sometimes nil (and crashes). I also noticed that the adjustement sometimes failing to adjust viewport to display the end of the document - all of that happens when scrolling is done fast - I'm aware it is vague, but I don't have more context to it myself, it looks misterious to me
Topic: UI Frameworks SubTopic: General Tags:
Aug ’25
Comment on how to perform xcrun with sandbox
It's been 5 years, and looks like things changed. As of today /Applications/Xcode.app/Contents/Developer/usr/bin/simctl is just a trampoline to execute /Library/Developer/PrivateFrameworks/CoreSimulator.framework/Versions/A/Resources/bin/simctl that to my surprise does not need security scoped bookmark to launch. Sandboxed app runs simctl "just like that". That something I didn't expect.
Topic: Code Signing SubTopic: General Tags:
Replies
Boosts
Views
Activity
May ’22
Comment on Xcode 15 beta does not show iOS 17 beta device
I have the same issue (Xcode 15 beta 7). It's annoying to the extend that even though USB cable is connected, but WiFi is disabled, it won't even connect.
Replies
Boosts
Views
Activity
Aug ’23
Comment on How to link multiple text views to a single text storage in TextKit 2
NSTextContentStorage provides textStorage property. NSTextContentStorage is already specialized implementation that uses NSTextStorage as its storage. how can I link multiple NSTextContentStorage to the same NSTextStorage? you don't.
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Jun ’24
Comment on NSTextLayoutManager giving incorrect fragment frame
usageBoundsForTextContainer value changes, but the KVO notification does't work at all. I reported it FB13291926 last year.
Topic: UI Frameworks SubTopic: AppKit Tags:
Replies
Boosts
Views
Activity
Aug ’24
Comment on How can we performantly scroll to a target location using TextKit 2?
There is another call textLayoutManager.ensureLayout(for: NSTextRange(location: textLayoutManager.documentRange.endLocation)) that sounds like it should perform the layout for the whole document - but it's not. On that note usageBoundsForTextContainer is KVO observerable, but the updates are not published at all, that (FB13291926)
Topic: UI Frameworks SubTopic: General Tags:
Replies
Boosts
Views
Activity
Aug ’24
Comment on How can we performantly scroll to a target location using TextKit 2?
Layout information on textViewportLayoutController is up-to-date at the point of this call either documentation of the textViewportLayoutControllerDidLayout is not accurate or there is a bug. I observed the same behavior.
Topic: UI Frameworks SubTopic: General Tags:
Replies
Boosts
Views
Activity
Aug ’24
Comment on UlTextView erroneously overrides string attributes when applying spellchecker annotation attributes (regression)
I was not able to reproduce the issue with macOS 15 beta 7. It remains broken on macOS 14 (and 14 only)
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Aug ’24
Comment on Debug Failed in Xcode Simulator
for macOS 15.4 RC2, this is FB number: FB17035420
Replies
Boosts
Views
Activity
Mar ’25
Comment on Debug Failed in Xcode Simulator
The Xcode 16.3 can't build my project due to mysterious crashes, so this is impossible in the near future.
Replies
Boosts
Views
Activity
Apr ’25
Comment on How to replace layoutManager with textLayoutManager for a flexible dynamic height UITextView
FYI the code you proposed is very slow and unusable in production setup. I wish we had a better way to calculate usageBoundsForTextContainer in a performanet and realiable (or usable really) way
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Aug ’25
Comment on How can we performantly scroll to a target location using TextKit 2?
I don't see any way to achieve that, unless you ensure the layout of the whole document that is also my experience. However, the NSTextView/UITextView somehow maintain stable scrollbar position while scrolling (moving the viewport). We struggle to understand how to archive the same with TextKit2 API. Any advice?
Topic: UI Frameworks SubTopic: General Tags:
Replies
Boosts
Views
Activity
Aug ’25
Comment on How can we performantly scroll to a target location using TextKit 2?
I analyzed again the alignViewportToDocumentEndLocationIfNeeded() you provided, and noticed that despite it being called from textViewportLayoutControllerDidLayout the viewportLayoutController.viewportRange! is sometimes nil (and crashes). I also noticed that the adjustement sometimes failing to adjust viewport to display the end of the document - all of that happens when scrolling is done fast - I'm aware it is vague, but I don't have more context to it myself, it looks misterious to me
Topic: UI Frameworks SubTopic: General Tags:
Replies
Boosts
Views
Activity
Aug ’25
Comment on Unable to compile Core Image filter on Xcode 26 due to missing Metal toolchain
yes, Metal component is installed, but it "Failed to remount the Metal Toolchain" and Xcode can't use it for some reason
Topic: Graphics & Games SubTopic: Metal Tags:
Replies
Boosts
Views
Activity
Oct ’25
Comment on Unable to download Metal toolchain with Xcode Beta 5
That did not help to me. Toolchain download, but Xcode can't use the downloaded Toolchain for some reason: "EnableLiveAssetServerV2-com.apple.MobileAsset.MetalToolchain" = on; ProductName: macOS ProductVersion: 26.0.1 BuildVersion: 25A362
Replies
Boosts
Views
Activity
Oct ’25
Comment on Xcode 26 CompileMetalFile failed
I reported it a while ago FB20178568 FB20645387 (no response so far)
Replies
Boosts
Views
Activity
Oct ’25