ReactiveX / RxSwift

Reactive Programming in Swift
MIT License
24.32k stars 4.17k forks source link

Link XCTest weakly in RxTest to enable static linking #2587

Closed mkj-is closed 5 months ago

mkj-is commented 5 months ago

When static linking is enabled (usually using a CocoaPods plugin) the build might fail due to RxTest. We have encountered this on tvOS target using app extension.

Screenshot 2024-03-27 at 11 28 19

By enabling weak linking and correct linker flags for tests the pod will compile successfully. Inpired by solution in Nimble framework.