ld:架构armv7的871个重复符号,clang:错误:链接器命令失败,退出代码为1(使用-v查看调用) [英] ld: 871 duplicate symbols for architecture armv7, clang: error: linker command failed with exit code 1 (use -v to see invocation)

查看:255
本文介绍了ld:架构armv7的871个重复符号,clang:错误:链接器命令失败,退出代码为1(使用-v查看调用)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的iPhone应用程序中使用FastPDFKit来显示PDF。当我在模拟器上运行项目时,它工作正常。但是,当我在iPhone上运行该项目时,它给我以下错误。

I am using FastPDFKit in my iPhone app for displaying PDF. When I run the project on simulator, it works fine. However when I run the project on iPhone, it gives me below error.

duplicate symbol _value_map in:
    /Users/alkandari/Desktop/iPhone Apps/MyTest002/MyTest002/FastPdfKit.embeddedframework/FastPdfKit.framework/FastPdfKit(FastPdfKit)
duplicate symbol _writeUnicodeToUTF8Buffer in:
    /Users/alkandari/Desktop/iPhone Apps/MyTest002/MyTest002/FastPdfKit.embeddedframework/FastPdfKit.framework/FastPdfKit(FastPdfKit)
ld: 871 duplicate symbols for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
ld: 871 duplicate symbols for architecture armv7


clang: error: linker command failed with exit code 1 (use -v to see invocation)

知道为什么会这样吗?

当我在Debug and Release部分的Configuration中添加FastPDFFramework时出现错误。

Error comes when I add FastPDFFramework in Configuration in Debug and Release section.

推荐答案

您可以尝试清理FastPdfKit目标并重新编译吗?它应该从头开始生成一个新的框架,然后你应该能够添加到你的项目中,覆盖你正在使用的那个。您可以在FastPdfKit项目根目录中获取新的.embeddedframework。

这些行通过以下链接帮助了我。

These line helped me from the link below.

http:// support。 fastpdfkit.com/discussions/problems/759-duplicate-symbols-for-architecture-armv7

这篇关于ld:架构armv7的871个重复符号,clang:错误:链接器命令失败,退出代码为1(使用-v查看调用)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆