Hands-On Server-Side Web Development with Swift
上QQ阅读APP看书,第一时间看更新

Running your Kitura app from Xcode

Unlike Vapor Toolbox, which takes an additional step to create Xcode project files, the Kitura init command automatically creates Xcode project file for you. If you don't want to launch the app from the Terminal, you can open the Xcode project file and run it from Xcode:

# Step 2b: Open helloWorld.xcodeproject to launch Xcode
$ open ./helloWorld.xcodeproj

The Xcode screen looks as follows:

From the toolbar at the top-left corner of Xcode, select the helloWorld scheme and then My Mac device. After clicking on the Play button (command + R), you should see the message Running helloWorld : helloWorld at the top.