Posts

Post not yet marked as solved
1 Replies
206 Views
Is it possible to mock the behavior of NWPathMonitor for a specific app? The scenario I want to support I've created an app called RocketSim, a developer tool for Xcode's Simulator. I've already created Airplane mode, which disables networking calls from URLSession from a specific bundle identifier app installed on the Simulator. Now, I want to support blocking NWPathMonitor as well. I believe the Simulator uses macOS's NWPathMonitor and does not use any specific HTTP request or similar to determine the reachability state. Is there a way I can make NWPathMonitor return unsatisfied when my 'airplane mode' is turned on? Potentially using a Network Extension?
Posted
by AvdLee.
Last updated
.
Post not yet marked as solved
3 Replies
507 Views
The documentation for this API mentions: The system uses the current representation and avoids transcoding, if possible. What are the scenarios in which transcoding takes place? The reason for asking is that we've had a user reaching out saying they selected a video file from their Photos app, which resulted in a decrease in size from ~110MB to 35MB. We find it unlikely it's transcoding-related, but we want to gain more insights into the possible scenarios.
Posted
by AvdLee.
Last updated
.
Post not yet marked as solved
2 Replies
350 Views
I've been following these instructions and managed to get a development flow running: https://developer.apple.com/forums/thread/725805 However, my extension changes are only applied as follows: Change the code Remove the extension using OSSystemExtensionRequest.deactivationRequest Restart Mac If I don't do that, it seems that the old version of my extension keeps running. I confirmed this based on OSLogs that I added. In other words: how can I ensure during development my latest code gets executed?
Posted
by AvdLee.
Last updated
.
Post not yet marked as solved
2 Replies
461 Views
Right after starting my Network Extension I see logs about it being stopped. This is unexpected, since I don't request a stop myself. See: Logs Secondly: I'm trying to build a Network Provider to stop any requests coming from a specific app. Am I correct I can do that using the NEFilterDataProvider without any filters configured? override func startFilter(completionHandler: @escaping (Error?) -> Void) { log.log(level: .debug, "startFilter NEW3") completionHandler(nil) }
Posted
by AvdLee.
Last updated
.
Post not yet marked as solved
5 Replies
3.0k Views
I'm having a very annoying issue where I'm unable to debug. Everytime I use po or print on an object I get:`Unable to determine byte size`Any idea how to fix this?
Posted
by AvdLee.
Last updated
.
Post not yet marked as solved
0 Replies
937 Views
The execution of the command `xcrun simctl io recordVideo ...` works great from the terminal but fails somehow from the Mac app I'm building:DN - Local Port: 41227\nCouldn\'t create an asset writer for writing video frames: allocationErrorError starting video recorder: Error Domain=simctl.SimulatorError Code=2 \"We could not allocate necessary AV objects to perform the recording.\"I've tried setting permissions like screen recording, Developer Tools but without luck. Also, Sandbox enabled/disabled didn't make a difference.Any idea?
Posted
by AvdLee.
Last updated
.