[英]error: linker command failed with exit code 1 (use -v to see invocation)
When I use GooglePluse Library file it works on iphone simulator. 当我使用GooglePluse库文件时,它可以在iPhone模拟器上使用。
But when I run it on device it gives the following Error: 但是,当我在设备上运行它时,会出现以下错误:
ld: duplicate symbol _OBJC_CLASS_$_GooglePlusSignIn in /Pratik workspace/Fitness
app/Fitness Ap/Fitness/lib/libGooglePlusUniversal.a(GooglePlusSignIn.o) and /Pratik
workspace/Fitness app/Fitness Ap/Fitness/lib/libGooglePlus.a(GooglePlusSignIn.o) for
architecture armv7 clang: error: linker command failed with exit code 1 (use -v to
see invocation)
you will have 2 files with same name that's why it is giving error like this. 您将有2个名称相同的文件,这就是为什么这样的错误。
go in targets ->Build Phases ->Compile sources and try to remove GooglePlusSignIn file.it will be there i think. 进入目标->构建阶段->编译源并尝试删除GooglePlusSignIn file.it我想在那里。 then run again and let me know whether it is working or not..!!!
然后再次运行,让我知道它是否有效.. !!!
Happy coding...!!!! 编码愉快!!!!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.