torakiki / pdfsam

PDFsam, a desktop application to split, merge, mix, rotate PDF files and extract pages
https://pdfsam.org
GNU Affero General Public License v3.0
3.41k stars 343 forks source link

Build on Mac and show Error "Using keychain [] could not find a certificate matching [Developer ID Application: Andrea Vacondio]" #563

Closed hyrulelinks closed 1 year ago

hyrulelinks commented 1 year ago

I attempted to build this project on my M1 Max Mac, and everything was going well until the final step involving the DMG file. From the error message, I understand that this is due to my Mac's keychain not containing the developer account specified in the project. How can I resolve this issue? Where can I find the developer certificate? Is there a way to modify the project settings to remove the requirement for the developer certificate? I apologize for my lack of knowledge, as I am a beginner and don't understand much about developer accounts. I hope to receive assistance from the project owner. Thank you! @torakiki

[INFO] --- exec:3.1.0:exec (jpackage) @ pdfsam-basic ---
[00:57:38.005] Using keychain [] could not find a certificate matching [Developer ID Application: Andrea Vacondio]
Due to configuration issues, packaging the Mac DMG package was skipped: Signing was explicitly requested, but the signing certificate could not be found.
Suggestion for fixing: Specify a valid mac-signing-key-user-name and mac-signing-keychain
[ERROR] Command execution failed.
org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1)
[INFO] Reactor Summary for PDFsam 5.1.4-SNAPSHOT:
[INFO]
[INFO] PDFsam ............................................. SUCCESS [  0.408 s]
[INFO] PDFsam internationalization ........................ SUCCESS [  1.953 s]
[INFO] PDFsam model ....................................... SUCCESS [  1.099 s]
[INFO] PDFsam persistence ................................. SUCCESS [  0.645 s]
[INFO] PDFsam themes ...................................... SUCCESS [  0.477 s]
[INFO] PDFsam core ........................................ SUCCESS [  0.868 s]
[INFO] PDFsam test ........................................ SUCCESS [  0.533 s]
[INFO] PDFsam JavaFx components ........................... SUCCESS [  1.373 s]
[INFO] PDFsam service ..................................... SUCCESS [  1.093 s]
[INFO] PDFsam merge tool .................................. SUCCESS [  0.635 s]
[INFO] PDFsam simple split tool ........................... SUCCESS [  0.639 s]
[INFO] PDFsam split by size tool .......................... SUCCESS [  0.590 s]
[INFO] PDFsam split by bookmarks tool ..................... SUCCESS [  0.622 s]
[INFO] PDFsam alternate mix tool .......................... SUCCESS [  0.596 s]
[INFO] PDFsam rotate tool ................................. SUCCESS [  0.593 s]
[INFO] PDFsam extract tool ................................ SUCCESS [  0.594 s]
[INFO] PDFsam backpages tool .............................. SUCCESS [  0.562 s]
[INFO] PDFsam GUI ......................................... SUCCESS [  1.194 s]
[INFO] PDFsam Basic Edition application ................... FAILURE [  4.662 s]
[INFO] PDFsam docs ........................................ SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  19.662 s
[INFO] Finished at: 2023-11-04T00:57:38+08:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:3.1.0:exec (jpackage) on project pdfsam-basic: Command execution failed.: Process exited with an error: 1 (Exit value: 1) -> [Help 1]