【问题标题】:three20 linking errorthree20 链接错误
【发布时间】:2010-06-07 07:35:24
【问题描述】:

按照http://three20.info/setup/existing 上的所有说明将three20 库集成到我的项目中。我收到此链接错误:

duplicate symbol _TTCreateNonRetainingArray in /test XYZ Photos App/Three20/Build/Products/Debug-iphonesimulator/libThree20Core.a(TTGlobalCore.o) and /test XYZ Photos App/Three20/Build/Products/Debug-iphonesimulator/libThree20.a(TTGlobalCore.o) 

有人可以帮我弄清楚吗?

提前感谢。

【问题讨论】:

    标签: iphone cocoa-touch linker three20


    【解决方案1】:

    好的,经过数小时的计算,我能够解决这个问题。答案是,如果您的项目位于任何带有空格字符的父文件夹中,那么 Three20 将无法编译。

    【讨论】:

    • 您好,我希望您能帮助我们从three20 框架中集成photoViewer。我将代码集成到我的示例项目中。但是图像没有加载并且scrollView也没有滚动?需要紧急帮助?你能回复sandeep@purpletalk.com吗?非常迫切的需要.. 提前谢谢?
    • 你检查过这个mobile.tutsplus.com/tutorials/iphone/…吗?我已经从中获得帮助,将 ttPhotoViewer 集成到我的应用程序中。我希望这会有所帮助。
    【解决方案2】:

    即使在删除父文件夹名称中的空格(并删除构建缓存等)后,我仍然遇到同样的问题,这对我有用(参见 https://github.com/facebook/three20/issues/issue/210/#issue/210/comment/526603):

    在three20安装说明步骤“2。当我创建“文件夹引用”而不是组引用时,找到“three20/src/Three20/”下的“Three20.xcodeproj”文件,它有效。对于后续的Xcode项目添加后,“文件夹参考”单选显示为灰色,但它们都正确添加并且之后它工作(请注意,我必须重新执行将直接依赖项添加到目标的后续步骤)。

    【讨论】:

      【解决方案3】:

      当我使用示例时,我遇到了这个问题,但我的项目文件夹名称中没有空格。所以我刚刚下载了一个新项目并正确编译。

      【讨论】:

        【解决方案4】:

        所有必要的系统库都已链接,例如 QuartzCoreCoreGraphics
        库集参见 Three20 示例:TTCatalog

        【讨论】:

          猜你喜欢
          • 2011-01-27
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 2023-03-30
          • 2012-12-24
          相关资源
          最近更新 更多