最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
Swift中missing required architecture i386 in file错误的解决
时间:2022-06-25 23:33:05 编辑:袖梨 来源:一聚教程网
1,问题描述
最近使用腾讯官方 SDK 进行开发,下载的是最新版本。所以东西都配置好后,编译报错。(只有在 iPhone5 及 iPhone4s 模拟器上编译运行程序会有这个问题。)
报错信息如下:
ld: warning: ignoring file /Users/yuhang/Documents/Code/hangge_1070/TencentOpenAPI.framework/TencentOpenAPI, missing required architecture i386 in file /Users/yuhang/Documents/Code/hangge_1070/TencentOpenAPI.framework/TencentOpenAPI (3 slices)
Undefined symbols for architecture i386:
"_OBJC_CLASS_$_TencentOAuth", referenced from:
objc-class-ref in AppDelegate.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)

2,原因分析
新版本的腾讯 SDK 的 CPU 框架不支持 i386 架构,而 iPhone5 及以下设备的模拟器是 i386 架构,所以会 missing required architecture i386 in file。
3,解决办法
改成使用 iPhone5s 及以上版本的模拟器编译运行,或者直接使用 iPhone 真机。

相关文章
- tplink路由器wr886n参数是多少(tplink路由器wr886n参数详解) 09-07
- 将军留步0.1折版本—0.1折在哪下载 09-07
- 将军留步最厉害三个阵容—最强阵容推荐 09-07
- 小小仙王清凉版本免费下载 无遮挡版本下载 09-07
- 天阶岛最厉害三个角色 英雄排行榜一览 09-07
- 大店小二0.1折下载—折扣平台在哪下载 09-07