"Failed to access score cache" C API error when calling scoreboards->addScore

Hello! I'm attempting to integrate scoreboards into my game, but I'm encountering difficulties with scoreboards->addScore. The provided callback is triggered with the error "Failed to access score cache" on both the device and simulator (Mac OS, SDK V2.1.1). Retrieving scoreboards (empty ones, haha) works without any issues.

Is anyone familiar with this problem?