ios - Swift Xcode 错误 : Apple Mach-O Linker Error

标签 ios xcode swift linker

Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_PFLogInViewController", referenced from:
  __TMaCSo21PFLogInViewController in ViewController.o
"_OBJC_CLASS_$_PFSignUpViewController", referenced from:
  __TMaCSo22PFSignUpViewController in ViewController.o
"_OBJC_CLASS_$_PFUser", referenced from:
  __TMaCSo6PFUser in LoginViewController.o
  __TMaCSo6PFUser in ViewController.o
  __TMaCSo6PFUser in signUpViewController.o
"_OBJC_CLASS_$_Parse", referenced from:
  __TMaCSo5Parse in AppDelegate.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

我遇到 Apple Mach-O 链接器错误 1)“_OBJC_CLASS_$_PFLogInViewController”,引用自: 2)“_OBJC_CLASS_$_PFSignUpViewController”,引用自: 3)“_OBJC_CLASS_$_PFUser”,引用自: 4)“_OBJC_CLASS_$_Parse”,引用自: 5) 链接器命令失败,退出代码为 1(使用 -v 查看调用)

我可以知道什么是 Apple Mach-O 链接器错误以及解决此错误的方法吗?

最佳答案

清理构建您的项目。重建。

关于ios - Swift Xcode 错误 : Apple Mach-O Linker Error,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30894692/

相关文章:

ios - 无法在 swift 的子文件夹中找到图像?

ios - 如何以编程方式将 View 固定到 Swift 中的选项卡栏?

swift - Xcode 8 beta 6 : main. swift 无法编译

swift - 在容器内移动页面控件

ios - Xcode 9 Tableview 调整大小错误

Swift 回调内联函数的用法

ios - 如何使用 XMPPFramework 发送和接收消息

ios - 如何获得正确的电池电量和电池状态-ios?

ios - 使用特征更改约束乘数

ios - 如果 app delegate 想快速使用主 Storyboard文件,它必须实现 window 属性