iPhone SDK - 重复符号错误?我该如何解决这个问题?
错误日志
使用配置调试构建项目测试的测试
ld build/Debug-iphonesimulator/test.app/test 正常 i386 cd “/Users/justine/Desktop/test - iPhone/test”setenv MACOSX_DEPLOYMENT_TARGET 10.6 设置环境路径 “/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin” /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 -arch i386 -isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.3.sdk “-L/用户/justine/桌面/测试- iPhone/测试/构建/调试-iphonesimulator” “-F/用户/justine/桌面/测试- iPhone/测试/构建/调试-iphonesimulator" -filelist “/用户/justine/桌面/测试 - iPhone/test/build/test.build/Debug-iphonesimulator/test.build/Objects-normal/i386/test.LinkFileList" -mmacosx-版本-min=10.6 -Xlinker -objc_abi_版本 -Xlinker 2 -framework Foundation -framework UIKit -framework CoreGraphics -框架 CFNetwork -框架 MobileCoreServices -框架 系统配置-lz.1.2.3 -o“/Users/justine/Desktop/test - iPhone/test/build/Debug-iphonesimulator/test.app/test"
ld:重复符号 _OBJC_IVAR_$_ASIAuthenticationDialog.request /用户/justine/桌面/测试 - iPhone/test/build/test.build/Debug-iphonesimulator/test.build/Objects-normal/i386/ASIAuthenticationDialog-F3DE19D52DB79A72.o 和 /Users/justine/Desktop/test - iPhone/test/build/test.build/Debug-iphonesimulator/test.build/Objects-normal/i386/ASIAuthenticationDialog-6A37D8A080A72C67.o collect2: ld 返回 1 退出状态命令 /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 失败,退出代码为 1
Error log
Build test of project test with configuration Debug
Ld build/Debug-iphonesimulator/test.app/test normal i386 cd
"/Users/justine/Desktop/test - iPhone/test" setenv
MACOSX_DEPLOYMENT_TARGET 10.6 setenv PATH
"/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2
-arch i386 -isysroot
/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.3.sdk
"-L/Users/justine/Desktop/test -
iPhone/test/build/Debug-iphonesimulator"
"-F/Users/justine/Desktop/test -
iPhone/test/build/Debug-iphonesimulator" -filelist
"/Users/justine/Desktop/test -
iPhone/test/build/test.build/Debug-iphonesimulator/test.build/Objects-normal/i386/test.LinkFileList"
-mmacosx-version-min=10.6 -Xlinker -objc_abi_version -Xlinker 2
-framework Foundation -framework UIKit -framework CoreGraphics
-framework CFNetwork -framework MobileCoreServices -framework
SystemConfiguration -lz.1.2.3 -o "/Users/justine/Desktop/test -
iPhone/test/build/Debug-iphonesimulator/test.app/test"ld: duplicate symbol _OBJC_IVAR_$_ASIAuthenticationDialog.request in
/Users/justine/Desktop/test -
iPhone/test/build/test.build/Debug-iphonesimulator/test.build/Objects-normal/i386/ASIAuthenticationDialog-F3DE19D52DB79A72.o
and /Users/justine/Desktop/test -
iPhone/test/build/test.build/Debug-iphonesimulator/test.build/Objects-normal/i386/ASIAuthenticationDialog-6A37D8A080A72C67.o
collect2: ld returned 1 exit status Command
/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2
failed with exit code 1
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
看来您有一个重复的文件:
据我所知,它称为 ASIAuthenticationDialog。
检查一下是否有那个。
It seems you have a duplicated file:
For what i see its called ASIAuthenticationDialog.
Check for that one.