DeviceCheck: generateToken() fails to return token in Xcode Cloud

DeviceCheck: generateToken() fails to return token in Xcode Cloud for macOS. The device token is always nil. How does one write test with that API ? Skipping the test is an option but then defeats the purpose.