English 中文(简体)
如何将拥有相同名称的静态图书馆列入其中?
原标题:How to include static libraries which have same names for OBJECT files within them?

我正在开发一个餐厅,其中我包括2个第三方静态图书馆。 这2个图书馆的物体档案名称相同。 在建设我正在得到的东西

"Apple Mach -O (id) error"

because of the same names of the object files in those 2 libraries. How to solve this problem?

::

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.
问题回答

你们是否建设了一个架构? 如果你正在建立多个结构并使用<代码>-all_load<>/code>链接机旗,这便打破了联系人忽视多个结构所定义的象征的能力。 作为一种测试,只尝试为装甲战斗6号大楼,看看该错误是否消失。

here,以及讨论的一个类似问题:

Finally, you can add the following env var to debug problems with overriding categories: OBJC_PRINT_REPLACED_METHODS=YES. This will log which method names have been overridden by categories, just in case that is the issue.





相关问题
Code sign Error

I have created a new iPhone application.I have two mach machines. I have created the certificate for running application in iPhone in one mac. Can I use the other mac for running the application in ...

ABPersonViewController Usage for displaying contact

Created a View based Project and added a contact to the AddressBook using ABAddressBookRef,ABRecordRef now i wanted to display the added contact ABPersonViewController is the method but how to use in ...

将音频Clips从Peter改为服务器

我不禁要问,那里是否有任何实例表明从Peit向服务器发送音响。 I m不关心电话或SIP风格的解决办法,只是一个简单的袖珍流程......

• 如何将搜查线重新定位?

我正试图把图像放在搜索条左边。 但是,问题始于这里,搜索条线不能重新布署。

热门标签