send the demo project and app
I took a look at that today and I’m confused by your starting point. My general advice when building Mac software is to do your day-to-day development using Apple Development signing. Then, once you have things working, you can export your app using the signing appropriate for your distribution channel (Apple Distribution for the Mac App Store, Developer ID for direct distribution). See The Care and Feeding of Developer ID for more about this.
If you do that then you only need to worry about the -systemextension
stuff at the final step, when you export your product for distribution. And when you stick with Apple Development signing you can rely on Xcode’s automatic code signing to do the right thing.
However, you seem to be trying to use Developer ID signing for day-to-day development. This is a mistake, and it’s causing you grief here.
So, for example, I opened your project today to check how you’re app is using System Extensions framework to activate its system extension. However, I found no references to OSSystemExtensionManager
at all.
This suggests you’re trying to deal with Developer ID signing before you get the basic function of your product working. That’s a mistake. You need to get Apple Development working first, and then deal with Developer ID at the end.
On the Apple Development front, I’m going to reiterate that Debugging a Network Extension Provider has the info you need to get your system extension working. Specifically:
- It explains how to use the modern system log APIs for your ‘first light’ log point. The code you sent me uses
NSLog
. That’s a mistake, and I’ve recently updated Your Friend the System Log to explain why. - It explains how to set up your project to copy the container app to the Applications folder, allowing you to develop on a Mac with SIP enabled.
Once you have Apple Development signing worked out, please retry the Developer ID export using the instructions in steps in Exporting a Developer ID Network Extension. I expect that’ll just work. If not, feel free to send me the updated version of your test project and the script you’re using to export your Xcode archive (.xcarchive
) as a Developer ID signed app.
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"