Sounds like my issue, and found that this problem can occur after you've upgraded your macOS beta. I know this because I had a working app on a previous Xcode beta, and it was only until I updated my macOS beta that this problem occurred. See my issue here:
[(https://developer.apple.com/forums/thread/734970)]
Topic:
App & System Services
SubTopic:
iCloud & Data
Tags: