接入微信SDK64位包报错

本文介绍了解决在使用WeChatSDK时遇到的与SQLite3和Zlib相关的链接错误的方法。主要涉及如何正确配置链接库,包括libsqlite3.dylib, libz.dylib及libc++.dylib,确保应用程序能顺利编译。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

"_sqlite3_prepare_v2", referenced from:

      _execute_prepared_config_stmt in libWeChatSDK.a(MTAWXOStore.o)

      _execute_prepared_events_stmt in libWeChatSDK.a(MTAWXOStore.o)

  "_sqlite3_bind_text", referenced from:

      _execute_prepared_config_stmt in libWeChatSDK.a(MTAWXOStore.o)

      _execute_prepared_events_stmt in libWeChatSDK.a(MTAWXOStore.o)

  "_sqlite3_bind_int64", referenced from:

      _execute_prepared_config_stmt in libWeChatSDK.a(MTAWXOStore.o)

      _execute_prepared_events_stmt in libWeChatSDK.a(MTAWXOStore.o)

  "_sqlite3_step", referenced from:

      _execute_prepared_config_stmt in libWeChatSDK.a(MTAWXOStore.o)

      _execute_prepared_events_stmt in libWeChatSDK.a(MTAWXOStore.o)

  "_sqlite3_finalize", referenced from:

      _execute_prepared_config_stmt in libWeChatSDK.a(MTAWXOStore.o)

      _execute_prepared_events_stmt in libWeChatSDK.a(MTAWXOStore.o)

  "_sqlite3_clear_bindings", referenced from:

      _execute_prepared_config_stmt in libWeChatSDK.a(MTAWXOStore.o)

      _execute_prepared_events_stmt in libWeChatSDK.a(MTAWXOStore.o)


"_inflate", referenced from:

      +[MTAWXOHelper GUnzip:Out:] in libWeChatSDK.a(MTAWXOHelper.o)

  "_deflate", referenced from:

      +[MTAWXOHelper GZip:Out:] in libWeChatSDK.a(MTAWXOHelper.o)

  "_inflateEnd", referenced from:

      +[MTAWXOHelper GUnzip:Out:] in libWeChatSDK.a(MTAWXOHelper.o)

  "_deflateInit2_", referenced from:

      +[MTAWXOHelper GZip:Out:] in libWeChatSDK.a(MTAWXOHelper.o)

  "_inflateInit2_", referenced from:

      +[MTAWXOHelper GUnzip:Out:] in libWeChatSDK.a(MTAWXOHelper.o)


"operator new[](unsigned long)", referenced from:

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

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

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

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

  "operator delete[](void*)", referenced from:

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

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

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

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




在Link Binary With Libraries  中依次加入 libsqlite3.dylib ,libz.dylib, libc++.dylib添加后就可以编译通过。
评论 5
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值