突然间Xcode在编译时把这个错误扔给了我:
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)
Run Code Online (Sandbox Code Playgroud)
在做了一些研究之后,我可能会理解我正在使用的库与64位版本不兼容.但这很奇怪,因为我在相同的库中工作至少一周而没有一段时间内的编译问题.这两个库只是由一堆类组成的,当我从项目中删除它时,我遇到了同样的问题.由于我自己从未创建过库,我不知道如何找到我正在使用的库与64位兼容(?)我还尝试对目标面板下的架构进行以下更改:
但这些变化都不起作用.请问有人对此有所了解吗?谢谢
我们正在iOS 8 SDK上使用Xcode 6 beta 5 + Swift创建一个应用程序.我们也想部署到iOS 7.那可能吗?当我们将项目的部署目标设置为7.0时,我们得到如下编译时错误:
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_WKPreferences", referenced from:
__TMaCSo13WKPreferences in WebViewController.o
"_OBJC_CLASS_$_WKWebView", referenced from:
__TMaCSo9WKWebView in WebViewController.o
"_OBJC_CLASS_$_WKWebViewConfiguration", referenced from:
__TMaCSo22WKWebViewConfiguration in WebViewController.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Run Code Online (Sandbox Code Playgroud)
我相信这是因为我们正在使用WKWebKit,仅由iOS 8+支持.我们可以使用UIWebKitiOS 7但WKWebKit适用于iOS 8.我们如何定义它?
我们的类定义看起来像这样......
import WebKit
class WebViewController: UIViewController, WKNavigationDelegate {
...
}
Run Code Online (Sandbox Code Playgroud)
它被称为:
let mainStoryboard = UIStoryboard(name: "Main", bundle: …Run Code Online (Sandbox Code Playgroud)