This can occur when trying to sign a new iOS app when an entitlements file doesn't exist, or the application name has been changed. Go into "Capabilities" and toggle iCloud on, then off. This will create or update the entitlements file. Rebuild a new archive and the signing error should be resolved.