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中加入:

 

    <key>NSAppTransportSecurity</key>
    <dict>
        <key>NSAllowsArbitraryLoads</key>
        <true/>
    </dict>

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

<key>UIRequiresPersistentWiFi</key>
    <true/>

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

百度的一堆也没找到,最后自己摸了下发现右键空白地方,选择Show Raw Keys/Values,这下总数出来了,特此记录一下。


 

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值