帮助跟踪在fb注销期间调用块的工具

时间:2013-03-25 20:39:11

标签: objective-c-blocks facebook-ios-sdk

我有一个奇怪的错误,我的登录方法中的一个块在我的facebook登出功能中间再次被错误地调用。发布的代码很多,但我的问题是如何在xcode中调试。我是否可以使用特定工具来帮助跟踪调用块的位置?

这是线程信息

#0  0x0017ca21 in __46-[FacebookRepo startLoginWithCompletionBlock:]_block_invoke at /Users/transformer/Projects/PictoriousApp/Pictorious/Core/FacebookRepo.m:183
#1  0x00440a96 in -[FBSession transitionAndCallHandlerWithState:error:token:expirationDate:shouldCache:loginType:] at /Users/jacl/src/release-trashme/ios-sdk/src/FBSession.m:1497
#2  0x004414fa in -[FBSession closeAndClearTokenInformation:] at /Users/jacl/src/release-trashme/ios-sdk/src/FBSession.m:1702
#3  0x0043d814 in -[FBSession closeAndClearTokenInformation] at /Users/jacl/src/release-trashme/ios-sdk/src/FBSession.m:417
#4  0x0017d1c4 in -[FacebookRepo startLogout] at /Users/transformer/Projects/PictoriousApp/Pictorious/Core/FacebookRepo.m:248
#5  0x00198dad in -[PictoriousSession startLogout] at /Users/transformer/Projects/PictoriousApp/Pictorious/Core/PictoriousSession.m:140
#6  0x00212841 in -[EditProfileViewController userLogOut] at /Users/transformer/Projects/PictoriousApp/Pictorious/Controllers/People/Profile/EditProfileViewController.m:293

使它看起来像

1 个答案:

答案 0 :(得分:0)

我已经遇到了类似的问题。在我的情况下,它发生在我调用closeAndClearTokenInformation方法时。 在调用此方法之前,我只是在创建FBSession的新实例对象时解决了这个问题。

self.session = [[FBSession alloc] init];
[self.session closeAndClearTokenInformation];

希望它会对你有所帮助。