Post not yet marked as solved
I have just installed the latest Xcode (13.3.1) and am finding that when I attempt to build a kernel extension (which was compiling fine in 13.2.1) I encounter the following error:
error: use of undeclared identifier '__APPLE_CC__'
This appears to be inside an auto-generated file named
<TargetName>_info.c, located in ../Intermediates.noindex/<ProjectName>.build/Debug/<TargetName>.build/DerivedSources/
I couldn't see any reference to this change in the release notes for Xcode 13.3 or 13.3.1.
From some reading it appears that __APPLE_CC__ is related to a C compiler version.
Has anyone else encountered this or know whether this is a bug, or part of the deprecation of kernel extensions?
Many thanks
Post not yet marked as solved
I have been in the process of porting a helper tool from communicating with a Kext for kauth to using EndpointSecurity directly. All was going well until I re-enabled SIP at which point I discovered a provisioning profile would be required.
As the helper tool is a plain executable this isn't possible but having read some forum posts regarding launchd daemons & Endpoint security I attempted to package the helper tool as an .app wrapper. This isn't working so far (SMJobBless fails), so I'm beginning to think this isn't going to work...
Any idea if this is achievable? Or am I going to have to re-work the ES logic in to a separate System Extension?
Thanks,
Adam
Post not yet marked as solved
HiI've been using productsign with a Developer ID Installer certifcate for some time, but when signing a recent pkg build I found that I could no longer open it on macOS 10.6. I tried signing the same pkg under a VM macOS 10.12 and the resulting signed pkg was again compatible with macOS 10.6.The error I see on 10.6 is:Jan 11 12:01:45 macos-snow-leopard-server Installer[3080]: Failed to verify data against certificate.
Jan 11 12:01:45 macos-snow-leopard-server Installer[3080]: Invalid Distribution File/PackageI assume something changed with productsign on the release of macOS Mojave and my guess is it will no longer work prior to when GateKeeper was added. I've not been able to find any reference to changes elsewhere.Is any one aware of what exactly changed, and ideally a workaround so I don't have to load up a VM every time I do a build.Many thanks
Post not yet marked as solved
I am developing a non-appstore Developer ID app and have found I am unable to launch it on 10.7. It launches just fine on 10.6 & 10.14 but I can see the following error in system.log with 10.7:Oct 18 10:44:42 macos-10 taskgated[768]: none of the 0 applicable provisioning profile(s) apply
Oct 18 10:44:42 macos-10 taskgated[768]: killed <bundle-id>[pid 781] because its use of the com.apple.developer.team-identifier entitlement is not allowed
Oct 18 10:44:42 macos-10 com.apple.launchd.peruser.501[135] ([0x0-0x3f03f].<bundle-id>[781]): Exited: Killed: 9The app uses the Personal VPN entitlement and has an App ID generated by Xcode, and uses a Mac DirectDistribution provisioning profile. The above error states that there were no applicable profiles so I'm wondering it is not being embedded correctly (although that wouldn't explain why other versions on macOS don't have the same issue).Can anybody shed any light on the cause of the the issue?Many thanks