Posts

Post not yet marked as solved
2 Replies
338 Views
How do I programmatically mount an APFS encrypted device? If it is a normal device, Can be mounted using DADiskMount of Disk Arbitration Framework. However, in the case of APFS encryption, it will not be mounted even if DADiskMount is used in the same way. I think it requires a password to mount. Please tell me if there is a way to programmatically mount the APFS encrypted device. The language I'm currently using is Objective-C.
Posted Last updated
.
Post marked as solved
4 Replies
342 Views
I'm making a program that works as an agent on macOS. The language is Objective-C. It is created with XCode based on "app" of "macOS". The plist is placed in /Library/LaunchAgents, and its LimitLoadToSessionType is Aqua and LoginWindow. When I call NSApplicationMain() in main function, I expect [AppDelegate applicationDidFinishLaunching:] to be called. However, in macOS Catalina, after calling NSApplicationMain() in the login window immediately after the OS starts, [AppDelegate applicationDidFinishLaunching:] is not called. It has been confirmed that if you log in once and then log off, it works as expected. With macOS Mojave, both immediately after OS startup and when logging off after login, it worked as expected. Why does this behavior occur immediately after the OS of macOS Catalina is started? Also, please let me know if there is a way to avoid this behavior.
Posted Last updated
.