Skip to content
This repository has been archived by the owner on Jul 20, 2020. It is now read-only.

Update for Swift 2.1? #33

Open
Gob-Lin opened this issue Jan 7, 2016 · 12 comments
Open

Update for Swift 2.1? #33

Gob-Lin opened this issue Jan 7, 2016 · 12 comments

Comments

@Gob-Lin
Copy link

Gob-Lin commented Jan 7, 2016

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.

@RegisStGelais
Copy link

I posted a simple fix for that in issue #27 and issue #28

@Gob-Lin
Copy link
Author

Gob-Lin commented Jan 7, 2016

Did as instructed but still get several errors related to Type 'String' does not conform to protocol 'SequenceType'.

G

@RegisStGelais
Copy link

Use a separate file for your string extention class and make sure that you import Fondation.

@Gob-Lin
Copy link
Author

Gob-Lin commented Jan 7, 2016

String extension is already in a separate file, with Foundation imported on top.

Any idea of what can be wrong?

Thanks,

G

@RegisStGelais
Copy link

Hum, I successfully use this extention in my project. Did you also remove the old sqlite lib and add libsqlite3.tdb ?

@Gob-Lin
Copy link
Author

Gob-Lin commented Jan 7, 2016

I have added libsqlite3.tdb, there was no old sqlite lib in my project, or so I guess?

G

@RegisStGelais
Copy link

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

@Gob-Lin
Copy link
Author

Gob-Lin commented Jan 7, 2016

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

@RegisStGelais
Copy link

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.

@Gob-Lin
Copy link
Author

Gob-Lin commented Jan 7, 2016

Yes, I have realized right after posting :-)

So, congratulations to Ryan Fowler and kudos to you!

P

@RegisStGelais RegisStGelais mentioned this issue Jan 7, 2016
@a-Hejazi
Copy link

I did every way(add extention,clear println errors) , but there is 68 errors yet , what i should do?

@jychunyih
Copy link

Check Issue #34, I made a quick fix for the build break in Swift 2.1.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants