问题1:如果出现这个错误:
The executable was signed with invalid entitlements.
The entitlements specified in your application’s Code Signing Entitlements file are invalid, not permitted, or do not match those specified in your provisioning profile. (0xE8008016).
要开启WiFi访问权限
然后找到Targets中的Build Settings选项卡中的`Code Signing Entitlements`,删除该项的值,重新Build即可解决。
问题2:如果遇到这个问题
dyld: Library not loaded: @rpath/Esptouch.framework/Esptouch
Referenced from: /var/containers/Bundle/Application/64DBC7DB-6918-4709-8600-E4F52688C512/RisunHome.app/RisunHome
Reason: image not found
(lldb)
这样操作即可完美解决: