微信demo下载下来运行出现 missing required architecture i386 in file “xxxxxx/libWeChatSDK.a”问题

1. 警告:directory not found for option “xxxxxxxx” 文件路径未找到

  • 选择工程, 编译的 (targets)
  • 选择 Build Settings 菜单
  • 查找 Library Search Paths 和 Framework Search Paths, 删掉编译报warning的路径即OK

    详细步骤图文参考

2. missing required architecture i386 in file “xxxxxx/.a” 说明你的这个library文件是为Device (ARM架构)设计的,不支持Simulator (i386架构)

相关知识

参考stackoverfollow

arm架构问题

手机的架构是为arm架构

  • armv6

    iPhone

    iPhone2

    iPhone3G

    第一代和第二代iPod Touch

  • armv7

    iPhone4

    iPhone4S

    armv7s

    iPhone5

    iPhone5C

  • arm64

    iPhone5S

现在app store规定提交的应用必须包含arm64.

我遇到的问题

  1. 微信demo下载下来运行出现 missing required architecture i386 in file “xxxxxx/libWeChatSDK.a”问题,用终端查看了一下这个库文件只支持 armv7,arm64

在终端里查看你的.a库是不是支持i386

解决方法:

  • 找找看有没有支持i386的库文件(下载SDK,要下载的sdk里面的那个libWeChatSDK.a才有支持i386的,里面有两个文件夹
    WeChatSDK_1.5WeChatSDK_1.5_OnlyIphone,选择WeChatSDK_1.5)

    WeChatSDK_1.5

    有i386的libWeChatSDK.a

  • 使用真机测试

2.解决架构问头后在工程里出现了以下问题:

Undefined symbols for architecture x86_64:

"operator delete", referenced from:

+[WeChatApiUtil EncodeBase64:] in libWeChatSDK.a(WeChatApiUtil.o)

解决方法:

  • 果断加上libc++.dylib
时间: 2024-10-19 01:20:01

微信demo下载下来运行出现 missing required architecture i386 in file “xxxxxx/libWeChatSDK.a”问题的相关文章

missing required architecture x86_64 in file 不支持64位

(null): Ignoring file /Users/xxx/Desktop/IOS-项目源码/ios/Ios(114.215.200.104)/ShareSDK/Extend/QQConnectSDK/TencentOpenAPI.framework/TencentOpenAPI, missing required architecture x86_64 in file /Users/xxx/Desktop/IOS-项目源码/ios/Ios(xxxx)/ShareSDK/Extend/QQ

【ZBar】ios错误ignoring file xxx missing required architecture x86_64 in file

解决方法: 1.在Project target里"Architectures"设置为:Standard (armv7,armv7s)或者  Standard (armv7,arm64) 2.设置"Build Active Architecture Only"为"NO" 还有一篇文章说的很牛逼,但是还咩有看,http://blog.csdn.net/lanmanck/article/details/39055503 原文地址:[ZBar]ios错误

missing required architecture x86_64 in file

错误ignoring file xxx missing required architecture x86_64 in file 解决方法: 1.在Project target里“Architectures”设置为:Standard (armv7,armv7s)或者  Standard (armv7,arm64) 2.设置”Build Active Architecture Only”为“NO” 3.在Project target里“Build Settings”的“Valid Architec

xcode工程编译错误:missing required architecture i386 解决方法

可能原因一:项目内保存了.framework文件,在复制分发到不同计算机的时候可能会引发该错误 解决方法一:来到Targets->Build Settings->Framework Search Paths,将其内容删除.让xcode不管项目目录下的.framework文件,而是去包含本机的.当然你也可以手动删除它们. 解决方法二:这个是在stack overflow上看到的: I had this same problem, and the solution turned out to be

iOS 二维码扫描 zBarsdk 不支持64位 missing required architecture x86_64 in file

闲话少讲,实际上ios7以上是支持原生api扫描二维码的,所以我觉得这就是为什么zbarsdk没有继续更新的原因. 百度一下,说修改架构什么的还是有的,但貌似没说到点子上,还是老外的解决方法牛逼. 第一:问题的提出,给了很多解决方法: http://stackoverflow.com/questions/12506671/zbar-sdk-is-not-working-in-ios6/12753812#12753812 stackoverflow的方法还是不错的. 这个也不错:http://ww

ios错误ignoring file xxx missing required architecture x86_64 in file

解决方法: 1.在Project target里"Architectures"设置为:Standard (armv7,armv7s)或者  Standard (armv7,arm64) 2.设置"Build Active Architecture Only"为"NO" 3.在Project target里"Build Settings"的"Valid Architectures"添加"i386&q

missing required architecture

warning: ignoring file ../libBaiduMobStat.a, missing required architecture i386 in file ../libBaiduMobStat.a (3 slices) 可能原因:正如这个错误提示所指出的那样,缺少了i386架构的东西.这很可能是由于项目中包含的静态库是被编译用于真机测试的,大家都知道苹果手机cpu是arm架构,而mac笔记本(当然也包括运行于其上的iphone-simulator)是intel架构.所以当这个

微信SDK导入报错 Undefined symbols for architecture i386:"operator delete[](void*)", referenced from:

异常信息: Undefined symbols for architecture i386:  "operator delete[](void*)", referenced from:      +[WeChatApiUtil EncodeBase64:] in libWeChatSDK.a(WeChatApiUtil.o)      +[WeChatApiUtil NsDataEncodeBase64:] in libWeChatSDK.a(WeChatApiUtil.o)    

微信小程序开发工具&demo下载&开发文档

我们先来看一下微信小程序进去是什么样子,给大家发一波福利Mac破解版:https://yunpan.cn/ckvBbavJRwt25 (提取码:a869)Windows破解版:https://yunpan.cn/ckvMx4hncQSvN (提取码:111a) demo下载:https://yunpan.cn/ckvvQVGgak6tx (提取码:7141) 开发文档:http://notedown.cn/weixin/api/ 开发工具 v0.7百度:mac 版本http://dldir1.q