0

我有一个奇怪的错误,我的登录方法中的一个块在我的 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

让它看起来像

4

1 回答 1

0

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

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

希望它会帮助你。

于 2013-06-09T13:25:19.343 回答