sinaweibosdk / weibo_ios_sdk

新浪微博 IOS SDK
http://weibo.com
Other
1.45k stars 565 forks source link

未安装微博客户端时 授权登录完成自动跳回,但被卡住在 __45+[WeiboSDK directlySendResponseToCurrentApp:]_block_invoke #360

Closed MyBar closed 4 years ago

MyBar commented 6 years ago

未安装微博客户端时 授权登录完成自动跳回,但被卡住在 __45+[WeiboSDK directlySendResponseToCurrentApp:]_block_invoke

2018-04-05 16 39 15
fremaksim commented 6 years ago

解决了没?

JosephPoplar commented 6 years ago

同样问题

ghjang commented 6 years ago

I have an iOS app to maintain.

The app uses Weibo SDK to sign-in to Weibo. The app crashes with a similar screenshot to this issue when clicking some kind of cancel button on the left-top of the login page.

I'm not sure my problem is directly related to this issue. Anyway, do you have any idea what I am doing wrong?

img_0168

Following is a screenshot when the app is crashed: screen shot 2018-04-12 at 1 25 44 pm

SherlockQi commented 6 years ago

同样问题

AlvinZheng commented 6 years ago

me too

softknife commented 6 years ago

func application(_ application: UIApplication, open url: URL, sourceApplication: String?, annotation: Any?) -> Bool

Xcode 9.3 中这个代理方法Any不是可选的了, sdk中传了nil

AlvinZheng commented 6 years ago

看来只有自己解决了?

softknife commented 6 years ago

嗯,要么你等着他官方更新

黄继平 邮箱:hjphfut@163.com

签名由 网易邮箱大师 定制

在2018年04月23日 10:56,AlvinZheng 写道:

看来只有自己解决了?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

AlvinZheng commented 6 years ago

我另外加了个方法 func application(_ application: UIApplication, open url: URL, sourceApplication: String?, annotation: Any?) -> Bool (Any改为Any?)后没有崩了。weibo会调到这个方法来。其他的还是调用原来的。

JqyModi commented 6 years ago

AlvinZheng:正解 通过他的方法成功解决了

chenshipeng commented 5 years ago

AlvinZheng:我也试试这个方法

Jean1992 commented 5 years ago

OC有解决了的吗

Running2snail commented 5 years ago

OC怎么解决?

mavivian commented 5 years ago

OC怎么解决? 我加了这个,没问题了,你试试

  • (BOOL)application:(UIApplication )application openURL:(NSURL )url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation { return false; }