gustavogenovese/curl-android-ios

Build iOS Error Catalina

Opened this issue · 3 comments

/Applications/Xcode.app/Contents/Developer/usr/bin/make all-am
CC libcurl_la-file.lo
CC libcurl_la-timeval.lo
CC libcurl_la-base64.lo
CC libcurl_la-hostip.lo
CC libcurl_la-progress.lo
CC libcurl_la-formdata.lo
CC libcurl_la-cookie.lo
CC libcurl_la-http.lo
CC libcurl_la-sendf.lo
CC libcurl_la-ftp.lo
CC libcurl_la-url.lo
CC libcurl_la-dict.lo
CC libcurl_la-if2ip.lo
CC libcurl_la-speedcheck.lo
CC libcurl_la-ldap.lo
url.c:55:2: error: "We can't compile without socket() support!"
#error "We can't compile without socket() support!"
^
1 error generated.
make[2]: *** [libcurl_la-url.lo] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [all] Error 2
make: *** [all-recursive] Error 1
Error running the make program

Yup. I'm having the same issue, also on Catalina.

same issue,also on Big Sur

I resolve this prblem by commenting out this line.
CC="$XCODE/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang"