Don't look at error variables if result says success.
Shut up all of Xcode's complaints.