I am using the latest Cordova plugin for Salesforce Mobile and when I try to use Smartsync, my app crashes with

setObjectForKey: object cannot be nil (key: Customfield__c)' exception.

How can I fix this?

  • Are you using latest Cordova plugin? It has been a known issue but resolved last week.
    – Ashwani
    Feb 26, 2015 at 8:24

1 Answer 1


Refer to this thread. This was a known issue which is now fixed - Either update your local repo from here or pull down the latest libSmartSync.a file from the repo.

This is the link to the github issue which is now marked as fixed.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .