IBM-Swift / Kitura-HelloWorld-iOS

A Hello World example of running Kitura on iOS
https://developer.ibm.com/swift/2017/03/13/kitura-ios/
Apache License 2.0
55 stars 16 forks source link

'ERROR: Building /Curl failed' macOS Catalina 10.15 Beta #17

Open BodoqueZorrilla opened 5 years ago

BodoqueZorrilla commented 5 years ago

Hi, we are trying to start to experiment with the project. We are have thorboling to install the example project in macOS Catalina 10.15 with Xcode 11. We tried to solved it with this solution: 'https://github.com/curl/curl/issues/3189#issuecomment-434889077.' but it doesn't succeed.

We tried to deleting all the dependence of Xcode too and run the code from Quick Instruction - Setup, but nothing. The first error is: Building /Users/Kitura-HelloWorld-iOS/iOSStaticLibraries/Curl failed.

Checking the ./CurlBuildLogs directory appiers this error: libtool: compile: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -DHAVE_CONFIG_H -I../include/curl -I../include -I../include -I../lib -I../lib -DBUILDING_LIBCURL -DCURL_STATICLIB -DCURL_HIDDEN_SYMBOLS -fvisibility=hidden -arch arm64 -pipe -Os -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk -fembed-bitcode -Qunused-arguments -MT libcurl_la-url.lo -MD -MP -MF .deps/libcurl_la-url.Tpo -c url.c -o libcurl_la-url.o url.c:55:2: error: "We can't compile without socket() support!"

error "We can't compile without socket() support!"

^ 1 error generated. make[1]: [libcurl_la-url.lo] Error 1 make: [install-recursive] Error 1

We are doing thonging wrong?

olbrichj commented 5 years ago

I had the problem with curl directly. It can not find the system headers, since they got removed from /usr/include in Mojave. See the issue in curl:

https://github.com/curl/curl/issues/3189

Interestingly Mojave doesn't provide the package anymore, so I guess you will have to:

  1. get the package from Mojave and try to install that or
  2. create a curl issue and complain there :D

And here I found this issue wondering how people solved it for Catalina