diff --git a/Package.swift b/Package.swift new file mode 100644 index 0000000..5061087 --- /dev/null +++ b/Package.swift @@ -0,0 +1,16 @@ +// swift-tools-version:5.0 + +import PackageDescription + +let package = Package( + name: "R.swift.Library", + platforms: [ + .iOS(.v8) + ], + products: [ + .library(name: "Rswift", targets: ["Rswift"]) + ], + targets: [ + .target(name: "Rswift", path: "Library") + ] +) diff --git a/Readme.md b/Readme.md index 45bde32..e79efb8 100644 --- a/Readme.md +++ b/Readme.md @@ -20,6 +20,15 @@ _**Be aware:** If you just want to use R.swift follow the [installation instruct 1. Add `github "mac-cain13/R.swift.Library"` to your [Cartfile](https://github.com/Carthage/Carthage/blob/master/Documentation/Artifacts.md#cartfile) 2. Run `carthage` +### Swift Package Manager (Requires Xcode 11) + +1. Open your Xcode project. +2. Select `File > Swift Packages > Add Package Dependency...` +3. Paste `https://github.com/mac-cain13/R.swift.Library` to the text field and click on the `Next` button. +4. Choose appropriate version and click on the `Next` button. (If you need latest one, just click on the `Next` button.) +5. Confirm that `Rswift` in the Package Product column is checked and your app's name is selected in the Add to Target column. +6. Click on the `Next` button. + ### Manually _As an embedded framework using git submodules._