适用于iOS的Phonegap Urbanairship插件中的重复符号

问题描述 投票:1回答:1

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

不幸的是,我无法让它发挥作用。即使是示例项目也无法构建。链接期间问题是重复的符号。请注意:我没有包含任何额外的标题,库等。我只是想构建iOS示例项目。

冲突的符号似乎植根于ASI* (ASIHttpRequest, ASIAuthenticationDialog, etc)图书馆,该图书馆已被纳入UA。令人惊讶的是,UA libs(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个回答
1
投票

当我在“Other Linker Flags”的目标设置中添加标记“-ObjC”时,这个问题出现了。

检查一下,我需要另一个图书馆的旗帜,但如果不是你的情况......

© www.soinside.com 2019 - 2024. All rights reserved.