Post

Replies

Boosts

Views

Activity

AXIsProcessTrustedWithOptions not prompting for permission
I'm trying to use the Accessibility API and have this code: NSDictionary *options = @{(__bridge id) kAXTrustedCheckOptionPrompt : @YES}; BOOL accessibilityEnabled = AXIsProcessTrustedWithOptions((__bridge CFDictionaryRef) options);This always returns no, however it does not prompt the user for permission nor does it display the app's name in System Preferences > Security & Privacy. What do I need to test this? I could try and add the debug version manually into System Preferences but how do I know that this will work properly when released to the public? Is there any way to test this out? I am not seeing any prompt at all.
6
0
5.7k
Oct ’15
Xcode automatic signing not working
Suddenly, automatic signing has stopped working across all our apps (even on different developer IDs), we see this:Automatic Signing FialedXcode failed to provision this target. Please file a bug report at <https://feedbackassistant.apple.com> and include the Update Signing report from the Report navigator.Signing certificate "Apple Development: XXXXX (XXXXX)", serial number "XXXXX", is not valid for code signing. It may have been revoked or expired.Anyone else experiencing the same? I've tried doing everything from deleting the derived folder, to trying to reset and create new certificates to trying different versions of Xcode. Everything fails and I get a prolonged "Waiting to repair" message first and then this.
4
0
13k
Dec ’19
Cannot attach debugger to Helper app on macOS
I've got a macOS app with a "Helper" (LoginItem) app that I'd like to attach the debugger to in order to debug the communication between the two.I realize hardening a target makes it impossible to attach the Xcode debugger to it, however I've created a separate entitlements file for Debug mode, turned "Enable Hardening" OFF for both Debug targets and have also added a "com.apple.security.get-task-allow" set to "YES" in the entitlement files for both debug targets. Still, I see this:macOSTaskPolicy: (com.apple.debugserver) may not get the taskport of (com.b) (pid: 4144): (com.b) is hardened, (com.b) doesn't have get-task-allow, (com.apple.debugserver) is a declared debuggerI'm unable to debug the helper and it's frustrating. How can I disable SIIP or whatever it takes to get this to work?
1
0
3.9k
Dec ’19
Will new API in iOS 14 for SwiftUI work on iOS 13?
I'd like to know if adopting future SwiftUI APIs would not require that I keep supporting only the latest and greatest versions of each OS (iOS / macOS / watchOS). In theory, would I still be able to at least support iOS 13 going forward, even if I were to use new API introduced in iOS 14 for SwiftUI? In theory the runtime bundled with our apps should be backward compatible with iOS 13?
2
0
1.6k
May ’20
Public API to detect DND in Big Sur?
It's never been possible to detect DND in earlier versions of macOS cleanly however now that the option has become front and center and more accessible, I can't find any reference to detecting DND in the SDK changes. Am I missing something? Users expect our apps to delay / prevent alerts (in-app custom alerts, not managed by the notification center) from disturbing them when DND is on. There should be a way to detect this using a public API so that we can keep our custom alerts in sync with the DND setting.
1
0
1.3k
Jun ’20
Cannot log into Big Sur after update
I've got a VMWare installation of 10.15. I've successfully updated my copy to macOS 11.0, however I'm now stuck on the login screen. I enter the password, I see the spinner for 30 seconds and the screen flashes and I'm back on the password screen again. The lock screen / password screen seems to be working fine but cannot login any more into my VM. Anyone else with this issue? Any idea what I need to now do? Completely stuck at the lock screen.
11
0
7.1k
Jun ’20
Catalyst or SwiftUI Multiplatform?
I'm considering developing a new multi-platform app and feel SwiftUI this year has become more a lot more potent. However I'm confused between the two sets of technologies being promoted. Should I use SwiftUI's multiplatform option to develop for three different platforms (iOS / iPadOS / macOS) so that I can use the same views more or less but give each their own personality or should I develop for iOS and iPadOS and later "Catalyst" over to macOS? I feel Catalyst is for older UIKit based apps while SwiftUI is a complete replacement for UIKit+Catalyst. Am I correct to assume that I'll have more control over a SwiftUI multiplatform app and greater flexibility? I would still like to bundle these apps separately on the stores though, not sell them under a single price. What should I choose?
4
1
4.2k
Jun ’20
Signed installer package failing on some machines
We have a signed, Apple notarized installer package (using our Developer ID Installer certificate) that works fine for all our users except every now and then we get complaints that the installer fails to install and shows an error: The Installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance After inspecting the affected users' Console logs, we find the following just before it fails: I have no idea what we need to do to fix this. Looks like the intermediate / root certificate on their machine is either invalid or does not exist. What should we do? default 21:16:26.843274 -0700 trustd cert[2]: AnchorTrusted =(leaf)[force]> 0\ default 21:16:26.851127 -0700 trustd cert[0]: ExtendedKeyUsage =(leaf)[]> 0\ default 21:16:26.854118 -0700 trustd OCSPResponse: single response has extension(s).\ default 21:16:26.855599 -0700 trustd asynchronously fetching CRL (http://crl.apple.com/root.crl) for client (Installer[56617]/0#-1 LF=0)\ default 21:16:26.855677 -0700 trustd cert[1]: IntermediateEKU =(path)[]> 0\ default 21:16:26.856932 -0700 Installer Trust evaluate failure: [leaf ExtendedKeyUsage] [ca1 IntermediateEKU]\ default 21:16:26.858617 -0700 trustd OCSPResponse: single response has extension(s).\ default 21:16:26.862765 -0700 trustd OCSPResponse: single response has extension(s).\ default 21:16:26.866303 -0700 trustd OCSPResponse: single response has extension(s).\ default 21:16:26.873600 -0700 diskarbitrationd <private>\ default 21:16:26.873655 -0700 diskarbitrationd <private>\ default 21:16:26.873697 -0700 diskarbitrationd <private>\ default 21:16:26.874035 -0700 diskarbitrationd <private>\ default 21:16:26.874062 -0700 diskarbitrationd <private>\ default 21:16:26.874115 -0700 diskarbitrationd <private>\ default 21:16:26.952296 -0700 kernel obj_checksum_verify:4349: failed: cksum 0xa7da628a7a3b79d3, oid 0xd6fe574d92b7eb96, o_xid 0x7f14df7fdd07fa7f, o_type 0x3fdbf6a, o_subtype 0x8aefbfee, size 4096\ default 21:16:26.952309 -0700 kernel nx_corruption_detected_int:60: Corruption detected by obj_checksum_verify:4357 in container C43C9696-C544-4AA8-94FD-0E8841362A66!\ default 21:16:26.952313 -0700 kernel obj_read:4043: oid 0x4000000ebab9a flags 0x40000003 0x0 type 0x40000003/0xb paddr 0x4000000ebab9a error verifying checksum\ default 21:16:26.952324 -0700 kernel apfs_vnop_write:7501: fs_map_file_offset failed on ino 2449570 (MicrosoftRegistrationDB.reg) 2756608:1 ret 92\ default 21:16:26.981230 -0700 Dock 27366555: RECEIVED OUT-OF-SEQUENCE NOTIFICATION: 0 vs 555, 563, <private>\ default 21:16:26.984018 -0700 distnoted register name: com.apple.speech.synthesis.TalkingAlertsSyncWithPrefsNotification object: kCFNotificationAnyObject token: f4394 pid: 56617\ default 21:16:26.985710 -0700 Installer The Installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance.\
0
0
978
Aug ’20
Instruments not showing any symbols
I'm only seeing a bunch of memory addresses in Instruments for an app I'm trying to profile. This was working fine before but suddenly stopped working after I updated to 11.2.1. Instruments > File > Symbols tells me: Permission to profile this process was denied. Applications you wish to profile must be signed with a developer code.. I have no idea what I need to do to make this work. I've tried a few things, clean builds folder, switch to Debug from Release for profile but nothing works. Nothing within the project settings have changed recently. It runs fine and is codesigned with our development profile.
3
0
2.3k
Feb ’21
CFNetwork Crash macOS 10.11.6
We haven't had our app updated on macOS 10.11 for 2/3 years but suddenly our users are seeing a crash when the app attempts to sync. The crashlogs indicate: libsystem_kernel.dylib 0x7fff9bca2000 + 93958 libsystem_c.dylib 0x7fff8c157000 + 386783 libsystem_c.dylib 0x7fff8c157000 + 155096 CFNetwork 0x7fff8bcf0000 + 932124 libdispatch.dylib 0x7fff9b6a4000 + 55613 libdispatch.dylib 0x7fff9b6a4000 + 9227 Any idea what I need to do? Reported as bug: FB9097483
1
0
950
May ’21