I just have succeeded to get the same error message.
In my testing code, if I declare the instance property categories
as:
var categories: [NSString] = []
I have got this error message:
error: argument passed to call that takes no arguments
If your case is very similar to this, you need to change the property declaration to:
var categories: [String] = []
Even if this does not fit for your issue, you'd better check this sort of type-mismatching, because as of Swift 3/Xcode 8 beta 6:
- Bridging conversions are no longer implicit. The conversion from a Swift value type to its corresponding object can be forced with
as
.
For example: string as NSString
. Any Swift value can also be
converted to its boxed id
representation with as AnyObject
.
(SE-0072)
(Taken from the Release Notes of Xcode 8 beta 6.)