From 488270d2754622d795e23f91cda9e138c28866db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Sat, 7 Nov 2026 13:43:21 +0100 Subject: [PATCH] iOS: Don't strip the static libraries when archiving Archiving stripped their debug info before the app linked them, so the dSYM only covered the app target's own files. Co-Authored-By: Claude Opus 5.5 --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 0f777b54e5..541b18db60 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -154,6 +154,9 @@ if(IOS) # CMake hardcodes the scheme's Archive action to Release, so Release is what we archive. # Give it full debug info, for the dSYM (the installed binary is still stripped). add_compile_options($<$:-g>) + # Archiving strips every target, which takes the debug info out of the static libraries before + # the app links them, leaving the dSYM with only the app's own files. The app target turns it back on. + set(CMAKE_XCODE_ATTRIBUTE_STRIP_INSTALLED_PRODUCT NO) endif() if(IOS_APP_STORE) add_compile_definitions(PPSSPP_PLATFORM_IOS_APP_STORE)