Posts

Post not yet marked as solved
1 Replies
308 Views
I have a NSXPCListener in an app and like to connect to from a command line tool. I can’t get it to work so I wonder if it is not supported of if I miss something. Any help is greatly appreciated.
Posted Last updated
.
Post not yet marked as solved
3 Replies
689 Views
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
Posted Last updated
.
Post not yet marked as solved
0 Replies
410 Views
Hi, I have a small binary that is used as the main binary in a bundle. It used to be ~20KB (Xcode 10). When I compile it in Xcode 12.2 (I’m preparing arm64 support), the file is ~60KB (and 120KB as Universal Binary). Out of curiosity, I opened it in a hex editor and found big blocks of zeros. Removing them lead to the same 20KB file size. So why is Xcode doing this and is there a setting to prevent it.
Posted Last updated
.