Post

Replies

Boosts

Views

Activity

Comment on AXIsProcessTrusted returns true, but AXUIElementCopyAttributeValue fails with .cannotComplete
Thanks for the clarification, Quinn. Sure enough, removing the Sandbox capability, it works as expected (I didn't have to add screen recording though). But without the Sandbox, I can't sell this utility in the App Store. I wish I could get an exemption just for specific apps. I had done this with Apple Events before. I think that I can do in the Sandbox, right? It's so much less elegant.
Jul ’25
Comment on Invalid bundle ID for container
I forgot to mention, I do see this in the logs of the sample app: serverPreferredPushEnvironmentWithCompletionHandler: is CloudKit SPI and requires an entitlement. Please add the com.apple.private.cloudkit.spi entitlement to this process. This will become a hard failure. Type: Fault | Timestamp: 2024-10-24 16:21:04.339703-07:00 | Process: InitializeCloudKitSchema | Library: CloudKit | Subsystem: com.apple.cloudkit | Category: CK | TID: 0x30d85b
Oct ’24
Comment on Trouble direct-distributing macOS app
I'm not entirely sure how to read that capabilities table. I believe the only thing I use is CloudKit. I don't know the difference between ADP, Developer ID, and Apple Developer wrt the provisioning and signing of the app. I am a paid ADP member. FB14696282 (currently sending attachments/gathering sysdiagnose)
Topic: Code Signing SubTopic: General
Aug ’24
Comment on ShareLink(items:subject:message:) usage
The docs do not provide an example of how to use the items: variants. I was able to provide an array of strings to ShareLink(items:subject:message:) , but it was really weird to me because looking at the function signature in the interface file, it takes a Data where Data.Element is String (or a couple other types), and I just don’t understand how that works. I thought Data was a bag of bytes, and I don’t understand how Data can have String elements.
Topic: UI Frameworks SubTopic: SwiftUI
Jul ’24
Comment on Any way to get arbitrary TIFF tags from a file?
It can be done, but it’s not easy. First you have to wrap the library to make is useable from Swift. That is non-trivial, because you need C glue code to deal with the variadic functions. Then you have to build the library for multiple architectures and multiple platforms, then wrap it up into an XCFramework. Then you have to do all that again for the GeoTIFF library.
Topic: Media Technologies SubTopic: General Tags:
Jul ’24
Comment on AXIsProcessTrusted returns true, but AXUIElementCopyAttributeValue fails with .cannotComplete
Thanks for the clarification, Quinn. Sure enough, removing the Sandbox capability, it works as expected (I didn't have to add screen recording though). But without the Sandbox, I can't sell this utility in the App Store. I wish I could get an exemption just for specific apps. I had done this with Apple Events before. I think that I can do in the Sandbox, right? It's so much less elegant.
Replies
Boosts
Views
Activity
Jul ’25
Comment on Can't get forum notifications to work in Safari
Still doesn't work
Replies
Boosts
Views
Activity
Jul ’25
Comment on Refreshing AASA file?
To be clear, there's a bug in the current iOS in which it does not pull the AASA directly from my server as indicated here. I've written it up over a year ago in FB13672606, and again more recently: FB18785395.
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Jul ’25
Comment on Scaling a collection of positioned views to parent (macOS)?
That's not what I want though. I want the content to resize based on the window size. I want the user to be able to grow or shrink the window as desired, and have the content within scale proportionally (and with fixed aspect ratio).
Topic: UI Frameworks SubTopic: SwiftUI
Replies
Boosts
Views
Activity
Jan ’25
Comment on Invalid bundle ID for container
FB15585526
Replies
Boosts
Views
Activity
Oct ’24
Comment on Invalid bundle ID for container
I forgot to mention, I do see this in the logs of the sample app: serverPreferredPushEnvironmentWithCompletionHandler: is CloudKit SPI and requires an entitlement. Please add the com.apple.private.cloudkit.spi entitlement to this process. This will become a hard failure. Type: Fault | Timestamp: 2024-10-24 16:21:04.339703-07:00 | Process: InitializeCloudKitSchema | Library: CloudKit | Subsystem: com.apple.cloudkit | Category: CK | TID: 0x30d85b
Replies
Boosts
Views
Activity
Oct ’24
Comment on Invalid bundle ID for container
Everything was correct. I did the refresh steps (uncheck "automatically manage signing", etc) and now it works. A "refresh" button sure would be nice.
Replies
Boosts
Views
Activity
Oct ’24
Comment on Any way to suppress system-provided playback controls on VideoPlayer?
FB15158164
Topic: Media Technologies SubTopic: Video Tags:
Replies
Boosts
Views
Activity
Sep ’24
Comment on Printing from a SwiftUI app (on macOS)?
Why do you have to create the NSWindow here?
Topic: UI Frameworks SubTopic: SwiftUI
Replies
Boosts
Views
Activity
Sep ’24
Comment on Any way to suppress system-provided playback controls on VideoPlayer?
No, that requires having the AVPlayerView, which means view representable, which is what I’m trying to avoid. VideoPlayer lacks necessary modifiers to control its behavior to make it a suitable replacement for AVPlayerView.
Topic: Media Technologies SubTopic: Video Tags:
Replies
Boosts
Views
Activity
Sep ’24
Comment on Trouble direct-distributing macOS app
I'm not entirely sure how to read that capabilities table. I believe the only thing I use is CloudKit. I don't know the difference between ADP, Developer ID, and Apple Developer wrt the provisioning and signing of the app. I am a paid ADP member. FB14696282 (currently sending attachments/gathering sysdiagnose)
Topic: Code Signing SubTopic: General
Replies
Boosts
Views
Activity
Aug ’24
Comment on ShareLink(items:subject:message:) usage
The docs do not provide an example of how to use the items: variants. I was able to provide an array of strings to ShareLink(items:subject:message:) , but it was really weird to me because looking at the function signature in the interface file, it takes a Data where Data.Element is String (or a couple other types), and I just don’t understand how that works. I thought Data was a bag of bytes, and I don’t understand how Data can have String elements.
Topic: UI Frameworks SubTopic: SwiftUI
Replies
Boosts
Views
Activity
Jul ’24
Comment on Any way to get arbitrary TIFF tags from a file?
Thanks Greg! Hi-level GeoTIFF support would be amazing, but if your resources are limited, access to arbitrary tag data is more important. There are so many tags: https://web.archive.org/web/20240408220931/https://www.awaresystems.be/imaging/tiff/tifftags.html
Topic: Media Technologies SubTopic: General Tags:
Replies
Boosts
Views
Activity
Jul ’24
Comment on Any way to get arbitrary TIFF tags from a file?
It can be done, but it’s not easy. First you have to wrap the library to make is useable from Swift. That is non-trivial, because you need C glue code to deal with the variadic functions. Then you have to build the library for multiple architectures and multiple platforms, then wrap it up into an XCFramework. Then you have to do all that again for the GeoTIFF library.
Topic: Media Technologies SubTopic: General Tags:
Replies
Boosts
Views
Activity
Jul ’24
Comment on Xcode 16 can't target RealityKitContent on macOS 14?
I can’t build in guest guest OS because Xcode can’t sign in. And I can’t build something on the host and transfer it to the guest OS and run it Because the entitlements aren’t right and the app has a “no entry” sign. Or the app needs iCloud. And I don’t know how to run an iOS app in the simulator on the target.
Topic: Spatial Computing SubTopic: General Tags:
Replies
Boosts
Views
Activity
Jul ’24