Question by
zsconverse · Jan 23, 2019 at 12:42 PM ·
iosxcode
How can I disable "dead code stripping" in xcode?
I need to reference a third-party package in xcode that must disable "dead code stripping" to work properly. But when I disable "dead code stripping", unity will report an error: "Undefined symbols for architecture arm64:"Geo::GetiOSAppDocumentsDir()", referenced from:Geo::PathUtils::GetSandboxDataPath() in libiPhone-lib.a(GeoPathUtils.o)" What should I do?
Comment
Answer by MildaGenius2 · Apr 03, 2019 at 02:01 PM
Set 'Dead Code Stripping' == No and 'Don't Dead-Strip Inits and Terms' == Yes. If it did not work, try add '-all_load' to linker flag.