将card.io sdk添加到项目时链接器命令失败

时间:2013-01-28 20:28:49

标签: ios card.io

当我将card.io sdk添加到我的项目中时,我在尝试编译时得到以下内容:

    duplicate symbol _CGSizeSwap in:
    /ProjectX/CardIO/libCardIO.a(CardIOShutterView.o)
    /ProjectX/CardIO/libCardIO.a(CardIODataEntryViewController.o)
duplicate symbol _CGSizeSwap in:
    /ProjectX/CardIO/libCardIO.a(CardIOShutterView.o)
    /ProjectX/CardIO/libCardIO.a(CardIOResource.o)
duplicate symbol _CGSizeSwap in:
    /ProjectX/CardIO/libCardIO.a(CardIOShutterView.o)
    /ProjectX/CardIO/libCardIO.a(CardIOModalActivityIndicator.o)
ld: 3 duplicate symbols for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)

帮助赞赏[使用xcode 4.6& card.io版本3.0.4]

1 个答案:

答案 0 :(得分:2)

来自card.io的Josh在这里。谢谢你报告这个!

这是card.io iOS SDK 3.0.4版中的一个错误。我们刚刚发布3.0.5;请在https://www.card.io/integrate/ios给它一个旋转,并确认它为您解决了问题。