Questions tagged [kitura]

This tag should be used to discuss issues related to the Swift server framework Kitura.

Kitura is a server framework developed by IBM and written in the Swift programming language. This tag should be used when discussing issues and errors regarding the operation of Kitura. The tag should not be used for erroneous code that is running on Kitura if the framework has no relation to the error at hand.

89 questions
6
votes
1 answer

How do I process an image in Swift without using UIImage?

I'm building a Kitura web application, and I need the ability to process user uploaded images. I have an instance of Foundation's Data, and I'd like to do the following without using any Cocoa libraries/frameworks (other than Foundation): Verify if…
Berry
  • 2,143
  • 4
  • 23
  • 46
5
votes
1 answer

Log messages from inside Framework to XCode Console

I have a XCode project which builds an executable (swift package init --type executable && swift package generate-xcodeproj). The executable imports a framework which normally logs messages to the console, but because the framework is imported by…
sluijs
  • 4,146
  • 4
  • 30
  • 36
5
votes
1 answer

Is there any easy way to remote debug a swift (vapor/perfect/kitura) application running on an (develpoment) server?

Using Xcode it’s quite easy to debug a server side swift (vapor/perfect/kitura) application running on the local machine. Unfortunately it’s not always easy to run a server application on the local workstations cause of datebase connections and…
4
votes
1 answer

Swift simple Kitura app localhost not running?

first post! I'm a student learning swift and I'm on a rather big crash course. My professor started teaching us how to do simple get and post requests last time, but I'm still catching up and very clearly haven't grasped some of the basics. This is…
3
votes
1 answer

Rest Server on iOS device using Swift

I need a way to have an iOS application that can accept a message on a device connected via USB, query a bunch of data about the device and return a response with this data. I am brand new to iOS and swift development so I need something that…
3
votes
2 answers

Use Docker + Kitura, but not on a Mac

I have a perfectly fine Swift-Docker-Kitura project on a Mac ... You work on the code using Xcode, and then in terminal you docker build. It builds. You docker run and you can even see the web page locally on localhost. You can then docker push…
Fattie
  • 27,874
  • 70
  • 431
  • 719
3
votes
2 answers

httpAdditionalHeaders not working on linux

I ran into a problem of different behaviour of URLSession / URLSessionConfiguration / URLSessionDataTask on OS X and Linux. Swift: 3.0.2 Kitura: 1.3 I am doing following: let aURL = URL(string: "...")! // Because shared is not implemented …
3
votes
3 answers

Scheduled tasks in Server-Side Swift (Kitura, Vapor, Zewo, etc.)

Is there a possibility of scheduling tasks on a server-side Swift framework, preferably Kitura? I need to schedule tasks; for example, wiping a database everyday at 3AM.
basedgod
  • 2,517
  • 1
  • 17
  • 18
3
votes
2 answers

How to make synchronous url requests with swift 3

I know the question has been asked before and I agree with most answers that claim it is better to follow the way requests are made async with URLSession in Swift 3. I haver the following scenario, where async request cannot be used. With Swift 3…
zirinisp
  • 9,971
  • 5
  • 32
  • 38
3
votes
3 answers

swift build doesn't work

I'm trying to run Kitura project on XCode. I tried to follow instructions on this page ([https://github.com/IBM-Swift/Kitura/wiki/Building-your-Kitura-application-on-XCode]), however I failed with step 3 – run swift build -X. I get this…
Alexander Doloz
  • 4,078
  • 1
  • 20
  • 36
2
votes
1 answer

SwiftVerifyEmittedModuleInterface normal arm64 Issue building release with CryptorRSA | Xcode 14.3

I am trying to build a release xcframework for distribution that uses SwiftJWT via Swift Package Manager: I am able to build fine confirmed for Xcode 14.2.0, 14.0.1, 13.4.1, 13.2.1, and 13.1.0. But when I try building with Xcode 14.3, I get the…
TJ Olsen
  • 323
  • 2
  • 15
2
votes
0 answers

How do I set a logging level in a Kitura project generated using the project template?

I want to set the logging level of my Kitura project. The project is created with the kitura init command, which generates the project using a template. In the template, there is an initializeLogging method that sets the logging level of…
Sweeper
  • 213,210
  • 22
  • 193
  • 313
2
votes
1 answer

How to connect & authorise google auth iOS client with Kitura Server?

I'm done setting up the server by following steps given here. OAuth does work with google but only for web-client On iOS client, I've followed steps to integrate google sign-in by following steps given here Let's say there is a get route…
2
votes
1 answer

Swift Package Manager: "multiple targets named..."

I'm trying to build a server-side Swift web application. The foundational framework for my app will be Kitura from IBM. Additionally, I would also like to make use of the aws-sdk-swift framework for calls in to AWS. However, when I declare both…
Shadowman
  • 11,150
  • 19
  • 100
  • 198
2
votes
1 answer

Embedding Frameworks from SwiftPM into Cocoa Application (XCODE)

I'm using a project called "HAP" (https://github.com/Bouke/HAP) that is built using SwiftPM. The included example "HAP-server", works great from Command Line and I have used the params "swift package generate-xcodeproj" to create an XCODE…
Mavro
  • 571
  • 8
  • 19
1
2 3 4 5 6