-
-
Notifications
You must be signed in to change notification settings - Fork 607
Swift 3.0 #326
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
Conversation
Test cases will need to be `final` for now due to the `Self` reference on the new `allTests` type. Once codegen is available for `allTests` we can get rid of the `final` and the `XCTestCaseProvider` protocol altogether.
Most changes are affected by: [SE-0005](https://github.com/apple/swift-evolution/blob/master/proposals/0005-objective-c-name-translation.md) [SE-0040](https://github.com/apple/swift-evolution/blob/master/proposals/0040-attributecolons.md) [SE-0046](https://github.com/apple/swift-evolution/blob/master/proposals/0046-first-label.md)
Most changes are affected by: - [SE-0005](https://github.com/apple/swift-evolution/blob/master/proposals/0005-objective-c-name-translation.md) - [SE-0049](https://github.com/apple/swift-evolution/blob/master/proposals/0049-noescape-autoclosure-type-attrs.md) - Update of swift-corelibs-foundation
Changes are affected by: - [SE-0059](https://github.com/apple/swift-evolution/blob/master/proposals/0059-updated-set-apis.md) - [SE-0065](https://github.com/apple/swift-evolution/blob/master/proposals/0065-collections-move-indices.md) - Update of swift-corelibs-foundation
Apply workaround for https://bugs.swift.org/browse/SR-1464 This fixes failing `BeCloseToTest` on Linux.
Changes are affected by: - [SE-0054](https://github.com/apple/swift-evolution/blob/master/proposals/0054-abolish-iuo.md) - [SE-0066](https://github.com/apple/swift-evolution/blob/master/proposals/0066-standardize-function-type-syntax.md) - [SE-0072](https://github.com/apple/swift-evolution/blob/master/proposals/0072-eliminate-implicit-bridging-conversions.md) - Update of swift-corelibs-foundation
`test podspec` passed by applying this.
…jectiveC` Avoid `error: mixedSources("<path to Nimble>/Sources/Nimble")` on building by Swift Package Manager.
Error: "Could not cast value of type '__C.CFRunLoopMode' (0x111e56c38) to 'Swift.AnyObject'"
# Conflicts: # Sources/Nimble/Matchers/Contain.swift
* cl-swift3-compatibility: Add support for the foundation Date class Fix up expected error messages
Support Xcode 8 beta 6 and Preview 6
CGFloat now conforms to NMBDoubleConvertible
`CGFloat` is in Foundation (swift-corelibs-foundation) on Linux.
This should be removed once we get the following: swiftlang/swift-corelibs-foundation#585
Add NMBDoubleConvertible conformance to CGFloat on Linux
# Conflicts: # .travis.yml # test
Resolve conflicts with master
[WIP] Swift 3.0 Compatibility
@ikesyo, what's left that prevents this from merging into master? |
@jeffh I think this should get additional reviews, for example:
|
@@ -58,11 +56,10 @@ internal func nimblePrecondition( | |||
return result |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should get rid of the return value because it isn't used.
Thanks for the update @ikesyo.
I think that can be addressed when we attempt to switch matchers to use protocol extensions. I'll try again next week to play around and see if protocol extensions don't cause all sorts of problems.
👍 . This is fine. If someone still manages to get it to work on 7.0, we can accept a PR as needed.
While not ideal, the implementation seems workable. Other than that one change. It seems ready to merge, imo. |
@jeffh Thanks for the review! I've addressed the return value of |
Thanks everyone for putting in all the effort! 👏 |
Even though I have specified in my Podfile, Xcode 8 GM still complains and wants to convert to swift 3 for both projects. am I missing something? pod 'Quick', :git => 'https://github.com/Quick/Quick.git', :branch => 'swift-3.0'
pod 'Nimble', :git => 'https://github.com/Quick/Nimble.git', :branch => 'master' |
You might currently use CocoaPods 1.0.1, but you need 1.1.0.rc.2 for Xcode 8: |
Swift 3.0 Support
This succeeds the @norio-nomura's work of #277.