Apple to close iPhone security hole