Solve Xcode compilation link and xcode compilation Link
Recently, I have been sorting out the dynamic library. Because there are references to third-party static libraries and files in the project, the following problems occur during the compilation of dynamic libraries. The following is a general error message. I marked the same type of error in the image with a border of the same color.
Error description:
1. blue border
If the following error message is displayed, it is related to compression or decompression.
"_ Compress", referenced from:
"_ Uncompress", referenced from:
"_ Compress2", referenced from:
"_ InflateReset", referenced from:
"_ InflateInit _", referenced from:
"_ InflateEnd", referenced from:
"_ InflateInit2 _", referenced from:
Solution: Build Settings --> Other Linker Flags add-lz
2. Red border
"Std: :__ 1: basic_string ....."
Solution: Build Phases --> Link Binary With Libraries to add the dependent library libstdc ++. tbd
3. Green Border
"_ Utf8_nextCharSafeBody", referenced from:
Solution: Build Phases --> Link Binary With Libraries to add the dependent library libicucore. tbd