【发布时间】:2011-10-19 00:43:34
【问题描述】:
我正在开发一个 iPad 应用程序,其中包含 2 个第三方静态库。这两个库中的目标文件名称相同。在构建应用程序时,我得到了
“Apple Mach -O (id) 错误”
因为这两个库中的目标文件名称相同。 如何解决这个问题?
错误看起来像:
ld: duplicate symbol _T_strcpy in /Users/indiait-supportservices/Desktop/untitled folder/Universal/lib/simulator/libSecurIDLib.a(mem.o) and /Users/indiait-supportservices/Library/Developer/Xcode/DerivedData/ReceiverForiOS-aqpprpcivvjjadbsutqqmtjsoczk/Build/Intermediates/ReceiverForiOS.build/Debug-iphonesimulator/myApp iPad.build/Objects-normal/i386/pdcrypte2.o for architecture i386
collect2: ld returned 1 exit status
Command /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/llvm-g++-4.2
failed with exit code 1.
【问题讨论】:
-
在我看来这是一个重复的符号,而不是一个重复的对象文件名。
-
@Daniel:是的 Daniel,它是一个重复的符号。你能告诉我如何解决这个问题吗?
-
等待解决方案。请问有人有什么建议吗??
-
你确定你没有包含两次库吗?
标签: iphone objective-c ipad xcode4