fix clang analyzer warning
modified settings for iphone
fixed some warnings