本机链接失败,重复符号:' _OBJC_CLASS _ $ _ ASIHTTPRequest'。 (MT5212)

时间:2014-04-30 12:43:07

标签: ios7 xamarin.ios xamarin asihttprequest xamarin-studio

我刚刚完成Xamarin Studio的更新,我的iOS应用程序现在在我尝试编译时会出现几个链接错误。所有链接错误都与我使用ASIHTTPRequest的libOfflineRequest静态库有关。以下是构建输出中的一个链接错误的示例:

error MT5212: Native linking failed, duplicate symbol: '_OBJC_CLASS_$_ASIHTTPRequest'.
error MT5213: Duplicate symbol in: /Users/brucehill/Projects/Mobileforms/StaticLibs/OfflineRequest/libOfflineRequest.a(ASIHTTPRequest.o) (Location related to previous error)
error MT5213: Duplicate symbol in: /Users/brucehill/Projects/Mobileforms/obj/iPhone/Debug/mtouch-cache/registrar.armv7.o (Location related to previous error)

在我看来,我的图书馆与mtouch-cache发生了冲突,但我没有使用mtouch-cache,所以在链接过程中有什么办法可以排除这个吗?

1 个答案:

答案 0 :(得分:0)

以防其他人遇到此问题,以下是我解决问题的方法。我右键单击了我的项目,导航到iOS Build,然后在“附加mtouch参数”字段中添加了以下选项:

- 登记处:oldstatic

我添加了我的应用程序再次正确编译后。

相关问题