Reputation: 3870
I would like to use RxSwift inside my .xcframwork, is there any 'good practice' to add third-party frameworks to your .xcframework to be able to ship it 'all in one' for the customer?
I was trying to generate RxSwift.framework from their github repo, and add it to the framework itself, but didn't work at the end, while using with Example app have this error:
Any link or idea would be welcome :)
Upvotes: 0
Views: 552
Reputation: 3870
Finally I decided to add RxSwift as a package to my Framework and then expose RxSwift agnostic interface of the Framework for the customer, so they will be not aware that Im using under the hood Rx. I had to mark all RxSwift imports as @_implementationOnly import RxSwift
.
Another benefit of this is that customer of my Framework is not forced to have a knowledge about RxSwift since Im using vanilla Swift (closures).
Upvotes: 2