upgraded iOS lib to SDK 3.1.2