【问题标题】:Duplicate Symbols in Phonegap Urbanairship Plugin for iOSiOS 版 Phonegap Urbanairship 插件中的重复符号
【发布时间】:2012-08-30 12:54:12
【问题描述】:

我正在使用 UA Phonegap 插件 https://github.com/urbanairship/phonegap-ua-push 将 UA 集成到我的 Phonegap/iOS 应用程序中。

不幸的是,我无法让它工作。甚至示例项目也无法构建。问题是链接期间出现重复的符号。请注意:我没有包含任何额外的标头、库等。我只是在尝试构建 iOS 示例项目。

冲突符号似乎植根于 ASI* (ASIHttpRequest, ASIAuthenticationDialog, etc) 库中,该库已集成到 UA 中。令人惊讶的是,两个 UA 库(libUAirship-1.3.2.alibUAirshipPush-1.3.2.a)之间发生了冲突。

链接器输出:ld: duplicate symbol _OBJC_METACLASS_$_UA_ASIAutorotatingViewController in /Users/b/Downloads/urbanairship-phonegap-ua-push-9b7a89b/ios-sample/Airship/libUAirshipPush-1.3.2.a(UA_ASIAuthenticationDialog.o) and /Users/b/Downloads/urbanairship-phonegap-ua-push-9b7a89b/ios-sample/Airship/libUAirship-1.3.2.a(UA_ASIAuthenticationDialog.o) for architecture i386 clang: error: linker command failed with exit code 1 (use -v to see invocation)

怎么会这样?

【问题讨论】:

    标签: phonegap-plugins urbanairship.com


    【解决方案1】:

    当我在“其他链接器标志”的目标设置中添加标志“-ObjC”时出现了这个问题。

    检查一下,我需要另一个库的标志,但如果不是你的情况......

    【讨论】:

    • 我昨天最终删除了这个标志。之后我有大约 40 多个链接器错误(缺少符号)。我一一添加所需的框架后,构建成功。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多