Xcode 8.1体系结构x86_64错误的未定义符号 [英] Xcode 8.1 Undefined symbols for architecture x86_64 Error

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

问题描述

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

当我想使用模拟器时出现此错误.当我在iPhone上构建它时没有问题.当我使用模拟器时只有一个问题.我试图从构建"设置更改体系结构",错误文本更改为i386,但问题是相同的.

I take that error when I want to use simulator. There is no problem when I build it on iPhone. There is only problem when I use simulator. I have tried to change Architectures from Build settings, error text changes as i386 but problem is same.

我使用那个SDK; TZBeacon

I use that sdk; TZBeacon

sdk是否有问题?你能帮我解决这个问题吗?

Is there any problem with sdk? Could you help me to solve that problem?

推荐答案

您的库不支持模拟器.运行以下命令行以查看其支持的体系结构:

Your library does not support simulator. Run this command line to see which architecture that it supports:

lipo -info libTZBeaconSDK.a

结果是:胖文件:libTZBeaconSDK.a中的体系结构是:armv7 arm64

因此,您必须在设备中进行测试,而不是在模拟器中进行测试!

So, you have to test in a device, not in simulator!

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

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