ReactiveX / RxSwift

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

Can't Compile RxCocoa on Apple Watch #2253

Closed luigitrevisi closed 4 years ago

luigitrevisi commented 4 years ago

Short description of the issue: I've been trying to compile an already existing iOS project containing a target for an Apple Watch extension. The project uses RxSwift/RxCocoa which, reading at the official documentation, is compatible with watchOS. If compiling with v5.1.1 it's ok, it fails with 6.0.0-rc.1

This issue was already fixed here: https://github.com/ReactiveX/RxSwift/issues/1737

Expected outcome:

The app compiles

What actually happens: The app doesn't compile

Self contained code example that reproduces the issue:

Cannot find 'CGRectType' in scope
Cannot find 'CGPointType' in scope
Cannot find 'CGSizeType' in scope

RxSwift/RxCocoa/RxBlocking/RxTest version/commit

6.0.0-rc.1

Platform/Environment

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

Xcode version:

12.1

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)

freak4pc commented 4 years ago

Thanks! Any chance you can provide a tiny isolated sample project with this issue? Would help getting a quick resolution over to you.

luigitrevisi commented 4 years ago

Thanks! Any chance you can provide a tiny isolated sample project with this issue? Would help getting a quick resolution over to you.

Just added, thanks!

freak4pc commented 4 years ago

Hey, your project builds with no issues for me on Xcode 12.1. Anything specific to reproduce this?

luigitrevisi commented 4 years ago

Have you tried to compile for a real Apple Watch? For me It compiles for simulators only.

freak4pc commented 4 years ago

You haven't mentioned needing a real device ;-)

freak4pc commented 4 years ago

Can you try the arm32_64 branch?

luigitrevisi commented 4 years ago

It compiled! Thank you

freak4pc commented 4 years ago

Fix is on main and will be deployed in RC2 @luigitrevisi

bukira commented 3 years ago

when is RC2 due? I need to point to main then in my swift package?