Post

Replies

Boosts

Views

Activity

Cannot use Hypervisor with inherited app sandbox
I have a main app with the entitlements: com.apple.security.app-sandbox com.apple.security.hypervisor and a helper app with the entitlements com.apple.security.app-sandbox com.apple.security.inherit According to the documentations, if I start the helper app with NSTask, it should inherit the sandbox and I do see that for file accesses. However, when I try to use Hypervisor.framework, I get HV_DENIED. If I try to add "com.apple.security.hypervisor" to the helper app, then the NSTask spawned process crashes with Could not set sandbox profile data: Operation not permitted (1). I believe this is a bug and have submitted FB8921623 In the meantime, is there a workaround other than disabling App Sandbox or sticking to a single app (not possible for our application)?
1
0
899
Mar ’21
Array of AppEnum in a Parameter will always be empty
Consider the following in an AppIntent: struct TestIntent: AppIntent { static let title: LocalizedStringResource = "Test Intent" static var parameterSummary: some ParameterSummary { Summary("Test") { \.$options } } enum Option: Int, CaseIterable, AppEnum { case one case two case three case four case five case six static let typeDisplayRepresentation: TypeDisplayRepresentation = TypeDisplayRepresentation( name: "Options" ) static let caseDisplayRepresentations: [Option: DisplayRepresentation] = [ .one: DisplayRepresentation(title: "One"), .two: DisplayRepresentation(title: "Two"), .three: DisplayRepresentation(title: "Three"), .four: DisplayRepresentation(title: "Four"), .five: DisplayRepresentation(title: "Five"), .six: DisplayRepresentation(title: "Six"), ] } @Parameter(title: "Options", default: []) var options: [Option] @MainActor func perform() async throws -> some IntentResult { print(options) return .result() } } In Shortcuts, this will turn into a dropdown where you can check multiple Option values. However, when perform() is called, options will be an empty array regardless of what the user selects. This is observed on both iOS 18.5 and macOS 15.5. However, on iOS 26.0 beta and macOS 26.0 beta, the issue seems to be resolved and options contains all the checked options. However, we do back deploy to current/previous iOS/macOS versions. How can we provide a multiple choice selection of fixed values on these older versions?
3
0
187
Aug ’25