Skip to content
This repository was archived by the owner on Sep 19, 2024. It is now read-only.

Commit 54b1637

Browse files
committed
Add manual installation instructions
1 parent 7883aef commit 54b1637

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

Readme.md

+16-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Regular users probably want to include this library to use [R.swift](https://git
1010

1111
### CocoaPods (recommended)
1212

13-
_**Be aware:** If you just want to use R.swift follow the install instructions for R.swift._
13+
_**Be aware:** If you just want to use R.swift follow the [installation instructions for R.swift](https://github.com/mac-cain13/R.swift#Installation)._
1414

1515
1. Add `pod 'R.swift.Library'` to your [Podfile](http://cocoapods.org/#get_started)
1616
2. Run `pod install`
@@ -20,6 +20,21 @@ _**Be aware:** If you just want to use R.swift follow the install instructions f
2020
1. Add `github "mac-cain13/R.swift.Library"` to your [Cartfile](https://github.com/Carthage/Carthage/blob/master/Documentation/Artifacts.md#cartfile)
2121
2. Run `carthage`
2222

23+
### Manually
24+
25+
_As an embedded framework using git submodules._
26+
27+
0. If your project is not yet a git repository, run `git init`
28+
1. Add R.swift.Library as a submodule by running: `git submodule add https://github.com/mac-cain13/R.swift.Library.git`
29+
3. Open the new `R.swift.Library` folder, and drag the `R.swift.Library.xcodeproj` into the Project Navigator of your application's Xcode project.
30+
4. Select the `R.swift.Library.xcodeproj` in the Project Navigator and verify the deployment target matches that of your application target.
31+
5. Select your application project in the Project Navigator (blue project icon) to navigate to the target configuration window and select the application target under the "Targets" heading in the sidebar.
32+
6. In the tab bar at the top of that window, open the "General" panel.
33+
7. Click on the `+` button under the "Embedded Binaries" section.
34+
8. Choose the `Rswift.framework`
35+
36+
> The `Rswift.framework` is automagically added as a target dependency, linked framework and embedded framework in a copy files build phase which is all you need to build on the simulator and a device.
37+
2338
## License
2439

2540
[R.swift](https://github.com/mac-cain13/R.swift) and [R.swift.Library](https://github.com/mac-cain13/R.swift.Library) are created by [Mathijs Kadijk](https://github.com/mac-cain13) and released under a [MIT License](License).

0 commit comments

Comments
 (0)