IBM / FoodTrackerBackend

This tutorial teaches how to create a Kitura Swift backend for the FoodTracker iOS app tutorial from Apple. This project contains a version of the tutorial code that has been updated to use Codable rather than NSCoder.
108 stars 38 forks source link

generate-xcodeproj failed #23

Closed t3ta closed 6 years ago

t3ta commented 6 years ago

Hi. I tried connecting FoodServer to PostgreSQL as per the README. I received error when executing following command.

$ swift package generate-xcodeproj
error: product dependency 'Configuration' not found

I added the line .package(url: "https://github.com/IBM-Swift/Configuration.git", .upToNextMajor(from: "3.0.0")), below the line .package(url: "https://github.com/IBM-Swift/Swift-Kuery-PostgreSQL.git", .upToNextMinor(from: "1.1.0")), and .xcodeproj was generated. Did I skip the procedure somewhere?

seabaylea commented 6 years ago

No - you did everything right. The instructions are incorrectly asking you to add "Configuration" as as dependency of the "Application" target in the Package.swift file when you don't need to.

seabaylea commented 6 years ago

FYI, the following PR should update the README.md to fix it: https://github.com/IBM/FoodTrackerBackend/pull/22

t3ta commented 6 years ago

Oh, I should have watched the PR... Thank you for your immediate reply!