Adding Pollfish And PrintIO in One app having duplicate issue - ios

In My App we need to add Following SDKs:
Pollfish
PrintIO
But I face a following
duplicate symbol _VERSION in:
/MyAppPath/Library/PrintIO/PrintIO.framework/PrintIO(BTEncryption.o)
/MyAppPath/pollfish.framework/pollfish ld: 1 duplicate symbol for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Both are frameworks.
If I remove one framework then My app works fine. But I need to add both things.

Related

linker command failed: duplicate symbol for architecture arm64

I am having this error while running my project. I referred so many answers and did the same but can't resolve this issue.
duplicate symbol _kReachabilityChangedNotification in:
/Users/admin/Downloads/workRepo/SafetraxApp/MAppIOS/build2/Safetrax/Build/Intermediates/Safetrax.build/Debug-iphoneos/Parent App.build/Objects-normal/arm64/Reachability.o
Pods/catapush-ios-sdk-pod/CatapushKit/libCatapushLib.a(CLIntReachability.o)
ld: 1 duplicate symbol for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I assume you are using the Reachability snippet from Apple. Unfortunately, that piece of code and the accompanying constants are being used in several Cocoapods. That's what causes this error. It basically means that the symbol/constant kReachabilityChangedNotification has been defined twice in your binary: once in your Application and once in the CatapushKit pod.
The easiest way to fix is: Rename the constant in your code. The other option would be to delete the Reachbility code from your app and use the CLIntReachability implementation from CatapushKit.

linker command failed with exit code 1 (use -v to see invocation

I am getting the following linking error in Xcode 6. Any ideas how to solve this
duplicate symbol _OBJC_IVAR_$_SCClip._m4g1c in:
/Users/Abdul/Library/Developer/Xcode/DerivedData/SoundCandy-bwekfiwyyjgmwhbgztfrqedobxxn/Build/Intermediates/SoundCandy.build/Debug-iphonesimulator/SoundCandyTests.build/Objects-normal/x86_64/SCClip-F338C753334EE43A.o
duplicate symbol _SCCLIP_INPUT_TOKEN in:
/Users/Abdul/Library/Developer/Xcode/DerivedData/SoundCandy-bwekfiwyyjgmwhbgztfrqedobxxn/Build/Intermediates/SoundCandy.build/Debug-iphonesimulator/SoundCandyTests.build/Objects-normal/x86_64/SCClip-F338C753334EE43A.o
duplicate symbol _OBJC_CLASS_$_SCClip in:
/Users/Abdul/Library/Developer/Xcode/DerivedData/SoundCandy-bwekfiwyyjgmwhbgztfrqedobxxn/Build/Intermediates/SoundCandy.build/Debug-iphonesimulator/SoundCandyTests.build/Objects-normal/x86_64/SCClip-F338C753334EE43A.o
duplicate symbol _OBJC_METACLASS_$_SCClip in:
/Users/Abdul/Library/Developer/Xcode/DerivedData/SoundCandy-bwekfiwyyjgmwhbgztfrqedobxxn/Build/Intermediates/SoundCandy.build/Debug-iphonesimulator/SoundCandyTests.build/Objects-normal/x86_64/SCClip-F338C753334EE43A.o
ld: 4 duplicate symbols for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I fixed by selecting and deselecting target membership of the problematic file in the file inspector in Xcode

Apple Mach-O Linker Error - duplicate symbols for architecture x86_64

I have tried all the answers available on stackoverflow but nothing seems to be working.
I get the following error whenever i create a (TCRecord)subclass of MMRecord.
Error:
duplicate symbol _MMRecordErrorDomain in:
/Users/mavericks/Library/Developer/Xcode/DerivedData/Beered-efrmoegppszsqtbcbtfrytgkdlyy/Build/Intermediates/Beered.build/Debug-iphonesimulator/Beered.build/Objects-normal/x86_64/TCRecord.o
/Users/mavericks/Library/Developer/Xcode/DerivedData/Beered-efrmoegppszsqtbcbtfrytgkdlyy/Build/Products/Debug-iphonesimulator/libPods-MMRecord.a(MMRecord.o)
ld: 1 duplicate symbol for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Things i have already tried:
Tried removing the -ObjC in other linker flags
I have already checked the directory for any duplicate files
Under Compile sources there is no duplication of implementation files.
Third party library i am using :
MMRecord
https://github.com/mutualmobile/MMRecord
For now, in your project settings, search for "gcc_no" and set the flag to NO until we get the issue fixed. That should allow you to build your project.
Try deleting extra frameworks that have no use.

DocuSign iOS SDK - remove CMPopTipView from dependency

Both My project and DocuSign project are using CMPopTipView open source code. Due that I facing following error during runtime.
Build/Products/Debug-iphoneos/libPods-CMPopTipView.a(CMPopTipView.o)
duplicate symbol _OBJC_METACLASS_$_CMPopTipView in:
/Users/Mani/Library/Developer/Xcode/DerivedData/myApp-cwzhebmptltodqbylbytaqjfetaa/Build/Intermediates/myApp.build/Debug-iphoneos/myApp.build/Objects-normal/arm64/CMPopTipView.o
/Users/Mani/Library/Developer/Xcode/DerivedData/myApp-cwzhebmptltodqbylbytaqjfetaa/Build/Products/Debug-iphoneos/libPods-CMPopTipView.a(CMPopTipView.o)
ld: 34 duplicate symbols for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Is there a way to remove dependency of DocuSignSDK for CMPopTipView and set it to use one present in my code base? if yes how?
Thanks,
Mani

duplicate symbol _utf8_decode Error Xcode5 for using two frameworks

Getting this strange error while compiling code in Xcode5:
duplicate symbol _utf8_decode in:
/iOS Development/.../.../Framework/OpenEars.framework/OpenEars(OpenEars)
/iOS Development/.../.../Framework/QZXLSReader.framework/QZXLSReader(xlstool.o)
ld: 1 duplicate symbol for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I am using XLS Parsing library & OpenEars Library in my project & imported both libraries.
One more question is: How to use -v in Xcode linking to see the verbose log.

Resources