Closed ghost closed 7 years ago
@nstein It means that Builder/Scripts/doBuildCurl.sh
- the script that builds curl library for iOS - failed for some reason. You can add set -x
command to that script to perform tracing, so you will be able to see which part fails.
@vadimeisenbergibm This seems to narrow the problem down. I've added set -x
at the beginning of that script and I'm seeing an error when lipo
is executed
...
+ cp -r /Users/nstein/Swift/Kitura-HelloWorld-iOS/iOSStaticLibraries/Curl/.build/curl-i386/include/curl /Users/nstein/Swift/Kitura-HelloWorld-iOS/iOSStaticLibraries/Curl/include-32/
cp: /Users/nstein/Swift/Kitura-HelloWorld-iOS/iOSStaticLibraries/Curl/.build/curl-i386/include/curl: No such file or directory
+ cp -r /Users/nstein/Swift/Kitura-HelloWorld-iOS/iOSStaticLibraries/Curl/.build/curl-x86_64/include/curl /Users/nstein/Swift/Kitura-HelloWorld-iOS/iOSStaticLibraries/Curl/include-64/
cp: /Users/nstein/Swift/Kitura-HelloWorld-iOS/iOSStaticLibraries/Curl/.build/curl-x86_64/include/curl: No such file or directory
+ lipo /Users/nstein/Swift/Kitura-HelloWorld-iOS/iOSStaticLibraries/Curl/.build/curl-armv7/lib/libcurl.a /Users/nstein/Swift/Kitura-HelloWorld-iOS/iOSStaticLibraries/Curl/.build/curl-armv7s/lib/libcurl.a /Users/nstein/Swift/Kitura-HelloWorld-iOS/iOSStaticLibraries/Curl/.build/curl-arm64/lib/libcurl.a /Users/nstein/Swift/Kitura-HelloWorld-iOS/iOSStaticLibraries/Curl/.build/curl-i386/lib/libcurl.a /Users/nstein/Swift/Kitura-HelloWorld-iOS/iOSStaticLibraries/Curl/.build/curl-x86_64/lib/libcurl.a -create -output /Users/nstein/Swift/Kitura-HelloWorld-iOS/iOSStaticLibraries/Curl/lib/libcurl.a
fatal error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/lipo: can't open input file: /Users/nstein/Swift/Kitura-HelloWorld-iOS/iOSStaticLibraries/Curl/.build/curl-armv7/lib/libcurl.a (No such file or directory)
...
@nstein I see, so the script failed to create /Users/nstein/Swift/Kitura-HelloWorld-iOS/iOSStaticLibraries/Curl/.build/curl-i386/include/curl
directory. Could you please paste the whole output of the script?
@nstein Additional question - did you run xcode-select --install
?
@vadimeisenbergibm I hadn't! I mistakenly run xcode-select -p
which pointed to the path for the tools under Xcode /Applications/Xcode.app/Contents/Developer
. I installed it and everything works smooth now! Thank you so much for your help!
@nstein You are welcome, glad it works for you.
During the build script step
bash Builder/Scripts/buildCurlStaticLibrary.sh curl-7.43.0
I keep getting
Any ideas would be greatly appreciated!
UPDATE: My directory structure is as follows