cpprestsdk icon indicating copy to clipboard operation
cpprestsdk copied to clipboard

How to cut the size of the static library on Mobile?

Open CBHXuTT opened this issue 5 years ago • 1 comments

On the ios, the Release static library is about 40+MB, it's too big. Is there any way to cut the size of the static library?

CBHXuTT avatar Jul 22 '20 07:07 CBHXuTT

@CBHXuTT You could try to strip your binaries through CMake

set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -s") set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -s")

VitaliLiashchuk avatar Jan 18 '22 22:01 VitaliLiashchuk