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.
真机测试白名单设置:
在工程中的info.plist 文件中设置
LSApplicationQueriesSchemes -Array
item String sinaweibosso
item String sinaweibo
item String sinaweibohd
item String weibosdk
item String weibosdk2.5
真机测试注意事项:
1.同时在xcode中和手机中登录同一个苹果id
2.在xcode中,如下图,team中选择id,然后点击 fix lssue按钮, 正常后是下图所示:
3.运行程序,加载完成后,手机中出现工程,点击会提示需要添加信任,在手机设置-通用-设备管理中选择你的id添加信任再点击工程即可。