Post

Replies

Boosts

Views

Activity

Building mac app on Xcode 15 and Tahoe icons
I’m still using Xcode 15 to build my mac apps. My icons use the rounded rect style but Tahoe still wraps them in its own rounded rect (even when I use the official Sketch template (1)). I made an .icon with Icon Composer and added it to my project. When building in Xcode 26, that works fine: It uses the .icon in Tahoe and the .icns in older systems. But: I need to compile my app with Xcode 15 (need supports for older MacOS). Xcode 15 doesn’t know about the .icon files and so it ignores them. So I have two questions: How does Tahoe check if it can use the .icns files as is or when it needs to add the rounded rect? Is there a way to make the .icon files work in Xcode 15? (1) It works when the icon has an opaque background. But when adding a slight alpha, it doesn’t. Same file, same setting otherwise.
3
2
229
Sep ’25
Debugging crash in notification of observers
I get a lot crash reports with backtraces like the one below. It happens when I set something in user defaults. There are a lot bindings to user default in the app but not necessarily with the key that is set. I very rarely can reproduce it myself but when I can, it never happens with Zombies enabled. Does anyone has an idea how to debug it. Thread 0 Crashed: 0 libobjc.A.dylib 0x00007ff8190edab8 0x7ff8190e1000 + 51896 1 Foundation 0x00007ff81a1341a1 _NSKVONotifyingOriginalClassForIsa + 20 2 Foundation 0x00007ff81a1557df _NSKeyValueObservationInfoGetObservances + 262 3 Foundation 0x00007ff81a14df16 -[NSObject(NSKeyValueObservingPrivate) _notifyObserversForKeyPath:change:] + 131 4 AppKit 0x00007ff81bd25cba -[NSController _notifyObserversForKeyPath:change:] + 187 5 AppKit 0x00007ff81bd546ca -[NSController observeValueForKeyPath:ofObject:change:context:] + 824 6 Foundation 0x00007ff81a153c0a NSKeyValueNotifyObserver + 305 7 Foundation 0x00007ff81a2177b5 NSKeyValueDidChange + 411 8 Foundation 0x00007ff81a1467bd -[NSObject(NSKeyValueObservingPrivate) _changeValueForKeys:count:maybeOldValuesDict:maybeNewValuesDict:usingBlock:] + 739 9 Foundation 0x00007ff81a1554ec -[NSObject(NSKeyValueObservingPrivate) _notifyObserversOfChangeFromValuesForKeys:toValuesForKeys:] + 997 10 CoreFoundation 0x00007ff8192e03b3 0x7ff81929a000 + 287667 11 CoreFoundation 0x00007ff81931c235 0x7ff81929a000 + 533045 12 CoreFoundation 0x00007ff81931c0d8 0x7ff81929a000 + 532696 13 CoreFoundation 0x00007ff81931bf4e 0x7ff81929a000 + 532302 14 CoreFoundation 0x00007ff8192e4a3e 0x7ff81929a000 + 305726 15 CoreFoundation 0x00007ff8192d775b 0x7ff81929a000 + 251739 16 CoreFoundation 0x00007ff81931bec2 0x7ff81929a000 + 532162 17 CoreFoundation 0x00007ff8192c8495 0x7ff81929a000 + 189589 18 CoreFoundation 0x00007ff8192c8d11 0x7ff81929a000 + 191761 19 CoreFoundation 0x00007ff819423b6f 0x7ff81929a000 + 1612655 20 CoreFoundation 0x00007ff8193203d0 0x7ff81929a000 + 549840 21 CoreFoundation 0x00007ff819320344 0x7ff81929a000 + 549700 22 Foundation 0x00007ff81a190ba0 -[NSUserDefaults(NSUserDefaults) setObject:forKey:] + 72
3
0
894
May ’22