Posts

Post not yet marked as solved
1 Replies
Upon further investigation it seems that ACTION is populated with "build" but only on build-phase scripts and not with pre/post actions... infuriating! This might require a feature request to populate ACTION in pre/post action scripts, unless anyone else has any better ideas?
Post not yet marked as solved
6 Replies
> Yes. What OS release are you testing this on?macOS Mojave 10.14.6, with Xcode 11 - *Currently bringing my iOS project up inline with my macOS project so in a few days I'll be able to test on iOS 13 as well.)> It’s currently not possible to do that, but it’s not something I miss a lot because, IMO, your packet tunnel provider should be logging to the system log.Ahh fantastic, I'll look into this. Unless I missed it I did not see any recommendations to do this in the documentation and am less familiar with development on Apple Platforms. Thanks for the heads up.
Post not yet marked as solved
6 Replies
Glad you could chip in! 🙂I believe I did try that, but as per your recommendations I tried again, and unfortunately had the same result. Here is a minimal snippet of what I tried..In AppDelegate.swift's applicationDidFinishLaunching(_:)let center = UNUserNotificationCenter.current() center.requestAuthorization(options: [.alert]) { (granted, _) in if granted { print("Got authorization for notifications") } else { print("Failed to get authorization for notifications") } }This indeed prints "Got authorization for notifications". Then in the initialiser for my PacketTunnelProvider:override init() { super.init() let center = UNUserNotificationCenter.current() center.requestAuthorization(options: [.alert]) { (granted, _) in if granted { self.displayMessage("Granted", completionHandler: { _ in }) } else { self.displayMessage("Not granted", completionHandler: { _ in}) } } }This displays a modal saying "Not granted" (after the main app has been granted permissions).Do you still think this should work, or can you point me in the right direction to submit a bug report/feature request?NB: I am using displayMessage(_:completionHandler:) in the PacketTunnelProvider as I cannot seem to attach the debugger in such a way that I can get print statements to appear in the Xcode debugger console - I assume the output stream is being redirected somewhere else by the system? If anyone knows of a way to capture print/NSLog statements from the tunnel provider in the debugger, then this that would be appreciated, however I understand that is a different issue altogether!