I am trying to connect automatically to a wifi netowrk using NEHotspotConfiguration. One of the required steps to use this is to enable Hotspot under capabilities in the target. However I cannot find hotspot under Capabilities. Can anyone help?

AFAIK, free membership doesn’t have this feature.
You can using account that had enrolled an Apple Developer Program, or manually select a valid provisioning profile to solve this issue.
And I think there are hints like
13 Capabilities Unavailable
Learn More About Advanced App Capabilities
which would showing below the capabilities list.
You should check account carefully while building a new project.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With