iOS6:xcode 4.5中的重复符号错误 [英] iOS6: duplicate symbol error in xcode 4.5

查看:128
本文介绍了iOS6:xcode 4.5中的重复符号错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在运行我的应用程序时遇到问题。

I am having a problem running my application.

由于符号重复,我收到的修建失败。

I am receiving a build failed due to duplicate symbol.

我是在我的应用程序中包含 magtek idynamo sdk。在我以前的应用程序版本中,我通常将libMTSCRA.a添加到库和MTSCRA.h到我的项目。根据我的研究,人们提出问题的出现是因为我引用了.h以及.a,我已经设法在我的应用程序的ios5版本上工作。令人沮丧的是......我一直在撞击墙壁。

I am including a magtek idynamo sdk to my application. On my previous app version usually I am adding the libMTSCRA.a to the libraries and the MTSCRA.h to my project. Based on my research people suggested that the problem occurs because I am referencing the .h and also the .a which I've managed to work on ios5 version of my app. Its frustrating.. I've been banging my head against the wall on this one.

任何想法?

更新

以下是我的框架和库的屏幕截图。 libMTSCRA.a只列出一次。

UPDATE Here is the screenshot of my framework and libraries. libMTSCRA.a is only listed once.

谢谢。

推荐答案

我也有这个问题,经过很多次,我可以通过删除其他链接器标志来解决它=> - all_load

I had this problem too, and after many time, I can solve it by removing the other linker flag => "-all_load"

由于这个标志,2 MagTek的图书馆(iphoneos和iphonesimulator)同时包含在内。

Due to this flag, the 2 libraries (iphoneos and iphonesimulator) of MagTek were included at the same time.

这篇关于iOS6:xcode 4.5中的重复符号错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆