I'm having the exact same problem. I went through all of my build settings just to be sure there wasn't anything odd in there and it looks pretty clean. Frustrating.
Post
Replies
Boosts
Views
Activity
I ended up using Console.app and found a line that said exactly what was going on.
ProvisioningProfiles 06:18:17.706701-0400 {BundleIDHere}: Unsatisfied entitlements: com.apple.developer.networking.wifi-info
The list of supported entitlements for macOS is here: https://developer.apple.com/help/account/reference/supported-capabilities-macos
Removing the offenders from the target's entitlements file solved the problem.
Agreed - it's disheartening to see UIKit left out in the cold like this! It's going to be years before our large codebase is shifted completely over.
FB13881349