Skip to content
Permalink
Browse files

README update for Carthage static libs

  • Loading branch information...
freak4pc authored and kzaher committed Apr 30, 2019
1 parent bfdd614 commit 3ae39ab909309d75c52d1cdc1b65079285d06a72
Showing with 12 additions and 0 deletions.
  1. +12 −0 README.md
@@ -177,6 +177,18 @@ github "ReactiveX/RxSwift" ~> 5.0
$ carthage update
```

#### Carthage as a Static Library

Carthage defaults to building RxSwift as a Dynamic Library.

If you wish to build RxSwift as a Static Library using Carthage you may use the script below to manually modify the framework type before building with Carthage:

```bash
carthage update RxSwift --platform iOS --no-build
sed -i -e 's/MACH_O_TYPE = mh_dylib/MACH_O_TYPE = staticlib/g' Carthage/Checkouts/RxSwift/Rx.xcodeproj/project.pbxproj
carthage build RxAlamofire --platform iOS
```

### [Swift Package Manager](https://github.com/apple/swift-package-manager)

Create a `Package.swift` file.

0 comments on commit 3ae39ab

Please sign in to comment.
You can’t perform that action at this time.