Comments (21)
I am getting the following errors.
Box.swift:6:37: error: 'Printable' has been renamed to 'CustomStringConvertible'
Box.swift:31:10: error: 'toString' has been renamed to 'String'
Box/MutableBox.swift:8:51: error: 'Printable' has been renamed to 'CustomStringConvertible'
MutableBox.swift:25:10: error: 'toString' has been renamed to 'String'
The errors were caused by ReactiveCocoa that I use.
In ReactiveCocoa's Cartfile, it calls github "antitypical/Result" ~> 0.4.4
. I added github "antitypical/Results" "0.4"
to my own Cartfile to solve this problem.
from box.
Yeah, this project hasn't been fully updated to support Swift 2.0 because with the advent of indirect
, it's not that useful. There is an issue (#26) about needing to update the documentation to reflect this. I don't actually think that there are any Swift 2 compatible libraries using Box as a dependency at this point, either.
Would either of you be interested in opening a PR to flesh out the Swift 2.0 support?
from box.
The newest version of ReactiveCocoa as a cocoapod has a dependency to Box, which is what caused this error for me.
from box.
Verstion 3.0.0 of ReactiveCocoa only uses Swift 1.2, but I guess that since my base SDK is iOS 9, Xcode tries to compile it as Swift 2?
from box.
That's because you're using Xcode 7. You'd need to use the swift2
branch of RAC (or the 4.0 prerelease) to get Swift 2.0 support.
from box.
Yeah, but that's only in alpha. Don't feel comfortable using that in large scale production app š It just seems weird that you are forced to use Swift 2 in Xcode 7. It basically makes ReactiveCocoa 3.0 useless.
from box.
It just seems weird that you are forced to use Swift 2 in Xcode 7
I agree. Unfortunately that's the world we live in.
from box.
I'm seeing that same issue with ReactiveCocoa 3.0.
from box.
@jrmsklar RAC 3 targets Swift 1.2 so this shouldn't be a problem. Unless you're trying to build RAC 3 w/ Xcode 7/Swift 2 which isn't going to work.
from box.
Which is exactly why I (and everybody else) is doing.
from box.
What I'm saying is that RAC 3 won't ever build with Xcode 7 because Swift 2 has lots of breaking changes. You have to use the recently tagged RAC 4 alpha if you want to use Swift 2/Xcode 7.
from box.
Yes, I am completely aware of that by now, but that does not change the fact that RAC 3 is unusable to anyone who has to support iOS 9 actively.
from box.
Supporting iOS 9 devices doesn't require building with the latest tools and SDKs. Apps built against the iOS 8 SDK with Xcode 6.4 run just fine on iOS 9. If you want to be on the latest tooling you have to expect some libraries will lag behind.
from box.
Besides, there is a version of RAC for Xcode 7. It's just not baked for long enough yet which is why it's still labelled as an alpha build.
from box.
Again, I know. But as I said, if you actively have to support iOS 9 specific features all you can do is use RAC 2.5 and hope that Apple will not make as many syntactic breaking changes to the next version of Swift, so that third party libraries don't have to play as much catch up. Otherwise people will be stuck with old Obj-C libraries for the sake of syntactic sugar and language features.
from box.
Leaving aside the question of what one might want this for, Iād be more than happy to accept a PR updating Box
to Swift 2.0.
from box.
@robrix As far as I understand this issue, commits f152f11 and e633c97 should already fix this problem. Those commits were checked in after the latest Box release (1.2.2) tag, though, so they are effectively ignored by Carthage. A new release/tag should make everybody happy.
Edit: Everybody using Xcode 7 and Swift 2, I mean. š
from box.
@neilpa, I'm trying to build for iOS 9 using Xcode 7, which as @philipengberg pointed out is not supported by the latest version of RAC.
from box.
@bavarious š thanks.
from box.
+1 for a new release tag!
from box.
Tagged 2.0. I believe this should resolve the difficulties, so Iām going to close this out now.
from box.
Related Issues (13)
- Deadlocks when instantiating recursive struct (such as BinaryTree<T>). HOT 7
- Tag new version? HOT 8
- Compilation error using carthage HOT 16
- Support iOS7 HOT 4
- Update the readme to reflect the decreased need for Box in Swift 2
- Repeated build errors HOT 1
- Update cocoapod HOT 1
- Why does this framework use for parameterized enum? HOT 1
- Update Cocoapods HOT 2
- Latest release not Swift 3 compatible HOT 6
- MutableBox.swift:18:21: error: @noescape is now an attribute on a parameter type, instead of on the parameter itself HOT 2
- map() HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
š Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ššš
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ā¤ļø Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from box.