我正在使用UA Phonegap插件https://github.com/urbanairship/phonegap-ua-push将UA集成到我的Phonegap / iOS应用程序中。
不幸的是,我无法让它发挥作用。即使是示例项目也无法构建。链接期间问题是重复的符号。请注意:我没有包含任何其他标题,库等。我只是想构建iOS示例项目。
冲突符号似乎植根于ASI* (ASIHttpRequest, ASIAuthenticationDialog, etc)
库,该库已集成到UA中。令人惊讶的是,两个UA库(libUAirship-1.3.2.a
和libUAirshipPush-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)
这怎么可能发生?
答案 0 :(得分:1)
当我在“其他链接标志”的目标设置中添加标记“-ObjC”时,这个问题出现了。
检查一下,我需要另一个图书馆的旗帜,但如果不是你的情况......