updated to Xcode 4.6
save on exit added for iOS