Xcode 6.1上的体系结构x86_64的未定义符号 [英] Undefined symbols for architecture x86_64 on Xcode 6.1

查看:137
本文介绍了Xcode 6.1上的体系结构x86_64的未定义符号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Xcode突然在编译时把这个错误告诉了我:

All of a sudden Xcode threw me this error at compilation time:

Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_Format", referenced from:
 objc-class-ref in WOExerciseListViewController.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

在做了一些研究之后,我可能会理解一个库我正在使用与64位版本不兼容。但这是非常奇怪的,因为我在相同的库中工作至少一周而没有单一的编译问题。这两个库只是由一堆类组成的,当我从项目中删除它时,我遇到了同样的问题。由于我自己从未创建过库,因此我不知道如何找到我正在使用的库与64位兼容(?)
我还尝试对目标面板下的架构进行以下更改:

After doing some research, I may understand that a library I'm using is not compatible with 64 bit version. But this is very strange since I've been working with the same libraries for at least a week without having a single compilation problem during that time. The two libraries are just composed of a bunch of classes, and when I removed them from my project I got the same issue. Since I have never created libraries myself, I have no idea how I can find wether the ones I'm using are compatible with 64 bit (?) I also tried the following changes for architectures under the target panel :


  • 将$(ARCHS_STANDARD_INCLUDING_64_BIT)添加到架构

  • 仅构建活动架构 - >设置为'NO'

  • 代表'有效架构' - >设置为arm64,armv7和armv7s

  • 删除DerivedData文件夹及其内容,再次清理和构建

  • added $(ARCHS_STANDARD_INCLUDING_64_BIT) to the Architectures
  • build active architecture only -> set to 'NO'
  • for 'valid architectures' -> set to arm64, armv7 and armv7s
  • deleted the DerivedData folder and its contents, cleaned and built again

但这些变化都不起作用。请问有人对此有所了解吗?
谢谢

But none of these changes work. Please, does someone have a clue on this? Thanks

推荐答案

显然,您的班级格式涉及问题。检查你的这个类的声明,特别是如果你在另一个类中做了它你可能忘记了@implementation或类似的东西。

Apparently, your class "Format" is involved in the problem. Check your declaration of this class, especially if you did it inside another class you probably forgot the @implementation or something similar.

这篇关于Xcode 6.1上的体系结构x86_64的未定义符号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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