ReactiveX / RxSwift

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

Cocoapods trunk push verification fails on pods dependent on RxSwift using Xcode 15+ #2582

Closed mjohnson12 closed 4 months ago

mjohnson12 commented 7 months ago

Short description of the issue:

While attempting to push out a new pod version for WorkflowRxSwift cocoapods gets an error doing the verification build when using Xcode 15.x. This pod depends on RxSwift and the error is as follows:

- ERROR | xcodebuild: RxSwift/RxSwift/Schedulers/ConcurrentDispatchQueueScheduler.swift:17:29: error: 'Date' is only available in application extensions for macOS 10.10 or newer

It is failing because the minimum deployment target in the podspec for Mac OS for RxSwift is 10.9. The package file for RxSwift currently has the minimum deployment target set to 10.10 here.

Can you update the minimum deployment target to 10.10 on your podspec please to fix this issue?

The only workaround we have at the moment is using Xcode 14.x to do the push but because Sonoma does not support Xcode 14.x this won't work much longer for us.

Expected outcome:

Expected to be able to pod trunk push a pod that depends on RxSwift without compilation failure.

What actually happens:

The push fails with 25 errors.

RxSwift/RxCocoa/RxBlocking/RxTest version/commit

6.6

Platform/Environment

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

Xcode version:

  Xcode 15.1

:warning: Fields below are optional for general issues or in case those questions aren't related to your issue, but filling them out will increase the chances of getting your issue resolved. :warning:

Installation method:

I have multiple versions of Xcode installed: (so we can know if this is a potential cause of your issue)

Level of RxSwift knowledge: (this is so we can understand your level of knowledge and formulate the response in an appropriate manner)

Shannon-Yang commented 5 months ago

I'm having the same problem, any updates?

freak4pc commented 4 months ago

Seems there was a discrepancy with the podspec, I fixed it here but it might need a new release being cut if we're referring specifically to a podspec.

freak4pc commented 4 months ago

@mjohnson12 @Shannon-Yang Please try RxSwift 6.7.0

mjohnson12 commented 4 months ago

Thanks much. I'll give it a try.