PerfectlySoft / Perfect

Server-side Swift. The Perfect core toolset and framework for Swift Developers. (For mobile back-end development, website and API development, and more…)
https://www.perfect.org
Apache License 2.0
13.84k stars 945 forks source link

Cant run swift build #260

Open hulk10425 opened 6 years ago

hulk10425 commented 6 years ago

Hello, I can't run swift build when clone a new project from others, the error message like below

Userde-MacBook-Pro:OrderSystem user$ swift build Updating https://github.com/PerfectlySoft/Perfect-Mustache.git Updating https://github.com/iamjono/JSONConfig.git Updating https://github.com/SwiftORM/StORM.git Updating https://github.com/PerfectlySoft/Perfect-CURL.git Updating https://github.com/PerfectlySoft/Perfect-HTTPServer.git Updating https://github.com/PerfectlySoft/Perfect-SMTP.git Updating https://github.com/iamjono/SwiftString.git Updating https://github.com/PerfectlySoft/Perfect-MySQL.git Updating https://github.com/PerfectlySoft/Perfect-RequestLogger.git Updating https://github.com/PerfectlySoft/Perfect-libcurl.git Updating https://github.com/iamjono/SwiftMoment.git Updating https://github.com/PerfectlySoft/Perfect-Crypto.git Updating https://github.com/PerfectlySoft/Perfect-CRUD.git Updating https://github.com/PerfectlySoft/Perfect-mysqlclient.git Updating https://github.com/PerfectlySoft/Perfect-HTTP.git Updating https://github.com/PerfectlySoft/PerfectLib.git Updating https://github.com/PerfectlySoft/Perfect-Logger.git Updating https://github.com/PerfectlySoft/Perfect-COpenSSL.git Updating https://github.com/PerfectlySoft/Perfect-Net.git Updating https://github.com/iamjono/SwiftRandom.git Updating https://github.com/PerfectlySoft/Perfect-Thread.git error: dependency graph is unresolvable; found these conflicting requirements:

Dependencies: https://github.com/PerfectlySoft/Perfect-HTTPServer.git @ 2.0.0..<3.0.0 https://github.com/iamjono/JSONConfig.git @ 0.0.0..<1.0.0 https://github.com/PerfectlySoft/Perfect-Mustache.git @ 2.0.0..<3.0.0 https://github.com/SwiftORM/StORM.git @ 1.0.0..<2.0.0 https://github.com/PerfectlySoft/Perfect-CURL.git @ 2.0.0..<3.0.0 https://github.com/iamjono/SwiftString.git @ 1.0.0..<2.0.0 https://github.com/PerfectlySoft/Perfect-RequestLogger.git @ 1.0.0..<2.0.0 https://github.com/PerfectlySoft/Perfect-MySQL.git @ 3.0.0..<4.0.0 https://github.com/PerfectlySoft/Perfect-SMTP.git @ 1.0.0..<2.0.0


And this is my package.swift file

import PackageDescription let package = Package( name: "Perfect-App-Template", targets: [], dependencies: [ .Package(url: "https://github.com/PerfectlySoft/Perfect-HTTPServer.git", majorVersion: 2), .Package(url: "https://github.com/iamjono/JSONConfig.git", majorVersion: 0), .Package(url: "https://github.com/PerfectlySoft/Perfect-Mustache.git", majorVersion: 2), .Package(url: "https://github.com/SwiftORM/StORM.git", majorVersion: 1), .Package(url: "https://github.com/PerfectlySoft/Perfect-CURL.git", majorVersion: 2), .Package(url: "https://github.com/iamjono/SwiftString.git", majorVersion: 1), .Package(url: "https://github.com/PerfectlySoft/Perfect-RequestLogger.git", majorVersion: 1), .Package(url:"https://github.com/PerfectlySoft/Perfect-MySQL.git", majorVersion: 3), .Package(url: "https://github.com/PerfectlySoft/Perfect-SMTP.git", majorVersion: 1),

]

)

Can somebody help me, thank you so much!

PoojaDevelopler commented 6 years ago

i have got same problem then i changed it https://firebasestorage.googleapis.com/v0/b/raimagetest.appspot.com/o/Screen%20Shot%202018-06-30%20at%205.26.26%20PM.png?alt=media&token=1042e6b6-4b4c-4e0f-8f26-f61d95e411f1 and try to swift build and generate xcodeproj it will work

RockfordWei commented 6 years ago

@hulk10425 @Aishly all dependencies are too old, Please check the updated version: https://github.com/PerfectlySoft/PerfectAppTemplate/pull/3/files