Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

发现一个必现的crash #73

Open
ArchLL opened this issue Jul 23, 2020 · 0 comments
Open

发现一个必现的crash #73

ArchLL opened this issue Jul 23, 2020 · 0 comments

Comments

@ArchLL
Copy link

ArchLL commented Jul 23, 2020

该API iOS 9.0及以后已经废弃

问题描述

未安装微博客户端,通过微博web页面进行授权,然后点击左上角的关闭按钮,会引起crash。 通过分析,发现sdk是因为调用了上面截图中已经废弃的api导致的,因为我的app最低适配iOS9.0,旧的api已经移除了。

crash

建议

在调用application:openURL:sourceApplication:annotation:方法之前做一个判断,现在很多应用都使用下面这个api了
- (BOOL)application:(UIApplication *)app openURL:(NSURL *)url options:(NSDictionary<UIApplicationOpenURLOptionsKey, id> *)options API_AVAILABLE(ios(9.0));

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant