Hi there.
We are developing a VPN app with a NEPacketTunnelProvider extension. Sometimes when we run our app it seems like macOS is just choosing any random version of the extension available on disk. We are logging with os_log in NEPacketTunnelProvider init() and sometimes it doesn't run the AppExtension inside the bundle of the app that we are currently running? Very strange. How can we make sure that it's running the correct NEPacketTunnelProvider inside the app bundle? Or how can we make sure there are no other instances of the PacketTunnel extension available that the system can try to run? macOS seems to be happy with the first extension it finds with the appropriate bundle identifier? Anyone else having this problem? Is the extension copied somewhere else in the system when the app is running? This is confusing...
Best regards / Jorgen at Clavister in Sweden
Post
Replies
Boosts
Views
Activity
Hi again all,
We have a weird situation here on sleep/wake in our NEPacketTunnelProvider-based app. The sleep and wake callbacks are called properly and we have noticed that the NWUDPSession is disconnected just after the Mac has awakened... if the Mac is running on an Ethernet connection? The same sleep/wake behaves properly if the Mac is running on Wifi?!? Weird. Do we need to wait for some state after wake? It's hard to understand since it's only happening when running on the Ethernet-port. Confused here 🤪.
Best regards / Jorgen / Clavister AB
Hi all,
We have a Catalyst VPN client app running on macOS 10.15.7 where the PacketTunnel extension refuses to launch? The App and PacketTunnel works as expected on macOS 11 and later, but on macOS Catalina it doesn't even launch the extension?
When I check the console logs I get a nesessionmanager message
Found 0 (0 active) registrations for our.bundle.id (com.apple.networkextension.packet-tunnel)
and neagent
Failed to create an NSExtension with type our.bundle.id: (null)
I made sure that the deployment targets for the app and the extension are the same (iOS 13.6, macOS 10.15).
It's very confusing since the exact same app runs flawlessly on macOS 11 (and macOS 12)?
Any ideas?
Best regards / Jörgen at Clavister
Hi all,
Looking into the new @SectionedFetchRequest in SwiftUI 3 and it's really awesome. Thx! But how can I keep track of the total number of records fetched now that they are separated into sections? Can't find anything useful in the docs. Want to update the counter inte the Quakes sample app now that I'm using @SectionedFetchRequest instead of @FetchRequest.
Thx in advance / Jörgen, Bitfield
Hi all,
I have an app that is playing music from http live streams using AVPlayer. Have been trying to figure out how to use ShazamKit to recognise the music playing but I just can't figure out how to do it :-( Works well with local files and microphone recordings, but how do I get the data from a stream that is currently playing??? Feels like I tried everything...
Have tried to install an MTAudioProcessingTap but it doesn't seem to work on streaming assets even though I can get hold of the proper AVAssetTrack containing the audio. No callback with data are received? Bug?
I can open the streaming url and just save the bytes to disk and that's fine, but I'm not in sync with what is playing in AVPlayerItem so the recognition isn't working with the same audio data as the user is currently hearing. Hmmm.
Any suggestions and ideas are welcome. It would be such a nice feature for my app so I'm really looking forward to solving this.
Thx in advance / Jörgen, Bitfield