简体   繁体   English

如何解决错误:链接器命令失败,退出代码1(在-Xcode5中使用-v查看调用)

[英]How to resolve error: linker command failed with exit code 1 (use -v to see invocation) in Xcode5

duplicate symbol _flag in:
/Users/anuragarwt/Library/Developer/Xcode/DerivedData/FacesFactory1919-azxixfmcaofhiubsbjsjuvwyehhy/Build/Intermediates/FacesFactory1919.build/Debug-iphonesimulator/FacesFactory1919.build/Objects-normal/i386/LoginFacesFactoryViewController.o
     /Users/anuragarwt/Library/Developer/Xcode/DerivedData/FacesFactory1919-azxixfmcaofhiubsbjsjuvwyehhy/Build/Intermediates/FacesFactory1919.build/Debug-iphonesimulator/FacesFactory1919.build/Objects-normal/i386/EditProfileFacesFactoryViewController.o ld: 1 duplicate symbol for architecture i386 clang: error: linker
command failed with exit code 1 (use -v to see invocation)

Firstly, when we import .m file instead of .h file then the error of duplicate symbol occurs. 首先,当我们导入.m文件而不是.h文件时,会出现重复符号的错误。 Secondly, i just changed the variable int flag to int i , v for different classes cleaned the project and run it worked. 其次,我刚刚将变量int标志更改为int i,v为不同的类清理了项目并运行它。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 xCode中的“链接器命令失败,退出代码为1(使用-v查看调用)” - “Linker command failed with exit code 1 (use -v to see invocation)” in xCode XCode 7:链接器命令失败,退出代码为1(使用-v查看调用) - XCode 7 : linker command failed with exit code 1 (use -v to see invocation) 链接器命令失败,退出代码为1(使用-v查看调用)xcode - linker command failed with exit code 1 (use -v to see invocation) xcode 错误“链接器命令失败,退出代码为1(使用-v查看调用)” - error “linker command failed with exit code 1 (use -v to see invocation)” 错误:链接器命令失败,退出代码为1(使用-v查看调用)xcode错误? - error: linker command failed with exit code 1 (use -v to see invocation) xcode error? clang:错误:在xcode上进行单元测试时,链接器命令失败,退出代码为1(使用-v查看调用) - clang: error: linker command failed with exit code 1 (use -v to see invocation) when doing unit test on xcode clang:错误:链接器命令失败,退出代码为1(使用-v查看调用)Xcode - clang: error: linker command failed with exit code 1 (use -v to see invocation) Xcode Xcode 4-clang:错误:链接器命令失败,退出代码为1(使用-v查看调用) - Xcode 4 - clang: error: linker command failed with exit code 1 (use -v to see invocation) XCode:错误:链接器命令失败,退出代码为1(使用-v查看调用) - XCode: error: linker command failed with exit code 1 (use -v to see invocation) 铛:错误:链接器命令失败,在xcode 6中退出代码为1(使用-v查看调用) - clang: error: linker command failed with exit code 1 (use -v to see invocation) in xcode 6
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM