iOS: log some critical error message to disk