Does anyone know a solution to below error https://pastebin.com/1nd0hkcF.
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I have successfully ran Unity iOS version on simulator, but running it on a real device throws out an error about some missing symbols from 64arm architecture.
I have tried everything from relinking stuff, downgrading, changing bitcode, architectures. It just keeps throwing the same missing symbol arm64 and linker error after.
Related
I am building an application for IOS using the IONIC framework. It was working fine, that is, until I added this plugin cordova-plugin-firebase-analyticsHowever. Now, I keep getting the following error:
ld: 89 duplicate symbols for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I have read the similar questions posted here but none of solutions worked.
Any help will be appreciated. Thanks
Error details below:
duplicate symbol _OBJC_METACLASS_$_RCTWebSocketModule in:
/Library/Developer/Xcode/DerivedData/NetAgentApp-fuhngzgxmwbkcrgizkhvwsoqfslw/Build/Intermediates.noindex/ArchiveIntermediates/NetAgentApp/BuildProductsPath/Release-iphoneos/libReact.a(RCTWebSocketModule.o)
/Library/Developer/Xcode/DerivedData/NetAgentApp-fuhngzgxmwbkcrgizkhvwsoqfslw/Build/Intermediates.noindex/ArchiveIntermediates/NetAgentApp/BuildProductsPath/Release-iphoneos/libRCTWebSocket.a(RCTWebSocketModule.o)
ld: 459 duplicate symbols for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
This error caused by linking binary with libraries. Please check your linked libraries.
I just got this interesting error by upgrading to Xcode 8. It worked fine in Xcode 7. However, in Xcode 8 it gives me a linker error:
ld: 2562 duplicate symbols for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Frameworks I'm using:
Frameworks search path:
$(PROJECT_DIR)/My\ App
Linker Flags: (Obj-C)
$(inherited)
I'm not using pods. I've just copied over the frameworks to the project directory.
Xcode recommended to use warning flags and set GCC_NO_COMMON_BLOCKS to YES.
Setting it back to NO solved the problem!
When trying to build my iOS app in Xcode, I get the following error message.
Undefined symbols for architecture i386: "OBJC_CLASS$UIPresentationController", referenced from: _OBJC_CLASS$SSSidebarPresentationController in libtools.a(SSSidebarPresentationController.o) "_OBJC_METACLASS$UIPresentationController", referenced from: _OBJC_METACLASS$_SSSidebarPresentationController in libtools.a(SSSidebarPresentationController.o) ld: symbol(s) not found for architecture i386 clang: error: linker command failed with exit code 1 (use -v to see invocation)
I have the latest version of Xcode. I have tried cleaning and deleting derived data but that did not help. I've noticed a lot of other people on the internet have similar error messages but the solutions did not help me.
Add the AVFoundation and CoreLocation frameworks to your target. After you do this, delete derived data, clean, and build again.
Also, check in your architectures under build settings and make sure that you have armv7 and armv7s listed under valid architectures. If the above answer does not fix your problem then try adding or removing arm64.
ld: building for iOS Simulator, but linking against dylib built for MacOSX file '/Applications/Xcode.app/Contents/Developer/Library/Frameworks/XCTest.framework/XCTest' for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation).
What to do?
Please go through the link. It might help solving your problem.
Reference