update minimal target to iOS 7.1
replace deprecated NSArray.first to NSArray.firstObject