Post

Replies

Boosts

Views

Activity

SecCodeCheckValidityWithErrors returns -67030 on OS X 10.9/10.10
Is there a known bug/limitation with the SecCodeCheckValidityWithErrors on OS X 10.9/10.10 when it comes to checking the validity of an app in the following case: the application A.app is a bundle. inside Ap.app/Contents/MacOS there is an additional binary B. B is launched by launchd and runs an XPC mach service. A is a client of this XPC mach service. When A tries to connect to B, B checks the calling process with SecCodeCheckValidityWithErrors. On OS X 10.9/10.10, SecCodeCheckValidityWithErrors returns -67030 (errSecCSInfoPlistFailed / invalid Info.plist (plist or signature have been modified)). On OS X 10.11 and later, SecCodeCheckValidityWithErrors succeeds. If a copy of B is installed outside of the A.app bundle and it's this copy that launchd starts, A can communicate with B. [Q] Was there a bug in OS X 10.9/10.10 where SecCodeCheckValidityWithErrors would return -67030 if the XPC server is inside the MacOS folder of the XPC client?
1
0
748
Apr ’21
[Base Internationalization + Auto Layout] How to do the following tasks?
Auto Layout: How do you get the width of a column in a NSTableView to resize correctly to fit the localized header column title? Base Internationalization: Is it possible to hide a view for a specific language using the .strings files? For instance, is there something like: "id-view-something.hidden" = YES; ? If you add a NSTextField to a xib file, do you really need to manually add the NSTextFieldCell id in every existing corresponding .strings file? Or is there a command in Xcode to update the .strings files (Xcode 10.3 here)? I've already had a look at the documentation, stackoverflow and so on. The only answer found was for the 3rd question and it looked like a 3rd party tool is required to achieve this task.
0
0
868
Jan ’21
macOS 11.1b1 real release notes?
Could it be possible to provide real release notes instead of the limited current ones? It would be very surprising that fixing the listed Catalyst issues requires a 3 GB update. I believe it would be appreciated by everyone if there was a list of all the bugs that have been fixed so far and not just the Catalyst ones.
0
0
492
Nov ’20
Big Sur / Filter Data Provider vs Screen Sharing.app / File Upload failures
Is there any known issue in macOS Big Sur regarding Filter Data Provider and Screen Sharing.app file uploads? From what I'm observing: Uploading files through Screen Sharing.app fails when a Filter Data Provider is running and just requests to see all the data (and does nothing else). At the same time, the remote display feature just works fine and Safari browsing works fine. I've already filed a bug report with more info: FB8880461
1
0
596
Nov ’20
Network Extension- Packet Filter vs Logs
Console.app shows a lot of logs from NEFilterPacketInterpose when you use a Network Extension (possibly a NEFilterPacketProvider) repeatedly. I'm a bit worried by these from a performance point of view considering that: there is a huge number of them over time. turning off developer mode via systemextensionsctl does not appear to disable those logs. these logs are printed for release flavors of NEs not just debug flavors. Questions: Is this pointless worrying and it does not have any impact on performances? Is there a way to turn them off (not just filter them in Console.app)?
2
0
1k
Oct ’20
Network extension - C APIs?
Is there a C version of the Network Extensions APIs? Just asking because some of the Objective-C/Swift objects do not provide useful methods. e.g. NWEndpoint vs nw\_endpoint\_t If you want to get the port using NWEndpoint/NWHostEndpoint, you first need to get a NSString * that is useless and "big" and convert it to an unsigned short. If you want to get the port using nw\_endpoint\_t, you just use nw\_endpoint\_get__port to get the unsigned short. It's worse of course if you need to get the sockaddr *. Also with nw\_endpoint\_t, you can know the type of the endpoint… I will file an enhancement request about this if needed but the Feedback Assistant website was down, again, when I tried.
4
0
1.1k
Oct ’20
Network Extension vs SecCodeCheckValidityWithErrors ?
When calling SecCodeCheckValidityWithErrors from a Network Extension, this function returns with OSStatus -67061. "-67061" is not documented in SecBase.h (unless I'm mistaken). The CFErrorCopyDescription output for this error says something like "The operation can not be performed". Question: Can SecCodeCheckValidityWithErrors be called from a Network Extension? If it can not be called, would there be, somewhere, a list of framework, functions that are not network-extension-safe?
2
0
815
Oct ’20
NEFilterManager > enabled property very worrying documentation
@property enabled @discussion Toggles the enabled status of the filter.	[...]On macOS, up to 4 filter configurations of the same grade can be enabled simultaneously. Questions: What is "up to 4 filters" supposed to mean in the real world? Does it mean that as on iOS, if a 5th filter is enabled, then one of the existing 4 will be disabled? How is the software supposed to be informed about being disabled without its knowledge/consent? Why is there a limitation in the first place?
2
0
732
Sep ’20
NEFilterConfigurationDidChangeNotification not being sent: is this the expected behavior?
Let's imagine that a Network Extension is running fine. In System Preferences.app > Network, the extension is listed as "Running". Case 1: You then remove the Network Extension through the Network pref pane by selecting the corresponding row and clicking - and then the Apply button. When you try to re-enable the Network Extension using the NEFilterManager API, at the end of the re-enabling process, the NEFilterConfigurationDidChangeNotification is posted. That's fine. Case 2: You make the Network Extension inactive through the Network pref pane by selecting it, choosing Make Service Inactive using the action menu and then clicking the Apply button. When you try to re-activate the Network Extension using the NEFilterManager API, at the end of the re-activation process, the NEFilterConfigurationDidChangeNotification is NOT posted. Question: Is the behavior of case 2 the expected one? If it is (or if it's not), how are we supposed to know that the Network Extension was correctly reactivated?
3
0
958
Sep ’20
NSMenuItem mysterious state in Big Sur: how to deal with it for custom view?
In macOS Big Sur beta, a menu item with a submenu item is not drawn the same way as in previous OS versions. Here, "choose" ="select and no mouse up". On all macOS/OS X/Mac OS X flavors: If you choose a menu item with or without a submenu, the menu is highlighted. On macOS Big Sur: If you then choose a submenu item, the parent menu item is no more visually highlighted. On previous OS versions: If you then choose a submenu item, the parent menu item is still visually highlighted. The keyword here is: visually because the parent menu item highlighted property is still set to YES even though the menu item is not highlighted (on macOS Big Sur). Question: Apart from the fact that this will be confusing to some users, how can we know about this strange new state when we are dealing with a custom view inside the parent menu item?
0
0
593
Sep ’20