$378.00 Fixed
Help with mac app store entitlements, automation & accessibility permissions & [login to view URL]
I managed to get most things running with sandbox on and temporary automation exception.
The app is now in app store. It prompts for accessibility permissions
but not for Automation System Events as I had to remove the temporary exception
for app store submission.
1. Entitlement
com.apple.security.app-sandbox
com.apple.security.automation.apple-events
com.apple.security.files.user-selected.read-write
[login to view URL]
com.apple.security.temporary-exception.apple-events
[login to view URL]
2. [login to view URL]
NSAccessibilityUsageDescription
App needs Accessibility permissions to manage and restore application windows.
NSAppleEventsUsageDescription
App requires access to Apple Events to communicate for automating tasks and enhancing your workflow. Your permission is needed to allow this interaction.
NSAppleEventsAllowedDestinations
[login to view URL]
3. Accessibilty prompt works in applicationdidfinishlaunching but not
automation with temporary exception removed as required by app store.
Here is the prompt code
static func checkAccessibilityPermissions() {
[login to view URL](clicks: 1)
}
static func promptForSystemEventsPermission() {
let scriptSource = """
tell application "System Events"
if not (exists (process "System Events")) then
tell application "System Events" to activate
end if
count processes
end tell
"""
guard let appleScript = NSAppleScript(source: scriptSource) else {
print("Error: Unable to create NSAppleScript instance.\n")
return
}
var error: NSDictionary?
_ = [login to view URL](&error)
if let error = error {
print("AppleScript execution error: \(error)\n")
} else {
print("AppleScript executed successfully. (If permissions were not granted, the prompt should appear.)\n")
}
}
4. These are my entitlements in app store
com.apple.developer.team-identifier: 75TCSM42CD
com.apple.security.automation.apple-events: true
[login to view URL]: true
com.apple.security.app-sandbox: true
com.apple.security.files.user-selected.read-write: true
5. I have promo codes for my app.
6. I have a Testflight version
7. What am I missing?
- Proposal: 0
- 95 days
Kashyap Johar
,
Member since
Apr 18, 2024
Total Job