I am using the Salesforce iOS mobileSDK to access Knowledge on Lightning Salesforce.

The data type of the categories thus generated is an array of SCSCategoryGroup objects. When you drill down the childCategories on each object, you get an array of SCSCategory objects.

SCSCategory is renamed to 'Category' in Swift version of the library. This now causes an compile error: enter image description here

'Category' is ambiguous for type lookup in this context.    

Has anyone else faced this? How do i get past this?

Thanks for your help!


Got the answer from the mobileSDK dev team:

Since there is an overlap in the class names used by the ServiceSDK and the iOS core libraries, it identifies "Category" as being ambiguos.

In order to resolve this ambiguity, we need to mention the module name also. In this case,


Hope it helps!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.