No type named 'Boolean' in module 'Swift'

Just downloaded Beta 4 of XCode 8 and ran the language conversion on an app that was already converted with Beta 3. I'm now getting an error with the following line (from SwiftyJSON) that was not changed during the conversion:


extension JSON : Swift.Boolean {

....

}


I'm getting the error No type named 'Boolean' in module 'Swift'. If I change it to Swift.Bool I get - Inheritance from non-protocol type 'Bool'. Makes sense cause Bool is a struct rather than a class or a protocol.


So this app is stuck. Anyone know of a workaround for this?


TIA

Mike

Replies

Same error here with SwiftyJSON in my project. Have not found a workaround yet.

Looks like someone just added a PR to help with this issue:


https://github.com/SwiftyJSON/SwiftyJSON/pull/579


If you just change: extension JSON : Swift.Boolean { to extension JSON: {


it will compile

I also get this error in swiftyjson!!!!!

+1 - I also get this error in swiftyjson


I have temporarily removed the requirement for the JSON extension to conform to the Swift.Boolean protocol. It compiles and links but I'm not sure what bad side effects it will have for me. I don't think I use the .bool method in my code.

`Boolean` protocol has been removed from Swift.

See SE-0109 of swift-evolution linked from swift.org.


No quick workaround.


Wait for updates, until then, daivd.apcon's suggestion would be the best for most users.

+1 Same here in xCode 8 Beta 4

See SE-0109 of swift-evolution linked from swift.org.

Here’s a link to that proposal.

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"