Unity发布ios之http问题

游戏发布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中加入:

 

    NSAppTransportSecurity
    
        NSAllowsArbitraryLoads
        
    

如果是用wifi的话还有一个关键的标签要打开

UIRequiresPersistentWiFi
    

用xcode打开Info.plist,添加NSAppTransportSecurity后发现没显示,再添加就提示已经有了,可是我看了几遍就是没发现:

Unity发布ios之http问题_第1张图片

百度的一堆也没找到,最后自己摸了下发现右键空白地方,选择Show Raw Keys/Values,这下总数出来了,特此记录一下。Unity发布ios之http问题_第2张图片


Unity发布ios之http问题_第3张图片

 

你可能感兴趣的:(Unity发布ios之http问题)