在CanvasPop API ios中链接错误

时间:2014-08-13 15:27:21

标签: ios xcode api

我在我的应用程序中集成了canvaspop。当我在示例应用程序中集成它时它工作正常。但是当我在我的应用程序中使用它与其他第三个pary框架如GPUimage,IKImagePicker,xpload等等。我是在将框架链接到我的应用程序时出现这些错误。

Ld /Users/mandeep/Library/Developer/Xcode/DerivedData/ImageEditorPro-bkvuyjzwftcotmgjlrocdiyaqkqu/Build/Products/Debug-iphonesimulator/ImageEditorPro.app/ImageEditorPro normal i386
cd "/Volumes/DATA/Chakshu/clientProjects/Kamil/Editlab Testing/EditLab"
export IPHONEOS_DEPLOYMENT_TARGET=6.0
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.1.sdk -L/Users/mandeep/Library/Developer/Xcode/DerivedData/ImageEditorPro-bkvuyjzwftcotmgjlrocdiyaqkqu/Build/Products/Debug-iphonesimulator -LVendors/IAPPVerification -LVendors/TestFlight -LVendors/Canvas -F/Users/mandeep/Library/Developer/Xcode/DerivedData/ImageEditorPro-bkvuyjzwftcotmgjlrocdiyaqkqu/Build/Products/Debug-iphonesimulator -FVendors/IKImagePickerController/Vendors/FacebookSDK -FImageEditorPro -FVendors/GooglePlus -F/Volumes/DATA/Chakshu/clientProjects/Kamil/Editlab\ Testing/EditLab/IddictionSDK.embeddedframework -F/Volumes/DATA/Chakshu/clientProjects/Kamil/Editlab\ Testing/EditLab/IddictionSDK.embeddedframework/XplodeSDK.embeddedframework -F/Volumes/DATA/Chakshu/clientProjects/Kamil/Editlab\ Testing/EditLab/XplodeSDK.embeddedframework -FVendors/Canvas -F/Volumes/DATA/Chakshu/clientProjects/Kamil/Editlab\ Testing/EditLab/Vendors/Canvas -filelist /Users/mandeep/Library/Developer/Xcode/DerivedData/ImageEditorPro-bkvuyjzwftcotmgjlrocdiyaqkqu/Build/Intermediates/ImageEditorPro.build/Debug-iphonesimulator/ImageEditorPro.build/Objects-normal/i386/ImageEditorPro.LinkFileList -Xlinker -objc_abi_version -Xlinker 2 -fobjc-arc -fobjc-link-runtime -Xlinker -no_implicit_dylibs -mios-simulator-version-min=6.0 -framework Security -framework MobileCoreServices -framework CFNetwork -framework Accelerate -lz -lObjectiveFlickr -framework PopUpLib /Users/mandeep/Library/Developer/Xcode/DerivedData/ImageEditorPro-bkvuyjzwftcotmgjlrocdiyaqkqu/Build/Products/Debug-iphonesimulator/libTMTumblrSDK.a -framework CoreMotion -framework MediaPlayer -framework StoreKit -framework GoogleOpenSource -framework FacebookSDK -framework SystemConfiguration -framework MapKit -framework CoreVideo -framework CoreMedia -framework OpenGLES -framework AVFoundation /Users/mandeep/Library/Developer/Xcode/DerivedData/ImageEditorPro-bkvuyjzwftcotmgjlrocdiyaqkqu/Build/Products/Debug-iphonesimulator/libGPUImage.a -framework AdSupport -lsqlite3 -framework Social -framework Accounts -framework AssetsLibrary -lbeeblex -framework ImageIO -framework QuartzCore /Users/mandeep/Library/Developer/Xcode/DerivedData/ImageEditorPro-bkvuyjzwftcotmgjlrocdiyaqkqu/Build/Products/Debug-iphonesimulator/libIKImagePickerController.a -framework CoreGraphics -framework UIKit -lTestFlight -framework XplodeSDK -framework Foundation -framework GooglePlus -Xlinker -dependency_info -Xlinker /Users/mandeep/Library/Developer/Xcode/DerivedData/ImageEditorPro-bkvuyjzwftcotmgjlrocdiyaqkqu/Build/Intermediates/ImageEditorPro.build/Debug-iphonesimulator/ImageEditorPro.build/Objects-normal/i386/ImageEditorPro_dependency_info.dat -o /Users/mandeep/Library/Developer/Xcode/DerivedData/ImageEditorPro-bkvuyjzwftcotmgjlrocdiyaqkqu/Build/Products/Debug-iphonesimulator/ImageEditorPro.app/ImageEditorPro

duplicate symbol _OBJC_CLASS_$_Reachability in:
/Users/mandeep/Library/Developer/Xcode/DerivedData/ImageEditorPro-bkvuyjzwftcotmgjlrocdiyaqkqu/Build/Intermediates/ImageEditorPro.build/Debug-iphonesimulator/ImageEditorPro.build/Objects-normal/i386/Reachability.o
Vendors/Canvas/PopUpLib.framework/PopUpLib(libPopUpLib.a-i386-master.o)
duplicate symbol _OBJC_METACLASS_$_Reachability in:
/Users/mandeep/Library/Developer/Xcode/DerivedData/ImageEditorPro-bkvuyjzwftcotmgjlrocdiyaqkqu/Build/Intermediates/ImageEditorPro.build/Debug-iphonesimulator/ImageEditorPro.build/Objects-normal/i386/Reachability.o
Vendors/Canvas/PopUpLib.framework/PopUpLib(libPopUpLib.a-i386-master.o)

duplicate symbol _kReachabilityChangedNotification in:
/Users/mandeep/Library/Developer/Xcode/DerivedData/ImageEditorPro-bkvuyjzwftcotmgjlrocdiyaqkqu/Build/Intermediates/ImageEditorPro.build/Debug-iphonesimulator/ImageEditorPro.build/Objects-normal/i386/Reachability.o
Vendors/Canvas/PopUpLib.framework/PopUpLib(libPopUpLib.a-i386-master.o)

ld: 3 duplicate symbols for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)

我认为构建设置中有一些设置必须更改才能成功将此框架链接到应用程序。 谢谢

1 个答案:

答案 0 :(得分:0)

试着看看这个问题和解决方案:

Conflict between class and static library

它解释了.m文件如何相互冲突。

尝试此解决方案并对结果发表评论。