OK - I think I have found the problem - I need to use “Edit your App ID Configuration” in the Apple Developer site to add the iCloud Capability.
Do I need to edit the configuration on the Apple site by adding an “iCloud Container” there, or is this done by Xojo during compile using the default option?
Or do I need to add an identical one on the site and in Xojo?