Post not yet marked as solved
When I want to activate my app, after exits the screen saver, the password input interface is not displayed on Monterey.
I use apple script to exit screen saver: osascript -e 'tell application "ScreenSaverEngine" to quit'
What can I do to exit the screen saver and display the enter password screen?
thanks,
Post not yet marked as solved
MacBook Pro (Retina, 15-inch, Mid 2015)
macOS Monterey 12.0.1 (21A558)
Xcode Version 13.1 (13A1030d)
Xcode12 can't be use.
please help me.
Post not yet marked as solved
I want to load the library in here: /Library/CoreMediaIO/Plug-Ins/DAL, my app and these libraries use different company signatures, and I don’t want to use “Disable Library Validation”, because that would cause a security hole in my app. Bundle these libraries with my app, it will make my app bigger and bigger, How can i do?
Post not yet marked as solved
When I call CGDisplayStreamCreate, I need to authorize it. I want to check the authorization status of Screen Recording when the app starts. I will request authorization and perform further operations without authorization. What is the relevant api? CGDisplayStreamRef display_stream = CGDisplayStreamCreate( display_id, 100, 100, 'BGRA', nil, handler);
Post not yet marked as solved
I want to request this permission when the app starts, not when it is running.
Post not yet marked as solved
Before mac osx 10.14 I wake up by CGEventPost to post a KeyboardEvent, in osx10.14 will now pop up Accessibility access reminder, this is not what we want, I tried the following method, is my method wrong or there are other ways?we can use the root privilege.1. NSCalendarDate *timeIntervalSinceNow = [NSCalendarDate dateWithTimeIntervalSinceNow:40]; IOReturn returnCode = IOPMSchedulePowerEvent ((CFDateRef)timeIntervalSinceNow, NULL, CFSTR(kIOPMAutoWakeOrPowerOn));2.void sendWakeEvent() { ProcessSerialNumber psn = { 0, kSystemProcess }; NSAppleEventDescriptor* target = [NSAppleEventDescriptor descriptorWithDescriptorType:typeProcessSerialNumber bytes:&psn length:sizeof(psn)]; NSAppleEventDescriptor* event = [NSAppleEventDescriptor appleEventWithEventClass:kCoreEventClass eventID:kAEWakeUpEvent targetDescriptor:target returnID:AEReturnID(kAutoGenerateReturnID) transactionID:AETransactionID(kAnyTransactionID)]; NSError * error = nil; [event sendEventWithOptions:NSAppleEventSendNoReply timeout:kAEDefaultTimeout error:&error]; ZRLogString([error description]);}
Post not yet marked as solved
My app needs to access the microphone and camera. When I open it for the first time, I will prompt the user to allow it. But we need large-scale automatic deployment. Can I let the user agree by installing the script or installing it?