Support iOS and OS X