Post

Replies

Boosts

Views

Activity

Reply to Detect when an iPhone/iPad is connected
Turns out didMountNotification didn't solve it. didMountNotification works for USB Devices that mount, but iPhones don't mount. Until you use something like ifuse to mount the phone but I didn't want to have to loop ifuse looking for connected iPhones/iPads. I don't see how I can mark my reply above as not the answer.
Topic: App & System Services SubTopic: Hardware Tags:
Mar ’21
Reply to MacOS Process not writing files
Hi Quinn, I'd like to be able to release it on the Apple Store but if I run into more issues I'll just have to release it independantly for now.I found the issue, when I ran it as an XPC process, I saw more of the logs from the Rust executable:Metal API Validation Enabled thread 'main' panicked at ' failed to create_dir_all in make_date_dir(): Os { code: 30, kind: Other, message: "Read-only file system" }', src/lib.rs:373:5UPDATE*Yeah looks like Sandboxing won't work for my app as it read `/Volumes` to see when something new becomes mounted.Metal API Validation Enabled thread 'main' panicked at ' failed read_dir() in has_record: Os { code: 1, kind: PermissionDenied, message: "Operation not permitted" }', src/lib.rs:239:22The MacOS library can tell you when a new drive mounts (see https://stackoverflow.com/questions/12409458/detect-when-a-volume-is-mounted-on-os-x ) but in a sandboxed app, my Rust executrable won't be able to read `/Volumes`.
Jun ’20
Reply to MacOS Process not writing files
Hi @eskimo, when I sandbox the app, I have the "User selected files/folders" permission set, and in my UI I have the user select folders where files will be copied to. I pass those same selected folders into my Rust executable to do the copying and other processing but this gets blocked when sandboxed. Is this a limitation of a sanboxed app that it doesn't check that the parent process' user selected folders are the same ones being modied in a child process (my Rust executable). This is what I assume is the case and is 😔.
Jun ’20