RxSwift icon indicating copy to clipboard operation
RxSwift copied to clipboard

Swift 3.0

Open kzaher opened this issue 10 years ago • 18 comments

Merge current develop to swift-3.0 branch, and make it compilable with Xcode 8.0.

@sergdort expressed desire to help us with that, so assigning this task to him.

kzaher avatar Jun 17 '16 12:06 kzaher

@sergdort I did some work, while I was bored over here if you want a head start

I've got the RxSwift-iOS, and RxCocoa-iOS targets building. i ran into an issue with the reachability manager in the iOS example (looks like Apple forgot to include a method to convert a Unmanaged into a UnsafeMutablePointer (they even had a proposal about it))

HTH!

jamiepinkham avatar Jun 18 '16 08:06 jamiepinkham

Why, Why I've noticed this only now 😭 Spend half of the day to make RxSwift and RxCocoa to compile..

Any way will try to marge your changes to make RxBlocking work

sergdort avatar Jun 20 '16 17:06 sergdort

Hi @sergdort , @jamiepinkham,

I'll have some time today. Could you make a PR with your progress, so I can take a look at it, and potentially help you to wrap this up?

kzaher avatar Jun 22 '16 10:06 kzaher

Yo everyone :)

Any news ?

Aymenworks avatar Jul 04 '16 18:07 Aymenworks

I think it the project compiles right now.

There are two potential questions:

  • RxSwift 2.x version for Swift 3.0
  • RxSwift 3.x version for Swift 3.0

I think we'll just make alpha and beta versions available for RxSwift 3.x available with Swift 3.0

When I say alpha and beta versions, I mean alpha and beta in terms of public interface, not quality :) All versions will always be equally fully tested before releasing, so no worries there.

I think the current state is that the main project compiles in https://github.com/ReactiveX/RxSwift/tree/swift-3.0 branch, but still some of the unit tests are failing. ☝️ here is how people can contribute

After that is done, we'll slowly need to:

  • transition the API towards Swift 3.0 naming guidelines https://swift.org/documentation/api-design-guidelines/

☝️ here is how people can contribute

  • Fix Linux version

☝️ here is how people can contribute

  • perform redesign we have planned for Swift 3.0
  • pull in operator PRs that have been waiting for quite some time, sorry guys, it's been a crazy ride last year, couldn't find strength to properly review those PRs, but I'll take some PTO soon, so we'll merge them then.

kzaher avatar Jul 05 '16 08:07 kzaher

@kzaher I’m happy to help with the migration to Swift 3.

An immediate issue I’ve ran into is with Xcode 8 requiring a team before it builds anything. This means I have to modify the checkout before I can compile the framework, which is obviously not ideal.

Have you managed to solve this on your side?

mohsenr avatar Jul 05 '16 10:07 mohsenr

Hi @mohsenr ,

Downloading Xcode 8 beta 2 right now. Any suggestions how we can solve this. @jamiepinkham informed me that if we turn off signing completely, it won't be compilable for device, but need to check that.

Suggestions?

kzaher avatar Jul 07 '16 18:07 kzaher

That’s correct. You can build for the simulator, and you can build for macOS with signing turned off (which is already the case), but there’s no way to turn on signing (which is required of iOS device targets) without specifying a team.

I filed a radar for this.

mohsenr avatar Jul 08 '16 08:07 mohsenr

An update on this: in the latest Xcode beta (beta 3), you can now build framework projects without signing them, but this still leaves the open issue of being able to build and run the sample included in the workspace on iOS.

jamiepinkham avatar Jul 18 '16 20:07 jamiepinkham

https://github.com/ReactiveX/RxSwift/tree/swift-3.0 branch is now compatible with Xcode beta.4

kzaher avatar Aug 04 '16 09:08 kzaher

@kzaher You mean now compatible, right?

cassdeckard avatar Aug 04 '16 11:08 cassdeckard

yes, sry

kzaher avatar Aug 04 '16 12:08 kzaher

Though I am new to RxSwift I would be happy to help in anyway.

damianesteban avatar Aug 14 '16 15:08 damianesteban

Hi @damianesteban ,

I think that right now we are little behind with Linux support and Swift Package Manager. We have made a proof of concept a while ago, but a lot has changed since :)

Those are the parts that need most love right now IMHO :)

kzaher avatar Aug 18 '16 23:08 kzaher

Issue #580 is tracking that.

kzaher avatar Aug 18 '16 23:08 kzaher

@kzaher Thanks, I'll take a look.

damianesteban avatar Aug 22 '16 21:08 damianesteban

@kzaher I don't see Swift 3 branch https://github.com/ReactiveX/RxSwift/tree/swift-3.0 , has it been removed? I wanted to start migrating my existing code to swift 3....

akshaynhegde avatar Sep 04 '16 07:09 akshaynhegde

@akshaynhegde It's already in master, just use `pod RxSwift, ~> '3.0.0.alpha.1'

sergdort avatar Sep 04 '16 09:09 sergdort