在做qq的第三方登录时遇到这个问题,配置什么的都ok了,一分以前的代码是可以work的,用pods管理了sdk然后就悲剧了。log里只有一句这个“retryHandleOpenURL”。找了下api,发现了这个货:
- (BOOL)application:(UIApplication *)application handleOpenURL:(NSURL *)url NS_DEPRECATED_IOS(2_0, 9_0, "Please use application:openURL:options:") __TVOS_PROHIBITED;
- (BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(nullable NSString *)sourceApplication annotation:(id)annotation NS_DEPRECATED_IOS(4_2, 9_0, "Please use application:openURL:options:") __TVOS_PROHIBITED;
- (BOOL)application:(UIApplication *)app openURL:(NSURL *)url options:(NSDictionary*)options NS_AVAILABLE_IOS(9_0); // no equiv. notification. return NO if the application can't open for some reason
在ios9时候,任性的apple工程师调整了一下api,就是我上面列出来的。在你的UIApplication.h 中找一下就明白了。使用他建议的api就好了。