AppRTC is showing duplicate symbol for architecture x86_64 - ios

I've a unique problem. I'm including the AppRTC in my project via. podfile. It is successfully getting installed and along with it libjingle_peerconnection and SocketRocket libraries are also getting installed. However when I build my project it shows duplicate symbol error for libWebRTC.a and gives the following message -->
duplicate symbol _RTCFileName in:
(My project path)/Pods/libjingle_peerconnection/libjingle_peerconnection/libWebRTC.a(libjingle_peerconnection_objc.RTCLogging.o)
(My project path)/Pods/libjingle_peerconnection/libjingle_peerconnection/libWebRTC.a(rtc_base_objc.RTCLogging.o)
duplicate symbol _RTCLogEx in:
(My project path)/Pods/libjingle_peerconnection/libjingle_peerconnection/libWebRTC.a(libjingle_peerconnection_objc.RTCLogging.o)
(My project path)/Pods/libjingle_peerconnection/libjingle_peerconnection/libWebRTC.a(rtc_base_objc.RTCLogging.o)
duplicate symbol _RTCSetMinDebugLogLevel in:
(My project path)/Pods/libjingle_peerconnection/libjingle_peerconnection/libWebRTC.a(libjingle_peerconnection_objc.RTCLogging.o)
(My project path)/Pods/libjingle_peerconnection/libjingle_peerconnection/libWebRTC.a(rtc_base_objc.RTCLogging.o)
duplicate symbol __Z27RTCGetNativeLoggingSeverity18RTCLoggingSeverity in:
(My project path)/Pods/libjingle_peerconnection/libjingle_peerconnection/libWebRTC.a(libjingle_peerconnection_objc.RTCLogging.o)
(My project path)/Pods/libjingle_peerconnection/libjingle_peerconnection/libWebRTC.a(rtc_base_objc.RTCLogging.o)
ld: 4 duplicate symbols for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I've tried everything related to this but with no success. So please help me to solve it or atleast tell why this is happening.

Related

Unity xCode Linker error - Trying to Debug

Trying to figure out how to even start debugging this issue. I'm using Google VR on Unity, deploying to xcode for the build to iOS devices. I"ve opened the workspace instead of the project in xcode as referenced in:
Xcode Project vs. Xcode Workspace - Differences
I've attempted to fix as referenced in:
Duplicate Symbols for Architecture arm64
Still getting the same error and have no idea where to go from here.
duplicate symbol _OBJC_CLASS_$_DeviceParamsSyncHelper in:
/Users/OriginDevIT/Documents/ODIT_ARVR/GP_Excel/builds/ios/V1.9.11.b11/Pods/GVRSDK/Libraries/libGVRSDK.a(DeviceParamsSyncHelper.mm.o)
/Users/OriginDevIT/Documents/ODIT_ARVR/GP_Excel/builds/ios/V1.9.11.b11/Libraries/Plugins/iOS/libgvrunity.a(DeviceParamsSyncHelper.mm.o)
duplicate symbol _OBJC_METACLASS_$_DeviceParamsSyncHelper in:
/Users/OriginDevIT/Documents/ODIT_ARVR/GP_Excel/builds/ios/V1.9.11.b11/Pods/GVRSDK/Libraries/libGVRSDK.a(DeviceParamsSyncHelper.mm.o)
/Users/OriginDevIT/Documents/ODIT_ARVR/GP_Excel/builds/ios/V1.9.11.b11/Libraries/Plugins/iOS/libgvrunity.a(DeviceParamsSyncHelper.mm.o)
ld: 2087 duplicate symbols for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Archive ReactNative got duplicate symbols for architecture arm64

I tried to archive an IOS project with ReactNative. Got this error:
duplicate symbol _OBJC_IVAR_$_RCTWebSocketModule._methodQueue in:
/Users/xuleyuan/Library/Developer/Xcode/DerivedData/SWCRN-ewdfdwvyvsgtsjbhztxszcugwdph/Build/Intermediates/ArchiveIntermediates/SWCRN/BuildProductsPath/Release-iphoneos/libReact.a(RCTWebSocketModule.o)
/Users/xuleyuan/Library/Developer/Xcode/DerivedData/SWCRN-ewdfdwvyvsgtsjbhztxszcugwdph/Build/Intermediates/ArchiveIntermediates/SWCRN/BuildProductsPath/Release-iphoneos/libRCTWebSocket.a(RCTWebSocketModule.o)
duplicate symbol _OBJC_IVAR_$_RCTWebSocketModule._sockets in:
/Users/xuleyuan/Library/Developer/Xcode/DerivedData/SWCRN-ewdfdwvyvsgtsjbhztxszcugwdph/Build/Intermediates/ArchiveIntermediates/SWCRN/BuildProductsPath/Release-iphoneos/libReact.a(RCTWebSocketModule.o)
/Users/xuleyuan/Library/Developer/Xcode/DerivedData/SWCRN-ewdfdwvyvsgtsjbhztxszcugwdph/Build/Intermediates/ArchiveIntermediates/SWCRN/BuildProductsPath/Release-iphoneos/libRCTWebSocket.a(RCTWebSocketModule.o)
duplicate symbol _OBJC_METACLASS_$_RCTWebSocketModule in:
/Users/xuleyuan/Library/Developer/Xcode/DerivedData/SWCRN-ewdfdwvyvsgtsjbhztxszcugwdph/Build/Intermediates/ArchiveIntermediates/SWCRN/BuildProductsPath/Release-iphoneos/libReact.a(RCTWebSocketModule.o)
/Users/xuleyuan/Library/Developer/Xcode/DerivedData/SWCRN-ewdfdwvyvsgtsjbhztxszcugwdph/Build/Intermediates/ArchiveIntermediates/SWCRN/BuildProductsPath/Release-iphoneos/libRCTWebSocket.a(RCTWebSocketModule.o)
ld: 441 duplicate symbols for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
But I can run it with simulator rightly.What I have done:
delete duplicate targets in pod and main project
search compile source but find nothing duplicate
turn off No Common Block of all the targets
In project/Pods I found a Headers folder which contains two folders named public and private with duplicate file .Should I delete one of them?
Finally. I solved this problem!
Just remove all about React in PodFile (Only React) and everything become pretty

Duplicate Symbol Linker Error With Firebase CocoaPods

I had been developing a an iPad iOS app using the simulator until recently when I got my hands on an iPad with iOS 8.
I had been adding a couple of frameworks and going on just fine and the project has always built and run fine for the simulator (and it still does).
However, building for the device fails with an error about duplicate symbols (220 of them!) for the Firebase (2.5.0) Target in the Pods Project. I tried all the basics of cleaning the project, making sure Obj-C related flags were in place, but nothing.
I decided to see if somehow during work some configuration got broken so I tested on a fresh project, with Firebase as the only Pod and with nothing else done but setting up the workspace with 'pod install' and I get the exact same error.
All the duplicate symbols seem to be regarding the same file (libFirebaseStatic.a) and very many o-files.
This is the error, but I have chopped off a large middle part of the error for obvious reasons:
duplicate symbol _llvm.cmdline in:
/Users/RCR/Documents/DEV/IOS/Business/BLBusiness/Pods/Firebase/libFirebaseStatic.a(FPendingPut.o)
/Users/RCR/Documents/DEV/IOS/Business/BLBusiness/Pods/Firebase/libFirebaseStatic.a(FBase64Utilities.o)
duplicate symbol _llvm.embedded.module in:
/Users/RCR/Documents/DEV/IOS/Business/BLBusiness/Pods/Firebase/libFirebaseStatic.a(FPendingPut.o)
/Users/RCR/Documents/DEV/IOS/Business/BLBusiness/Pods/Firebase/libFirebaseStatic.a(FBase64Utilities.o)
duplicate symbol _llvm.cmdline in:
/Users/RCR/Documents/DEV/IOS/Business/BLBusiness/Pods/Firebase/libFirebaseStatic.a(FPendingPut.o)
/Users/RCR/Documents/DEV/IOS/Business/BLBusiness/Pods/Firebase/libFirebaseStatic.a(FLevelDBStorageEngine.o)
.
.
.
duplicate symbol _llvm.embedded.module in:
/Users/RCR/Documents/DEV/IOS/Business/BLBusiness/Pods/Firebase/libFirebaseStatic.a(FPendingPut.o)
/Users/RCR/Documents/DEV/IOS/Business/BLBusiness/Pods/Firebase/libFirebaseStatic.a(FTransformedEnumerator.o)
duplicate symbol _llvm.cmdline in:
/Users/RCR/Documents/DEV/IOS/Business/BLBusiness/Pods/Firebase/libFirebaseStatic.a(FPendingPut.o)
/Users/RCR/Documents/DEV/IOS/Business/BLBusiness/Pods/Firebase/libFirebaseStatic.a(FClock.o)
duplicate symbol _llvm.embedded.module in:
/Users/RCR/Documents/DEV/IOS/Business/BLBusiness/Pods/Firebase/libFirebaseStatic.a(FPendingPut.o)
/Users/RCR/Documents/DEV/IOS/Business/BLBusiness/Pods/Firebase/libFirebaseStatic.a(FClock.o)
ld: 220 duplicate symbols for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Don't ask me why or how, but updating Xcode (to 7.2) solved this issue. I did not pay attention to what was my previous version before updating but it had to be 7.1 or 7.1.1.
In any case, the issue is gone. I assume that the Firebase library had compiling requirements only met by the latest update to Xcode.

Build Error with AWS SDK iOS

I downloaded the SDK from the Cognito service, and installed it under this instruction (http://docs.aws.amazon.com/mobile/sdkforios/developerguide/setup.html).
I installed the pod, and added the frameworks to my project. When I tried to run my project, I got an error including ld: 6705 duplicate symbols for architecture x86_64.
For example:
duplicate symbol _OBJC_CLASS_$_AWSEC2ResponseSerializer in:
/Users/haichen/Library/Developer/Xcode/DerivedData/AWSTest-ceywyjkmugdxssfeodliqhmuehlz/Build/Products/Debug-iphonesimulator/libPods-AWSEC2.a(AWSEC2Service.o)
/Users/haichen/Documents/AWSTest/aws-ios-sdk-2.1.1/frameworks/AWSEC2.framework/AWSEC2(AWSEC2Service.o)
duplicate symbol _OBJC_METACLASS_$_AWSEC2ResponseSerializer in:
/Users/haichen/Library/Developer/Xcode/DerivedData/AWSTest-ceywyjkmugdxssfeodliqhmuehlz/Build/Products/Debug-iphonesimulator/libPods-AWSEC2.a(AWSEC2Service.o)
/Users/haichen/Documents/AWSTest/aws-ios-sdk-2.1.1/frameworks/AWSEC2.framework/AWSEC2(AWSEC2Service.o)
duplicate symbol _OBJC_CLASS_$_AWSEC2RequestRetryHandler in:
/Users/haichen/Library/Developer/Xcode/DerivedData/AWSTest-ceywyjkmugdxssfeodliqhmuehlz/Build/Products/Debug-iphonesimulator/libPods-AWSEC2.a(AWSEC2Service.o)
/Users/haichen/Documents/AWSTest/aws-ios-sdk-2.1.1/frameworks/AWSEC2.framework/AWSEC2(AWSEC2Service.o)
duplicate symbol _OBJC_METACLASS_$_AWSEC2RequestRetryHandler in:
/Users/haichen/Library/Developer/Xcode/DerivedData/AWSTest-ceywyjkmugdxssfeodliqhmuehlz/Build/Products/Debug-iphonesimulator/libPods-AWSEC2.a(AWSEC2Service.o)
/Users/haichen/Documents/AWSTest/aws-ios-sdk-2.1.1/frameworks/AWSEC2.framework/AWSEC2(AWSEC2Service.o)
duplicate symbol _OBJC_CLASS_$_AWSEC2 in:
/Users/haichen/Library/Developer/Xcode/DerivedData/AWSTest-ceywyjkmugdxssfeodliqhmuehlz/Build/Products/Debug-iphonesimulator/libPods-AWSEC2.a(AWSEC2Service.o)
/Users/haichen/Documents/AWSTest/aws-ios-sdk-2.1.1/frameworks/AWSEC2.framework/AWSEC2(AWSEC2Service.o)
duplicate symbol _OBJC_METACLASS_$_AWSEC2 in:
/Users/haichen/Library/Developer/Xcode/DerivedData/AWSTest-ceywyjkmugdxssfeodliqhmuehlz/Build/Products/Debug-iphonesimulator/libPods-AWSEC2.a(AWSEC2Service.o)
/Users/haichen/Documents/AWSTest/aws-ios-sdk-2.1.1/frameworks/AWSEC2.framework/AWSEC2(AWSEC2Service.o)
ld: 6705 duplicate symbols for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Could anyone help me find out the reason?
Close your project.
Clear all derived data.
Quit Xcode and reopen it
Make sure you open .xcworkspace file instead of .xcodeproj of your project.
To clear Derived Data:
XCode -> Window -> Projects
Select your project
press delete button in front of derived data
Let me know if it help
It looks like you are using both the frameworks and Cocoapods. You cannot import the SDK using both of the methods at the same time. You need to choose one of them and remove the other one.
Try deleting the derived data, clean the proj and re-compile.

ios: Linker command failed with exit code 1 (use -1 to see invocation)

I am developing an application which include the payment gateway functionality within my app.
I am using xcode Version 5.1.1.
I am integrating Authorize .net sdk into my project. All the necessary setup has been done. But it gives me below error due to which i am getting stuck from last few days. I have not find any solution for my problem. Any help will be greatly appreciated.
My Project "Framework Search Path" is:
$(inherited)
$(SDKROOT)/Developer/Library/Frameworks
$(DEVELOPER_LIBRARY_DIR)/Frameworks
$(PROJECT_DIR)
Please help and give me permanent solution to this problem
ERROR:
duplicate symbol _OBJC_IVAR_$_Reachability.reachabilityRef in:
/Users/demo/Library/Developer/Xcode/DerivedData/ShoutoutCity-ecfuboehzdynacafsciafeowrugc/Build/Intermediates/ShoutoutCity.build/Debug-iphonesimulator/ShoutoutCity.build/Objects-normal/x86_64/Reachability-CC44CEE899F86958.o
/Users/demo/Library/Developer/Xcode/DerivedData/ShoutoutCity-ecfuboehzdynacafsciafeowrugc/Build/Intermediates/ShoutoutCity.build/Debug-iphonesimulator/ShoutoutCity.build/Objects-normal/x86_64/Reachability-3851C02C41B30E6B.o
duplicate symbol _OBJC_IVAR_$_Reachability.localWiFiRef in:
/Users/demo/Library/Developer/Xcode/DerivedData/ShoutoutCity-ecfuboehzdynacafsciafeowrugc/Build/Intermediates/ShoutoutCity.build/Debug-iphonesimulator/ShoutoutCity.build/Objects-normal/x86_64/Reachability-CC44CEE899F86958.o
/Users/demo/Library/Developer/Xcode/DerivedData/ShoutoutCity-ecfuboehzdynacafsciafeowrugc/Build/Intermediates/ShoutoutCity.build/Debug-iphonesimulator/ShoutoutCity.build/Objects-normal/x86_64/Reachability-3851C02C41B30E6B.o
duplicate symbol _OBJC_CLASS_$_Reachability in:
/Users/demo/Library/Developer/Xcode/DerivedData/ShoutoutCity-ecfuboehzdynacafsciafeowrugc/Build/Intermediates/ShoutoutCity.build/Debug-iphonesimulator/ShoutoutCity.build/Objects-normal/x86_64/Reachability-CC44CEE899F86958.o
/Users/demo/Library/Developer/Xcode/DerivedData/ShoutoutCity-ecfuboehzdynacafsciafeowrugc/Build/Intermediates/ShoutoutCity.build/Debug-iphonesimulator/ShoutoutCity.build/Objects-normal/x86_64/Reachability-3851C02C41B30E6B.o
duplicate symbol _OBJC_METACLASS_$_Reachability in:
/Users/demo/Library/Developer/Xcode/DerivedData/ShoutoutCity-ecfuboehzdynacafsciafeowrugc/Build/Intermediates/ShoutoutCity.build/Debug-iphonesimulator/ShoutoutCity.build/Objects-normal/x86_64/Reachability-CC44CEE899F86958.o
/Users/demo/Library/Developer/Xcode/DerivedData/ShoutoutCity-ecfuboehzdynacafsciafeowrugc/Build/Intermediates/ShoutoutCity.build/Debug-iphonesimulator/ShoutoutCity.build/Objects-normal/x86_64/Reachability-3851C02C41B30E6B.o
ld: 4 duplicate symbols for architecture x86_64
ld: 4 duplicate symbols for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I have not get a single solution on google that can solve my problem.
Please help me.

Resources