Using Carthage is pretty much similar to working with CocoaPods. Install the latest version of Carthage by following the steps mentioned at https://github.com/Carthage/Carthage#installing-carthage.
Create a new file in your project named CartFile and add the following code to this file:
github "ReactiveX/RxSwift" ~> 3.6
Use the Terminal.app to execute the Carthage update command from the folder containing the newly created CartFile.
Once this command is executed, you will see framework files in the Carthage folder present inside the current folder. All the libraries mentioned on the CartFile are downloaded and built to form a framework file in this step and hence it might take some time. Include the framework ...