-
Notifications
You must be signed in to change notification settings - Fork 28
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
Database.swift/QueryParameters case Keys ([AnyObject]) does not compile in linux #8
Comments
I just built both the master and develop branches of Kitura-CouchDB on Linux. Both built and ran our tests flawlessly. What version of Swift were you using? We currently support the 03/24 DEVELOPMENT drop of Swift 3.0 |
Yes, it builds inside the package, but you will get the errors when you try to use the .Key option. Example: $ swift build -Xcc -fblocks |
I am noticing this same issue using 03/24 DEVELOPMENT... |
@tkhuran I have been reviewing our open issues. I think we fixed this one in the prior commit. Can you please verify that this issue has been dealt with. Thanks. |
yes, this looks great now. Thanks! |
Your welcome |
error: value of type 'String' does not conform to expected element type 'AnyObject'
if os(Linux)
if os(Linux)
if os(Linux)
case StartKey (Any)
#else
case StartKey (AnyObject)
#endif
public func queryByView(view: String, ofDesign design: String, usingParameters params: [Database.QueryParameters], callback: (JSON?, NSError?) -> ()) {
var paramString = ""
#if os(Linux)
var keys: [Any]?
#else
var keys: [AnyObject]?
#endif
// other code goes here.
}
The text was updated successfully, but these errors were encountered: