Welcome to WuJiGu Developer Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
2.5k views
in Technique[技术] by (71.8m points)

ios - Duplicate Symbol error with pods and -all_load other linker flag

I am trying to update the Appodeal SDK and am now getting this error. Removing Other Linker Flags -all_load will allow it to build, but then I experience other issues so I need to keep that flag. I've searched a ton and tried the post_install and -force_install options but haven't found a solution yet.

Is there a way to affect the BidMachine podspec or other way to force it to not bother bringing in it's references? I don't know much about pods (or xcode) but through trial and error found that removing Bidmachine pod allows it build and work as expected. Unfortunately, I need Bidmachine to be included as well. :-)

duplicate symbol '_StackAPIVersionNumber' in:
/Pods/Appodeal/Appodeal.framework/Appodeal(StackAPI_vers.o)
/Pods/BidMachine/BidMachine.framework/BidMachine(StackAPI_vers.o)

duplicate symbol '_StackAPIVersionString' in:

/Pods/Appodeal/Appodeal.framework/Appodeal(StackAPI_vers.o)
/Pods/BidMachine/BidMachine.framework/BidMachine(StackAPI_vers.o)
ld: 2 duplicate symbols for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to WuJiGu Developer Q&A Community for programmer and developer-Open, Learning and Share
...