0

We are trying to create a framework in XCode, this framework is like a Wrapper, joining the two libraries (libA.a and libB.a) and some extra code in swift.

libA.a: Mach-O universal binary with 2 architectures. libB.a: Mach-O universal binary with 4 architectures.

We can compile it as Dynamic Library. The problem is I cannot strip the symbols of this two libraries in my framework, causing a security problem. We tried all the posible options in Xcode to strip the symbols without success.

If we try to set Strip-Style to All-symbols, Xcode fails with the following error:

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/strip: error: symbols referenced by indirect symbol table entries that can't be stripped in: /Users/user/Library/Developer/Xcode/DerivedData/MyFramWK-gbkcfqczccqvwkfnvzblptyqgdro/Build/Intermediates.noindex/ArchiveIntermediates/MyFramWK/InstallationBuildProductsLocation/Library/Frameworks/MyFramWK.framework/MyFramWK

And with Strip-Style to Non-Global, we tried all the posible options but the symbols are not removed. Any suggestions ??

I want the framework without symbols of the two libraries, only the methods exported in my swift code.

0 Answers0