问题
I have parse, facebook, bolts frameworks in my project but I get this error and I don't know how to solve it.
I tried to remove framworks and add them again.
I'm using xcode 6 and parse library 1.6.
duplicate symbol _OBJC_METACLASS_$_BFMeasurementEvent in:
/Users/home/Desktop/The Live TV V2/FacebookSDK.framework/FacebookSDK(BFMeasurementEvent.o)
/Users/home/Desktop/The Live TV V2/Bolts.framework/Bolts(BFMeasurementEvent.o)
ld: 91 duplicate symbols for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation
Any idea?
回答1:
Using Facebook and Parse Framework at the same time will cause a multiple duplicate symbol. No idea why this happens also. Removing Bolts.framework
from Parse will resolve this issue.
回答2:
I too, was searching for same, Not sure, why no body reply, but I fixed this issue by removing Bolts.framework completely from my Project, look like many of dependencies are already included in NEW Facebook SDK.,
Hope it helps you.
回答3:
I removed Bolts from my project and didn't work. Then I figured out that I had to remove all the references and Add Bolts again. Finally that worked fine for me.
回答4:
I know an answer has already been accepted, but this has now been resolved by Facebook.
If you download the latest Parse SDK (1.7.0) and Facebook SDK (4.0.0) as of this writing, it should work just fine. Both SDKs were updated just hours ago.
I have imported and copied Bolts.framework and Parse.framework from the Parse SDK, and then linked to Facebooks SDK (now called FBSDKCoreKit.framework), and it successfully builds the project.
回答5:
This issue arises the way Bolts and FaceBookSDK is added to the project. Remove both and re-add them with copy items if needed unchecked and Create Groups selected. I hope that this helps.
回答6:
I don't know this situations work for you or not but it did work in my case. Remove all the frameworks you have added into you project and import latest Facebook SDK and Bolts using CocoaPods. and remove all the dependencies of bolts you have added manually. For Example in my case. I have just commented this line and every thing works just fine.
NSString *const BFTaskMultipleExceptionsException = @"BFMultipleExceptionsException";
Hope This Works for you as well.
来源:https://stackoverflow.com/questions/27526949/parse-and-facebook-sdk-duplicate-symbol