xcode中info.plist文件相关问题

时间:2023-03-09 17:02:38
xcode中info.plist文件相关问题

<一>关于提示http://访问网络不安全的解决方法

提示错误:

App Transport Security has blocked a cleartext HTTP (http://) resource load since it is insecure. Temporary exceptions can be configured via your app's Info.plist file.

解决方法:

NSAppTransportSecurity

   NSAllowsArbitraryLoads ->YES

提示错误:

-canOpenURL: failed for URL: "schme://" - error: "This app is not allowed to query for scheme wechat"

在iOS 9中必须将url加入白名单中.

<key>LSApplicationQueriesSchemes</key>
<array>
<string>wechat</string>
</array>