2500+ 架构 armv7 的重复符号 - Xcode 8 [英] 2500+ Duplicate Symbols for architecture armv7 - Xcode 8

查看:32
本文介绍了2500+ 架构 armv7 的重复符号 - Xcode 8的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚通过升级到 Xcode 8 得到了这个有趣的错误.它在 Xcode 7 中运行良好.但是,在 Xcode 8 中它给了我一个链接器错误:

I just got this interesting error by upgrading to Xcode 8. It worked fine in Xcode 7. However, in Xcode 8 it gives me a linker error:

ld: 2562 duplicate symbols for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)

我使用的框架:

框架搜索路径:

$(PROJECT_DIR)/My\ App

链接器标志:(Obj-C)

$(inherited)

我没有使用豆荚.我刚刚将框架复制到项目目录中.

I'm not using pods. I've just copied over the frameworks to the project directory.

推荐答案

Xcode 建议使用警告标志并将 GCC_NO_COMMON_BLOCKS 设置为 YES.

Xcode recommended to use warning flags and set GCC_NO_COMMON_BLOCKS to YES.

将其设置回NO解决了问题!

Setting it back to NO solved the problem!

这篇关于2500+ 架构 armv7 的重复符号 - Xcode 8的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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