I recently changed the
Info.plist file for nextcloud.app so that it would stop using the discrete GPU. However, this seemed to introduce a new issue where, apparently due to my changes to the
Info.plist, the code signature for the app was no longer valid:
Feb 18 00:28:54 bardiel amfid: /Applications/nextcloud.app/Contents/MacOS/nextcloud signature not valid: 0xfffefa2a Feb 18 00:28:54 bardiel kernel: proc 811: load code signature error 4 for file "nextcloud" Feb 18 00:28:56 bardiel usernoted: Failed to validate application at /Applications/nextcloud.app -67030 Feb 18 00:28:56 bardiel com.apple.SecurityServer: suppressing keychain prompt /Applications/nextcloud.app(811); code signing check failed rc=-67030
This meant that the app was no longer allowed to access the Keychain, and the only way I found out was by inspecting
system.log in Console.app. Thus nextcloud.app would ask me for a login every time it started - the primary symptom.
While waiting for the Nextcloud developers to work on the aforementioned issue, an interim fix is as follows:
$ sudo codesign -s "My Certificate Name" -fv /Applications/Nextcloud.app
You should now be able to launch the app and have it prompt you for Keychain access.