NSUbiquitousKeyValueStore: Ambiguous use of 'set(_:forKey:)'

410 Views Asked by At

I'm using Xcode 8.3 beta 2 (8W120l) and can't get this line of code to work:

NSUbiquitousKeyValueStore.default().set(["one", "two"], forKey: "key")

Here is the error I get:

Ambiguous use of 'set(_:forKey:)'

This piece of code compiles perfectly on Xcode 8.2.1 (8C1002).

I can't find any info on how to get this code compile.

enter image description here

0

There are 0 best solutions below