我正在使用可可豆荚将多个第三方文件集成到我的项目中.
我必须将pod下面整合到我的项目中
xcodeproj 'MyApp' workspace 'MyApp' source 'https://github.com/CocoaPods/Specs.git' target :"MyApp",:exclusive => true do platform :ios,'7.0' pod 'AFNetworking','2.0.2' pod 'TwilioSDK','~>1.2.2' pod 'SocketRocket','0.3.1-beta2' pod 'AppRTC' end
当我运行pod安装.我得到如下所示的重复
当我建立我的应用程序,我得到错误
ld: warning: directory not found for option '-L/Users/anand/Documents/ Project/myApp_Backups/myApp_June/myApp_WEBRTC/Pods/build/Debug- iphoneos' duplicate symbol _MD5_Update in: /Users/anand/Documents/Project/myApp_Backups/myApp_June/ myApp_WEBRTC/Pods/AppRTC/Lib/libWebRTC.a(nss_static.md5.o) /Users/anand/Documents/Project/myApp_Backups/myApp_June/ myApp_WEBRTC/Pods/TwilioSDK/Libraries/libcrypto.a(md5_dgst.o) duplicate symbol _SHA1_Update in: duplicate symbol _OBJC_IVAR_$_SRIOConsumer._readToCurrentFrame in: /Users/anand/Library/Developer/Xcode/DerivedData/myApp- gxdbyoohznnpigavdqmaeilzlavd/Build/Products/Debug-iphoneos/libPods- myApp-SocketRocket.a(SRWebSocket.o) /Users/anand/Documents/Project/myApp_Backups/myApp_June/ myApp_WEBRTC/Pods/AppRTC/Lib/libWebRTC.a(socketrocket.SRWebSocket.o) ld: 71 duplicate symbols for architecture armv7 clang: error: linker command Failed with exit code 1 (use -v to see invocation)
我以为做下面的解决方案:
1)删除SRWebSocket.h文件 – 但它可能会收到错误,因为它在Pods.
2)从pod文件中删除pod’SocketRocket’,’0.3.1-beta2’并运行pod install – 但是在将AppRTC安装到我的项目之前,我在我的项目中使用了SRWebSocket.h和SRWebSocket.m.
请建议我如何解决这个问题..
提前致谢..!