Description
I am using the RxCocoa binary dynamic library, but after using DelegateProxy in my code, I encountered the following error during the final linking phase of the compilation:
Undefined symbols for architecture arm64:
"method descriptor for RxCocoa.DelegateProxy.__allocating_init<A where A1: RxCocoa.DelegateProxy<A, B>, A1: RxCocoa.DelegateProxyType>(parentObject: A, delegateProxy: A1.Type) -> RxCocoa.DelegateProxy<A, B>", referenced from:
l_got.$s7RxCocoa13DelegateProxyC12parentObject08delegateD0ACyxq_Gx_qd__mtcAFRbd__AA0cD4TypeRd__lufCTq in ViewController.o
"RxCocoa.DelegateProxy.init<A where A1: RxCocoa.DelegateProxy<A, B>, A1: RxCocoa.DelegateProxyType>(parentObject: A, delegateProxy: A1.Type) -> RxCocoa.DelegateProxy<A, B>", referenced from:
SPMDemo.TXPlayerProxy.init(SPMDemo.VodPlayer) -> SPMDemo.TXPlayerProxy in ViewController.o
ld: symbol(s) not found for architecture arm64
XCode16.0(16A242D)
RxSwift 6.9.0 binary frameworks downloaded from github releases page
But when I manually use Rx.project to build RxCocoa as a static library, it works fine. However, after converting the framework to an xcframework using xcodebuild, the same issue reappears. In fact, I now want to obtain a static RxCocoa xcframework, but I keep encountering various problems.