Swiftyjson: Swift 4.1 removes support for _incremental protocol

Created on 29 Jan 2018  路  12Comments  路  Source: SwiftyJSON/SwiftyJSON

What did you do?

This package is imported in the FoodTracker app as part of Swift Metrics, but on Xcode 9.3 beta with Swift 4.1, it fails to compile as _incremental is no longer available. The documentation on Apples site for it has been removed too.

What did you expect to happen?

The source to compile correctly.

What actually happened instead?

SwiftyJSON failed to compile due to the protocol no longer being available.
Error: Use of undeclared type _incremental.

Environment

List the software versions you're using:

  • SwiftyJSON: 17.0.0
  • Xcode Version: 9.3 beta (9Q98q)
  • Swift Version: 4.1
question

Most helpful comment

FYI, the master branch doesn't have _Incrementable protocol and you are happy to compile it with the latest Swift 4.1.

All 12 comments

same problem here

@yl1991 @KyeMaloy97 I can't reproduce this issue with the latest the Version 9.3 beta 3 (9Q117m)
Can you confirm that this is still an issue?

Xcode Version 9.3 (9E145)
screen shot 2018-03-31 at 14 16 02

it seems that i have to downgrade to xcode 9.2 (

@dskibin Which version of SwiftyJSON you are using?

@wongzigii 3.1.4
but i suppose that issue will be for all versions with _incremental usage and for swift 4.1

I'm getting the same issue, is there something we could do to workaround this without going back to 9.2?

@JackTudor96 @dskibin I have no idea why there is an _Incrementable protocol? Are you guy using an out-dated pod in your project?

@wongzigii Yes you're right. I worked out that one of the dependencies I was using, had an older version of SwiftyJSON as one of its dependencies. I've solved it now.

:D Glad you finally work it out!

FYI, the master branch doesn't have _Incrementable protocol and you are happy to compile it with the latest Swift 4.1.

I am going to close this issue, if you have any questions feel free to re-open it.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

IsmailHassanein picture IsmailHassanein  路  11Comments

111jaam picture 111jaam  路  11Comments

rbugajewski picture rbugajewski  路  17Comments

rmoffett picture rmoffett  路  11Comments

frederik-jacques picture frederik-jacques  路  35Comments