async allocate(deviceConfig) {
    const deviceQuery = new SimulatorQuery(deviceConfig.device);

    const udid = await this._deviceRegistry.registerDevice(async () => {
      return await this._findOrCreateDevice(deviceQuery);
    });

    if (!udid) {
      throw new DetoxRuntimeError(`Failed to find device matching ${deviceQuery.getDeviceComment()}`);
    }

    this._launchInfo[udid] = { deviceConfig };
    return { id: udid, udid };
  }
@param deviceConfig { Object }
@return {Promise<IosSimulatorCookie>}