Weebly / Cereal

Swift object serialization
BSD 3-Clause "New" or "Revised" License
369 stars 13 forks source link

Query: Does Cereal work with Linux Swift? #12

Closed lloydsargent closed 6 years ago

lloydsargent commented 8 years ago

I’m currently working with Swift 3.0. Eventual goal is port apps from Linux to OS X.

ketzusaka commented 8 years ago

It mostly does. Unfortunately theres an inconsistency in NSURL between the OS X version and the version built with Linux. The value.absoluteString at CerealEncoder.swift:325 needs to be written as value.absoluteString! on Linux right now. I'm going to file a PR against the foundation library to fix this inconsistency, but until then, you can alter that.

I'll also update Cereal's repo to be friendly with SPM soon.

lloydsargent commented 8 years ago

Awesome!

On Mar 8, 2016, at 20:37 , James Richard notifications@github.com wrote:

It mostly does. Unfortunately theres an inconsistency in NSURL between the OS X version and the version built with Linux. The value.absoluteString at CerealEncoder.swift:325 needs to be written as value.absoluteString! on Linux right now. I'm going to file a PR against the foundation library to fix this inconsistency, but until then, you can alter that.

I'll also update Cereal's repo to be friendly with SPM soon.

— Reply to this email directly or view it on GitHub https://github.com/Weebly/Cereal/issues/12#issuecomment-194079076.

ketzusaka commented 8 years ago

Quick update on this!

My PR to fix the inconsistency was merged & is now part of the latest snapshot. I'll be working on getting the code to compile under both Swift 3 and Swift 2.2 over the next week or so, and once that's done we'll be fully linux compatible for the development snapshots =)