Skip to content

RxCocoa binary framework error: Undefined symbols RxCocoa.DelegateProxy #2657

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
ssly1997 opened this issue Mar 7, 2025 · 0 comments
Open

Comments

@ssly1997
Copy link

ssly1997 commented Mar 7, 2025

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

Image

Image

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant