From 1bced474a2064e9cf80463d53a3d83ce29c9e7f6 Mon Sep 17 00:00:00 2001 From: Rafael Kitover Date: Fri, 8 May 2020 13:26:20 -0700 Subject: [PATCH] Codesign fix for mac. Followup on 07064c87. Use codesign --deep to sign the .app before signing all the frameworks, otherwise codesign will refuse to sign the app due to unsigned dylibs when not making a static build. The error is: ./visualboyadvance-m.app: code object is not signed at all In subcomponent: ...libtheoraenc.1.dylib Signed-off-by: Rafael Kitover --- src/wx/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wx/CMakeLists.txt b/src/wx/CMakeLists.txt index 2df3950d..9361127a 100644 --- a/src/wx/CMakeLists.txt +++ b/src/wx/CMakeLists.txt @@ -1222,7 +1222,7 @@ if(APPLE AND (UPSTREAM_RELEASE OR ENABLE_ONLINEUPDATES)) add_custom_command( TARGET visualboyadvance-m POST_BUILD - COMMAND codesign --sign "Developer ID Application" --force ./visualboyadvance-m.app + COMMAND codesign --sign "Developer ID Application" --force --deep ./visualboyadvance-m.app WORKING_DIRECTORY ${CMAKE_BINARY_DIR} )