Post

Replies

Boosts

Views

Activity

Xcode 15/16: Copy (cmd+C) doesn’t work reliably when paused at a breakpoint
I’ve been running into an annoying issue for a while now and wondering if anyone else can confirm or suggest a fix. When Xcode hits a breakpoint (i.e., the app is paused), I often need to copy some text from the source code using cmd+C — for example, to paste into the debugger and inspect a variable or object. However, most of the time, the copy operation fails and nothing ends up on the clipboard. I have to repeat the copy action multiple times before it works. This doesn’t happen 100% of the time, but it’s frequent — maybe around 7 out of 10 attempts fail. I’ve been noticing this behavior since around Xcode 15. Has anyone else experienced this? Is there a known workaround or fix?
2
0
43
Mar ’25
Emoji glyph bounding box incorrect in transformed CGContext.
I need to draw an outline of an Emoji glyph bounding box that is drawn in CGContext (macOS 14.4.1). I use NSLayoutManager - (void)drawGlyphsForGlyphRange:(NSRange)glyphsToShow atPoint:(NSPoint)origin; and I can get an emoji glyph bounding box using CoreText CGRect CTFontGetBoundingRectsForGlyphs(CTFontRef font, CTFontOrientation orientation, const CGGlyph *glyphs, CGRect *boundingRects, CFIndex count);. The bounding box is correct until the CGContext to which I draw the string with Emoji is not scaled or rotated. In such a case, an Emoji drawn in context is "sometimes" scaled, so its bounding box is not equal to the bounding box obtained from CoreText. Unfortunately, I can't figure out what the dependencies between glyph size, CGContext rotation, and scale are. I couldn't find any linearity between these variables. For example, an Emoji is drawn correctly at scale 6, rotation 0, when CGContext is rotated by 1 degree, Emoji is downsized by 1 pixel, then back in nominal size when rotation is between 2 and 4 degrees, then downsized for 5 degrees, nominal at 6, etc. Has anyone solved this?
0
0
743
May ’24
Background URLSession adopters are required to have the com.apple.application-identifier entitlement
Hi, I am unable to silence this warning: Background URLSession adopters are required to have the com.apple.application-identifier entitlement. I am not using any entitlements. This warning appeared when I switched to Xcode15 and Sonoma. I followed the steps mentioned in this link: https://developer.apple.com/library/archive/qa/qa1710/_index.html, but it did not help. The BundleID is correct (I haven't changed it in a couple of years). Do you have any idea what the issue could be? Thank you.
3
0
1.3k
Nov ’23