简体   繁体   English

错误:链接器命令失败,退出代码为1(使用-v查看调用)

[英]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.

相关问题 链接器命令失败,退出代码为1(使用-v查看调用 - linker command failed with exit code 1 (use -v to see invocation Xcode链接器命令失败,退出代码为1(使用-v查看调用) - Xcode linker command failed with exit code 1 (use -v to see invocation) XCode 7:链接器命令失败,退出代码为1(使用-v查看调用) - XCode 7 : linker command failed with exit code 1 (use -v to see invocation) 编译器错误为clang:错误:链接器命令失败,退出代码为1(使用-v查看调用),且应用程序已完成 - Compiler error as clang: error: linker command failed with exit code 1 (use -v to see invocation) with completed app clang:错误:链接器命令失败,退出代码为1(使用-v查看调用) - clang: error: linker command failed with exit code 1 (use -v to see invocation) Xcode 5 - clang:错误:链接器命令失败,退出代码为1(使用-v查看调用) - Xcode 5 - clang: error: linker command failed with exit code 1 (use -v to see invocation) ld:未找到框架 GoogleMapsCore clang:错误:链接器命令失败,退出代码为 1(使用 -v 查看调用) - ld: framework not found GoogleMapsCore clang: error: linker command failed with exit code 1 (use -v to see invocation) 如何解决链接器命令错误,退出代码为1(使用-v查看调用)失败 - how to solve the error of linker command failed with exit code 1 (use -v to see invocation) nd收到此错误“链接器命令失败,退出代码为1(使用-v查看调用)” - nd getting this error “linker command failed with exit code 1 (use -v to see invocation)” 如何解决错误:链接器命令失败,退出代码1(在-Xcode5中使用-v查看调用) - How to resolve error: linker command failed with exit code 1 (use -v to see invocation) in Xcode5
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM