I've also encountered this issue. I have narrowed it down to there being different aps-environment keys added to the [YourProject].entitlements file:
aps-environment for iOS and
com.apple.developer.aps-environment for Mac
Signing then fails because the provisioning profile that is provided only has one of these (depending on the platform)
I have raised feedback FB9194385 for this.
In the meantime you can create separate entitlements files per target as described here: https://stackoverflow.com/questions/43086070/how-to-set-different-entitlements-file-for-different-targets