Common: Fixed possible array access outside of bounds.
iOS: Updated xcode project.