From 8051e274d149735ac4e4a30e6558a8e9f2cb7f7a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Mro=CC=81z?= Date: Fri, 13 Oct 2017 15:07:23 +0200 Subject: [PATCH] Additional updates to README SPM installation --- Readme.md | 2 +- Readme_CN.md | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Readme.md b/Readme.md index 23dc052fa..7b1a4fc3a 100644 --- a/Readme.md +++ b/Readme.md @@ -76,7 +76,7 @@ your Swift version. To integrate using Apple's Swift package manager, add the following as a dependency to your `Package.swift`: ```swift -.package(url: "https://github.com/Moya/Moya.git", .exact(Version(10, 0, 0, prereleaseIdentifiers: ["beta", "1"]))) +.package(url: "https://github.com/Moya/Moya.git", .exact("10.0.0-beta.1") ``` and then specify `"Moya"` as a dependency of the Target in which you wish to use Moya. diff --git a/Readme_CN.md b/Readme_CN.md index f4c55d3e5..0f43dd80a 100644 --- a/Readme_CN.md +++ b/Readme_CN.md @@ -62,7 +62,7 @@ new auction app](https://github.com/Artsy/eidolon). 我们认为它已经可以 要集成使用苹果的Swift包管理器,请将以下内容作为依赖项添加到`Package.swift`: ```swift -.Package(url: "https://github.com/Moya/Moya.git", majorVersion: 9) +.package(url: "https://github.com/Moya/Moya.git", .exact("10.0.0-beta.1") ``` 然后指定 `.Target(name: "Moya")` 使用Moya的依赖项. @@ -74,7 +74,7 @@ import PackageDescription let package = Package( name: "MyApp", dependencies: [ - .Package(url: "https://github.com/Moya/Moya.git", majorVersion: 9) + .package(url: "https://github.com/Moya/Moya.git", .exact("10.0.0-beta.1") ] ) ```