架构arm64的未定义符号:" _OBJC_CLASS _ $ _ PayTabCardReaderViewController",引用自:ViewController.o中的objc-class-ref [英] Undefined symbols for architecture arm64: "_OBJC_CLASS_$_PayTabCardReaderViewController", referenced from: objc-class-ref in ViewController.o

查看:372
本文介绍了架构arm64的未定义符号:" _OBJC_CLASS _ $ _ PayTabCardReaderViewController",引用自:ViewController.o中的objc-class-ref的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

导入名为pay tabs的库时出现这个奇怪的错误

I am getting this weird error when importing a library called pay tabs

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

在构建设置下

体系结构:

体系结构标准体系结构(armv7,arm64) - $(ARCHS_STANDARD)
基础SDK最新IOS(8.4)

Architecture Standard architectures (armv7, arm64) - $(ARCHS_STANDARD) Base SDK Latest IOS(8.4)

仅构建活动架构
调试是
版本号

Build Active Architecture Only Debug Yes Release No

支持的平台IOS
有效架构armv7 arm64

Supported Platforms IOS Valid Architectures armv7 arm64

推荐答案

啊,Xcode不是很棒吗?

Ahh, isn't Xcode great ?

我建议的是:点击左侧面板中的项目,然后检查项目 目标部分。

What I would recommend is this: Click on your project in the left panel, then check your architecture settings in both the Project and the Targets sections.

如果您的项目中有任何第三方项目,请为他们做同样的事情。

And if you have any third-party projects within your project, do the same for them aswell.

(在构建使用 MapBox iOS SDK 库。令人讨厌的是,你需要在每个Build Settings选项卡中检查这个设置,否则Xcode会抱怨。)

(I had to do this when building an Xcode project which used the MapBox iOS SDK library. Annoyingly, you do need to check this setting in each of the various Build Settings tabs, otherwise Xcode will complain.)

这篇关于架构arm64的未定义符号:" _OBJC_CLASS _ $ _ PayTabCardReaderViewController",引用自:ViewController.o中的objc-class-ref的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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