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.
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?
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)
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.
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