Posts

Post not yet marked as solved
1 Replies
1.1k Views
How do I debug privileged helper? Can someone point me to documentation ?
Posted
by maju.
Last updated
.
Post not yet marked as solved
1 Replies
610 Views
Hi, Is there anyway to launch multiple instances of google chrome using the below API? let openConfig = NSWorkspace.OpenConfiguration() openConfig.promptsUserIfNeeded = true openConfig.activates = true openConfig.createsNewApplicationInstance = true if authURL != nil { ssoURL = "\(String(describing: authURL!.description))" openConfig.arguments = [ssoURL!] } NSWorkspace.shared.openApplication(at: appURL!,configuration: openConfig,completionHandler: appCompletionHandler) when i run the above code snippet, it opens new tab in running instance of google app. Is there anyway tp launch multipe instances of goolge app using swift libarry?
Posted
by maju.
Last updated
.
Post not yet marked as solved
1 Replies
547 Views
Hi, The Application launches a Privileged XPC. To running Privileged tasks we use “AuthorizationCreate” AuthorizationCreate(_ rights: UnsafePointer?, _ environment: UnsafePointer?, _ flags: AuthorizationFlags, _ authorization: UnsafeMutablePointer<AuthorizationRef?>?) -> OSStatus which launches a authentication alert where we need to enter user name and password and it returns a AuthorizationRef , After receiving the “AuthorizationRef “ we pass the same AuthorizationRef to XPC while launching XPC via SMJobless SMJobBless(_ domain: CFString!, _ executableLabel: CFString, _ auth: AuthorizationRef!, _ outError: UnsafeMutablePointer<Unmanaged?>!) -> Bool The XPC is used to run Privileged tasks. Now I want to run my application on silent mode without any UI, using terminal. Is there any way to skip the authentication alert and get AuthorizationRef without any UI via terminal. The idea here is to uninstall the product silently using shell-script. So our app provides a silent mode which can be invoked from shell script. How do we handle privileged helper installation part? We are running shell-script using admin / sudo mode. Is there anyway to skip privileged mode instalation. prompt when we run the app from shell script? Thanks Majuj
Posted
by maju.
Last updated
.
Post not yet marked as solved
4 Replies
3k Views
Hi, Is there anyway to embed chrome or chromium browser on swift app? I want to perform SSO login using chrome browser and browser should invoke redirect URL when it get response from the server. Currently this is implemented using wkwebvie? but customer wants this to be done using chrome browser. Can we do it?
Posted
by maju.
Last updated
.
Post not yet marked as solved
1 Replies
1k Views
Hi, Is there any API for checking whether file is in use or not by any app? I know we can do the same using lsof command from terminal window. Can we do the same using API? Thanks
Posted
by maju.
Last updated
.
Post marked as solved
1 Replies
958 Views
Hi, I'm trying to notarise package file of our product. Notarization is success with some warnings on 3rd party package file. I see two executables in the 3rd party package file is not code signed properly. I need to expand, sign those binaries and flatten it again and include into our package file. I'm able to expand the 3rd party package file using the below command: pkgutil --expand " "directory name" Now i'm able to see files of the above package file. But how do i expand pay-load files?
Posted
by maju.
Last updated
.
Post not yet marked as solved
1 Replies
453 Views
Hi All, Is there anyway to access a library written in swift or objective-c from applescript? Library can be either cocoa framework or library. we can access standard framework classes and functions using 'use framework'. Can we do the same for custom library written using swift or objective-c? Thanks
Posted
by maju.
Last updated
.
Post marked as solved
2 Replies
1.8k Views
Hi, How to add keyboard shortcut for service menu actions / workflows? I have created service menu actions for mac OS automation and these actions are available for 3rd party apps under service menu section. But the drawback here is every-time user has to go and click on it to perform that action. we can manually assign keyboard shortcut using system preferences -> Keyboard -> service menus -> add shortcut. Is there anyway to assign shortcut keys programmatically (via shell-script) for service menu actions? The goal here is to assign shortcuts via install-script instead of manually doing it.
Posted
by maju.
Last updated
.
Post not yet marked as solved
1 Replies
575 Views
Hi All,I'm trying to notarize macOS apps via XCode IDE - Organizer window. When I submit the app into Apple Services, the organizer window status will be changed to "Processing" and after a while I will get an e-mail saying that "Your Mac software has been notarized. You can now export this software and distribute it directly to users.'But there is no way to export notraized app. 'Export Notarized App' button is greyed out and status remains in "Processing" state eventhough i got an approved e-mail. If I query notarization info using the below command:xcrun altool --notarization-info <UUID> -u <username> -p<pwd>it returns 'package approved" status. I checked the LogFileURL link also. It says "status summary" as "Ready for distribution" and "issues" as "null"Why "Export Notarized App" button is greyed out?
Posted
by maju.
Last updated
.