- 打开由unity导出的iOS项目的文件夹,找到
Unity-iPhone.xcodeproj
- 按照下图操作,找到
info.plist
文件,在info.plist
中添加NSAppTransportSecurity
和NSAllowsArbitraryLoads
两个字段
- 按照下图操作,添加
Security.framwork
库
- 连接手机,
command + R
运行项目
Unity-iPhone.xcodeproj
info.plist
文件,在info.plist
中添加NSAppTransportSecurity
和NSAllowsArbitraryLoads
两个字段Security.framwork
库command + R
运行项目