ibm-swift / kitura-helloworld-ios Goto Github PK
View Code? Open in Web Editor NEWA Hello World example of running Kitura on iOS
Home Page: https://developer.ibm.com/swift/2017/03/13/kitura-ios/
License: Apache License 2.0
A Hello World example of running Kitura on iOS
Home Page: https://developer.ibm.com/swift/2017/03/13/kitura-ios/
License: Apache License 2.0
macOS 10.12.4
Xcode 8.3.1
After running quick instructions.
Swift Compiler Error
KituraTableViewController.swift - Module file's minimum deployment target is ios10.3.
After changing the deployment target to 10.3.
Swift Compiler Error
<unknown>:0: error: missing required modules: 'CCurl', 'CHTTPParser'
I have tried recompiling Curl with Min version 10.3.
I have tried looking at header paths.
Is this something upstream in KituraNet?
Thanks!
After running the code from Quick Instruction - Setup, it takes a while, prints a lot of things and finishes with a curl error. This is the end of the execution:
+ rm -rf /Users/maisa/Documents/Lab_de_bagunca/Hacktoberfest/Kitura-HelloWorld-iOS/iOSStaticLibraries/Curl
+ echo 'ERROR: Building /Users/maisa/Documents/Lab_de_bagunca/Hacktoberfest/Kitura-HelloWorld-iOS/iOSStaticLibraries/Curl failed.'
ERROR: Building /Users/maisa/Documents/Lab_de_bagunca/Hacktoberfest/Kitura-HelloWorld-iOS/iOSStaticLibraries/Curl failed.
+ echo 'See the logs in ./CurlBuildLogs directory'
See the logs in ./CurlBuildLogs directory
+ echo 'Try curl version 7.43.0 from https://curl.haxx.se/download/ - it worked for us.'
Try curl version 7.43.0 from https://curl.haxx.se/download/ - it worked for us.
+ echo 'Also, remember to run xcode-select --install each time you update your Xcode'
Also, remember to run xcode-select --install each time you update your Xcode
+ exit 1
I'm using MacOS Mojave v10.14. When executing curl --version this is the message:
curl 7.54.0 (x86_64-apple-darwin18.0) libcurl/7.54.0 LibreSSL/2.6.4 zlib/1.2.11 nghttp2/1.24.1
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp smb smbs smtp smtps telnet tftp
Features: AsynchDNS IPv6 Largefile GSS-API Kerberos SPNEGO NTLM NTLM_WB SSL libz HTTP2 UnixSockets HTTPS-proxy
I'm not able to execute make openXcode or make openXcode32:
make NUMBER_OF_BITS="64" prepareXcodeAll
Please download a curl source, uncompress it and run Builder/Scripts/buildCurlStaticLibrary.sh <the uncompressed curl directory>
You can download curl source from https://curl.haxx.se/download/
exit 1
make[1]: *** [iOSStaticLibraries/Curl] Error 1
make: *** [prepareXcode] Error 2
Am I doing something wrong?
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: 'curl/curl#3189 (comment).' 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.
We are doing thonging wrong?
The prereqs specify UtilityScripts path but what Iโm seeing is Builder/Scripts instead. Also in the buildCurlStaticLibrary.sh file there is the same dir path of UtilityScripts. Is there a step that I'm missing?
During the build script step
bash Builder/Scripts/buildCurlStaticLibrary.sh curl-7.43.0
I keep getting
cp: /Users/nstein/Swift/Kitura-HelloWorld-iOS/iOSStaticLibraries/Curl/.build/curl-i386/include/curl: No such file or directory
cp: /Users/nstein/Swift/Kitura-HelloWorld-iOS/iOSStaticLibraries/Curl/.build/curl-x86_64/include/curl: No such file or directory
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)
ERROR: Building /Users/nstein/Swift/Kitura-HelloWorld-iOS/iOSStaticLibraries/Curl failed.
Try curl version 7.43.0 from https://curl.haxx.se/download/ - it worked for us.
Any ideas would be greatly appreciated!
UPDATE: My directory structure is as follows
drwxr-xr-x@ 13 nstein staff 442 Mar 15 10:16 ..
-rw-r--r--@ 1 nstein staff 6148 Mar 15 14:08 .DS_Store
drwxr-xr-x 14 nstein staff 476 Mar 15 10:28 .git
-rw-r--r-- 1 nstein staff 443 Mar 15 10:16 .gitignore
-rw-r--r-- 1 nstein staff 217 Mar 15 10:16 .gitmodules
drwxr-xr-x 9 nstein staff 306 Mar 15 12:02 Builder
drwxr-xr-x 6 nstein staff 204 Mar 15 10:16 ClientSide
drwxr-xr-x 3 nstein staff 102 Mar 15 10:16 Documentation
-rw-r--r-- 1 nstein staff 10174 Mar 15 10:16 LICENSE.txt
-rw-r--r-- 1 nstein staff 762 Mar 15 10:16 Makefile
-rw-r--r-- 1 nstein staff 2966 Mar 15 10:16 README.md
drwxr-xr-x 15 nstein staff 510 Mar 15 13:15 ServerSide
drwxr-xr-x 39 nstein staff 1326 Mar 15 10:58 curl-7.43.0
The instructions seem redundant. I followed them both (one under "building under Xcode and one under Quick Instructions").
Let's say one follows Quick Instructions. All versions are matching.
The problem: 3 curl 'issues' - two are "curl_rule_01 declared as an array with negative size" and one says could not build Objective-C module CCurl.
Since I am new to the project, I am not sure where to begin investigation or ways to resolve.
I will add, "targeting the simulator deploys as designed - it works". The problem appears when targeting a physical phone. I don't have trouble targeting this test phone with other apps - and its odd that the link fails. I also tried downloading CCurl and pushing the binary library into the right system folder (using suggested build instructions) - that didn't help here.
First of all, thank you for setting this up to work embedded in iOS.
I had been experimenting with several very basic embedded iOS HTTP servers, but none that could also run server-side or that were as robust as Kitura.
Are there any plans to have Kitura run on tvOS? It seems like a logical progression, especially since an AppleTV seems to be well-suited to be a serve devices in a home.
When I run the command above I get the following message: *** [setDeploymentVersionOfSharedServerClient] Error 1
ruby Builder/Scripts/set_deployment_version.rb SharedServerClient/SharedServerClient.xcodeproj 11.2
ruby: No such file or directory -- Builder/Scripts/set_deployment_version.rb (LoadError)***
Any idea why please?
I tried to modify the existing server and made sure that it uses the static CURL lib . But I always get tis error . I tried all possible combination , but didnt help.
on
Xcode 8.3.3 (8E3004b)
MacOS Sierra 10.12.4
DEPLOYMENT_TARGET 10.3
iphone simulator : 6s
I follow quick instructions, but when I build ClientSide, I get Swift compile error:
:0: error: missing required module 'CHTTPParser'
also follow: de48561
but it is the same.
Thanks!
Hi,
I have a production app, and I would like to do some POC regarding client-side server.
As the sample makefile and scripts are hardcoded for the sample xcodeproj,
is there any way the integration to be simpler?
Thank you
The Prerequisites seems useless. I tried following it to configure but nothing worked properly here.
Also, the link to Enable Server-Side Swift with Kitura doesn't work =(
After failing the configuration described in Prerequisites, I delete the project and tried only the Quick Instruction - Setup (run in a terminal) it has the same results as Prerequisites, but it's much easier to execute (just copy all the code and paste on terminal).
Ps: I had the same problem and could not execute the project hahaha
My suggestion is to delete Prerequisites and put Quick Instructions on the top of the page.
Ps: if you agree with my suggestion about removing the Prerequisites can I update it with a PR? I'm working on my Hacktoberfest progress. If there is any other suggestion that I can work on, just let me know.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.