1.首先需要向苹果申请Hotspot Helper授权,申请地址https://developer.apple.com//contact/network-extension/
![](https://img.haomeiwen.com/i6667010/0e07bff85924634a.jpeg)
2.申请通过之后需要重新创建新的配置文件,新的配置文件必须添加网络扩展权限(只有在您有访问权的情况下才能使用),在xcode中使用该配置文件来进行工作
3.在项目的Entitlements添加com.apple.developer.networking.hotspothelper
![](https://img.haomeiwen.com/i6667010/97f7b5b416cbcf6b.png)
4.在项目的info.plist文件 Required background modes 添加network-authentication
![](https://img.haomeiwen.com/i6667010/b33f5a1304b15c83.png)
网友评论