SwiftData
SwiftData copied to clipboard
Update for Swift 2.1?
The new release of Swift generates about 120 errors. Some of them are just println replacements but the others are more structural.
Any chance of an update?
Thanks.
I posted a simple fix for that in issue #27 and issue #28
Did as instructed but still get several errors related to Type 'String' does not conform to protocol 'SequenceType'.
G
Use a separate file for your string extention class and make sure that you import Fondation.
String extension is already in a separate file, with Foundation imported on top.
Any idea of what can be wrong?
Thanks,
G
Hum, I successfully use this extention in my project. Did you also remove the old sqlite lib and add libsqlite3.tdb ?
I have added libsqlite3.tdb, there was no old sqlite lib in my project, or so I guess?
G
I'm using an old version of swiftdata and added some customisation. Maybe the current version in github has another issue with swift 2.1 ??
One difference that I can see is that the current version has: for char in sql and my version has: for char in sql.characters
Good, I have added .characters where needed then I have added a try/catch to the methods
saveUIImage(image: UIImage) -> String?
and
deleteUIImageWithID(id: String) -> Bool
Now it compiles correctly. I'll let you know if I discover other issues.
Thanks and, btw, congratulations for this excellent class!
G
I am not the author of SwiftData, I am a user like you. I just found the class extention trick to fix it. Glad it helped. Keep me posted.
Yes, I have realized right after posting :-)
So, congratulations to Ryan Fowler and kudos to you!
P
I did every way(add extention,clear println errors) , but there is 68 errors yet , what i should do?
Check Issue #34, I made a quick fix for the build break in Swift 2.1.