Thank you very much for explaining so much to me. But I think I'm in a different situation. After carefully reading the document, I realized that I didn't have the authorization for Hotspot Conf Entitlement.
doc link below:
Wi-Fi configuration
After I modified the settings of Xcode, everything started working properly.
In the future, or we could separate out the error codes that indicate lack of permissions
Topic:
App & System Services
SubTopic:
Networking
Tags: