hkellaway / Gloss

[Deprecated] A shiny JSON parsing library in Swift :sparkles: Loved by many from 2015-2021
https://hkellaway.github.io/blog/2020/08/30/tale-of-third-parties
MIT License
1.62k stars 142 forks source link

fixed compactMap compile issue #326

Closed syn-deepakbadiger closed 6 years ago

syn-deepakbadiger commented 6 years ago

Not sure, why it failed, though i removed flatMap and converted the code to compactMap and ran a build on my side to ensure it builds fine and with no errors

syn-deepakbadiger commented 6 years ago

is there something that i would need to do so as to ensure travis CI builds properly?

syn-deepakbadiger commented 6 years ago
screen shot 2018-04-19 at 11 46 29 am screen shot 2018-04-19 at 11 46 52 am screen shot 2018-04-19 at 11 47 12 am

as can be seen from the screen shots, Travis is failing on line 82 for "Unresolved Identifier compactMap", but i have already tested that with the build on my side and i don't see any unresolved errors on my side as evident in the code screen shot..

screen shot 2018-04-19 at 11 49 59 am
hkellaway commented 6 years ago

can you try updating .travis.yml with osx_image: xcode9.3

syn-deepakbadiger commented 6 years ago

updated the yml file and it went through the CI again. However, unfortunately, it failed this time even without completing the build process.

mladen7 commented 5 years ago

Getting this error with version 2.1.0... I see the issue is closed, any way to resolve it? Using swift 4.0, is compactMap only 4.1?

hkellaway commented 5 years ago

yes, compactMap is Swift 4.1 you can use Gloss version 2.0.1

mladen7 commented 5 years ago

yes, compactMap is Swift 4.1 you can use Gloss version 2.0.1

Thanks for the quick reply, think i'll boost the project to latest swift instead :)