- Home /
Xcode 8 linking error help
Hi everyone,this is the linking error that I get when trying to build an app on Xcode 8 (Unity version -> 5.5.2f1) ...so far I tried to fix it by :
1)Changing architectures(armv7 and arm64 and standard architectures) 2)Changing "Build active architecture only" to no 3)Changing "Dead code stripping" to no 4)Adding $(inherited) to "Other Linker Flags" 5)Adding "Security" and "SystemConfiguration" Frameworks to Build Phases 6)Enabling "Symlink Unity Libraries" in Unity Player Setting 7)Disabling "bitcode" and enabling "Preserve Private External Symbols"
Nothing worked ...
ld: warning: arm64 function not 4-byte aligned: ltmp0 from /Users/josipvukovic/Projects/survival/Builds/iOS/Libraries/libiPhone-lib.a(unwind_test_arm64.o) ld: warning: arm64 function not 4-byte aligned: _unwind_tester from /Users/josipvukovic/Projects/survival/Builds/iOS/Libraries/libiPhone-lib.a(unwind_test_arm64.o) Undefined symbols for architecture arm64: "OBJC_CLASS$_GSDK_OpenInChromeController", referenced from: objc-class-ref in GoogleSignIn(GIDSignIn.o) "OBJC_CLASS$_GTMSessionFetcherService", referenced from: objc-class-ref in GoogleSignIn(GIDSignIn.o) "OBJC_CLASS$_GTMSessionFetcher", referenced from: objc-class-ref in GoogleSignIn(GIDRuntimeConfigFetcher.o) objc-class-ref in GoogleSignIn(GIDSignIn.o) "OBJC_CLASS$_GSDK_GTMSessionFetcherService", referenced from: objc-class-ref in gpg(GIPNetworkImage.o) "_GSDK_NSClassFromString", referenced from: -[GIDSignIn init] in GoogleSignIn(GIDSignIn.o) -[GIDSignIn authenticateWithOptions:appSwitchConfig:] in GoogleSignIn(GIDSignIn.o) "OBJC_CLASS$_GSDK_GTMSessionFetcher", referenced from: objc-class-ref in gpg(GPGClearcutLogger.o) ld: symbol(s) not found for architecture arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation)