Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

WeChat SDK on arm64

Tags:

ios

iphone

wechat

I was trying to use libWeChatSDK.a library in my iPhone application and on iPhone 5 it works as it should. However I encountered problems with the newest iPhone, it seems that this library does not support arm64 architecture.

The error I've got is the following:

ld: warning: ignoring file .../libWeChatSDK.a, missing required architecture arm64 in file .../libWeChatSDK.a (3 slices)
Undefined symbols for architecture arm64:
  "_OBJC_CLASS_$_SendMessageToWXReq", referenced from:
      objc-class-ref in WeChatCustomActivity.o
  "_OBJC_CLASS_$_WXApi", referenced from:
      objc-class-ref in WeChatCustomActivity.o
      objc-class-ref in AppDelegate.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Do you know if there are some kind of workarounds for this problem?

like image 318
Wojtek Avatar asked May 08 '14 10:05

Wojtek


2 Answers

As far as I know, it's available now.

But If you're not good at Chinese, just download it by tap here.

like image 127
demon Avatar answered Oct 22 '22 10:10

demon


the link to the arm64 library does work (confirmed) however the code will not compile unless you also add libc++.dylib library to your project. This is not mentioned in any other links!

I spent hours searching for this. Enjoy.

like image 20
Ibdakine Avatar answered Oct 22 '22 11:10

Ibdakine