ReactiveX / RxSwift

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

DelegateProxy cause undefined symbol compile error #2442

Closed alekkania closed 2 years ago

alekkania commented 2 years ago

Short description of the issue:

I using the RxCLLocationManagerDelegateProxy from examples from this repo to manage CoreLocation. I receive error build: Undefined symbol: _$s7RxCocoa13DelegateProxyC12parentObject08delegateD0ACyxq_Gx_qd__mtcAFRbd__AA0cD4TypeRd__lufCTq compiler error in Xcode 14.

Expected outcome:

Compilation will pass.

What actually happens:

error build: Undefined symbol: _$s7RxCocoa13DelegateProxyC12parentObject08delegateD0ACyxq_Gx_qd__mtcAFRbd__AA0cD4TypeRd__lufCTq compiler error in Xcode 14.

Self contained code example that reproduces the issue:

https://github.com/ReactiveX/RxSwift/blob/main/RxExample/Extensions/RxCLLocationManagerDelegateProxy.swift

RxSwift/RxCocoa/RxBlocking/RxTest version/commit

6.5

Platform/Environment

How easy is to reproduce? (chances of successful reproduce after running the self contained code)

Xcode version:

 14
danielt1263 commented 2 years ago

The class is working fine in the sample app. If you are having a problem using it in your app. Please provide a complete, self-contained, example.

alekkania commented 2 years ago

The class is working fine in the sample app. If you are having a problem using it in your app. Please provide a complete, self-contained, example.

@danielt1263 RxIssue.zip Attached zip with example app. Rx is added by XCFramework. Xcode 14 beta 6 Swift 5.7 iOS 16 build

dasmihir20 commented 2 years ago

I am getting same issue with Xcode Beta 6

suprie commented 2 years ago

Same here

kimtungit commented 2 years ago

I also have the same situation

freak4pc commented 2 years ago

Hey all, This seems like an issue with the xcframework itself. I suggest trying to build your own xcframeworks using Xcode 14, since the xcframeworks bundled with this repo have been built with Xcode 13.

Running this script locally should do the work: https://github.com/ReactiveX/RxSwift/blob/main/scripts/make-xcframeworks.sh

suprie commented 2 years ago

@freak4pc I still have the same issue after rebuild the xcframeworks

freak4pc commented 2 years ago

@freak4pc I still have the same issue after rebuild the xcframeworks

And does it build with just SPM?

dasmihir20 commented 2 years ago

Using SPM works for me!! Thanks you!!

freak4pc commented 2 years ago

Using SPM works for me!! Thanks you!!

Thanks for letting me know! That unfortunately probably means there's a bug in Xcode 14 somehow. Since we don't really control the output of the xcframework build process.

Let me know if you find a way around this 💪😇

freak4pc commented 2 years ago

Closing this ATM, there's nothing actionable we can do since the fact SPM "solves" this means there's some issue with xcframework(s) for this area