Apple will allow iPhone customers to repair their handsets themselves.