You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It fails because the boolean failures are serialized to 1 and 0 instead of true and false.
I encountered this using Xcode 8.0 beta 6 while developing an iOS app. I can reproduce the bug both on the simulator and on an iPod Touch running iOS 10 beta 7 (14A5345a). I am not certain, but I believe this is a change in behavior since Xcode 8.0 beta 5.
I think this is an important bug. Many app developers write apps that talk to web services outside of their control.
Thank you for taking a look.
The text was updated successfully, but these errors were encountered:
Environment
Xcode 8.0 beta 6
Additional Detail from JIRA
md5: cec5813b8a6e14090a7b6dc0702da046
duplicates:
Issue Description:
Start with this dictionary:
When using Swift 2.3, it will be serialized as as:
When using Swift 3.0, JSONSerialization serializes the same dictionary as:
Some web service APIs, including the Gmail API, will reject 1 or 0 when expecting a boolean value.
This unit test will pass in a Swift 2.3 unit test:
This analogous Swift 3.0 unit test will fail:
It fails because the boolean failures are serialized to 1 and 0 instead of true and false.
I encountered this using Xcode 8.0 beta 6 while developing an iOS app. I can reproduce the bug both on the simulator and on an iPod Touch running iOS 10 beta 7 (14A5345a). I am not certain, but I believe this is a change in behavior since Xcode 8.0 beta 5.
I think this is an important bug. Many app developers write apps that talk to web services outside of their control.
Thank you for taking a look.
The text was updated successfully, but these errors were encountered: