Xcode设置

plist文件

允许联网

NSAppTransportSecurity——dictionary
NSAllowsArbitraryLoads——yes

URL scheme白名单

应用程序有分享或跳转到其他平台授权的功能,分享或授权后再跳回来。iOS9需要将你要在外部调用的URL scheme列为白名单,才可以完成跳转,如无则报错。

LSApplicationQueriesSchemes
  • 该关键字类型为NSArray;
  • 需要添加白名单的App关键字直接以NSString的形式添加在其下面就行;

#####常见第三方App的url Scheme:
- 百度地图:baidumap
- 高德地图:iosamap
- 谷歌地图:comgooglemaps
- 腾讯地图:qqmap

常用的白名单(url Scheme)分类:

LSApplicationQueriesSchemes

//=============地图======

- 百度地图:baidumap
- 高德地图:iosamap
- 谷歌地图:comgooglemaps
- 腾讯地图:qqmap

//=============微信======

wechat

weixin

//==============QQ=====

mqqapi

mqq

mqqOpensdkSSoLogin

mqqconnect

mqqopensdkdataline

mqqopensdkgrouptribeshare

mqqopensdkfriend

mqqopensdkapi

mqqopensdkapiV2

mqqopensdkapiV3

mqzoneopensdk

wtloginmqq

wtloginmqq2

mqqwpa

mqzone

mqzonev2

mqzoneshare

wtloginqzone

mqzonewx

mqzoneopensdkapiV2

mqzoneopensdkapi19

mqzoneopensdkapi

mqzoneopensdk

//=============新浪微博=====

sinaweibohd

sinaweibo

sinaweibosso

weibosdk

weibosdk2.5

//============支付======

alipay

alipayshare
还可以通过另一种方法添加,还是在plist文件里面配置

LSApplicationQueriesSchemes     

    

wechat    

weixin   

     

sinaweibohd   

 sinaweibo   

 sinaweibosso   

 weibosdk   

 weibosdk2.5   

     

mqqapi   

 mqq    

mqqOpensdkSSoLogin   

 mqqconnect  

  mqqopensdkdataline  

  mqqopensdkgrouptribeshare  

  mqqopensdkfriend  

  mqqopensdkapi   

 mqqopensdkapiV2  

  mqqopensdkapiV3  

  mqzoneopensdk  

  wtloginmqq   

 wtloginmqq2   

 mqqwpa   

 mqzone   

 mqzonev2   

 mqzoneshare   

 wtloginqzone   

 mqzonewx   

 mqzoneopensdkapiV2   

 mqzoneopensdkapi19  

  mqzoneopensdkapi  

  mqzoneopensdk  

     

 alipay    alipayshare

参考链接:白名单配置

更新中。。。。

你可能感兴趣的:(Xcode设置)