(v3.0) curl HTTPS request crash on iOS7 64-bit

What’s the issue
When I send http request to a HTTPS url. application will crash.
I found that only happen on iOS 7 64-bit.

console log is follow: (LFFW is my application name)
Detected an attempt to call a symbol in system libraries that is not present on the iPhone:
stat$INODE64 called from function RAND_load_file in image LFFW.

What’s the engine version
3.0 stable

How to reproduce it
Send http request to a HTTPS url on iOS 7 64-bit.
For example: I try to get a user picture from facebook.
[[https://graph.facebook.com/me/picture?type=large&height=200&width=200]]

bug issue:
[[http://www.cocos2d-x.org/issues/5028]]

Will it happen that run test-cpp on iOS7 64bit?

@Ryeeeeee
I have try in cocos2d-test CURL (64-bit) test case, It also crash if send a HTTPS URL request. Please check this.

Replace the prebuild libcurl with this one from: http://seiryu.home.comcast.net/~seiryu/libcurl-ios.html will solve the problem. It may report ssl related issue when compile. Add Security.Framework should solve the problem. It works OK for me now.

@javaidea It compiles and works for me on iPhone 5S (arm64) but still gives “Protocol https not supported or disabled in libcurl”. It works fine with https on non 64-bit devices. What should I do?

Thanks!

@javaidea Any updates?

I think by default it will link libcurl_arm64.a for 64bit. After you change the lib, you don’t need libcurl_arm64.a anymore. You need to change the build setting to link libcurl.a too for 64 bit.

@javaidea Thank you for your reply, it seems that libcurl.a is already linked for all architectures as I can’t even find libcurl_arm64.a in my project files (check screenshot below showing the files when I search for “libcurl” in my project)

Any other advices?
Thank you

I’m using 3.1. See the picture, there is a libcurl_arm64.a in the folder. And you should check the build setting of “cocos2dx iOS” and change the -lcurl_arm64 to -lcurl. That’s all I did. Hope this will work for you.

Thank you @javaidea !
It now works perfectly :smile:

Hi,

I am stucking with libcurl issue,the link here mentioned for updated libcurl is not working.
Please suggest where i can find that updated libcurl for Cocos2dxv3.0