游戏发布iphone真机后报错
You are using download over http. Currently Unity adds NSAllowsArbitraryLoads to Info.plist to simplify transition, but it will be removed soon. Please consider updating to https.
提示向Info.plist中加入NSAllowsArbitraryLoads,百度了下需要向Info.plist中加入:
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
</dict>
如果是用wifi的话还有一个关键的标签要打开
<key>UIRequiresPersistentWiFi</key>
<true/>
用xcode打开Info.plist,添加NSAppTransportSecurity后发现没显示,再添加就提示已经有了,可是我看了几遍就是没发现:
百度的一堆也没找到,最后自己摸了下发现右键空白地方,选择Show Raw Keys/Values,这下总数出来了,特此记录一下。