2015-08-17 54 views
1

任何一個遇到這個問題,FB IOS SDK 4.5中出現死機iOS7

同時創造FBSDKGameRequestContent,與FB SDK 4.5的IOS,它得到墜毀在ios7。

附崩潰日誌這裏:

螺紋:致命異常:NSInvalidArgumentException 0的CoreFoundation 0x30956f83 exceptionPreprocess + 130 1 libobjc.A.dylib
0x3b0a3ccf objc_exception_throw + 38 2的CoreFoundation
0x3095a917 - [NSObject的( NSObject)doesNotRecognizeSelector:] + 202 3 CoreFoundation 0x30959203 ___forwarding_
+ 706 4 CoreFoundation 0x308a8768 _CF_forwarding_prep_0 + 24 5 0x0037a329 - [FBSDKGraphRequestConnection _validateFieldsParamForGetRequests:](FBSDKGraphRequestConnection.m:346)6
0x0037a61d - [FBSDKGraphRequestConnection requestWithBatch:超時:] (FBSDKGraphRequestConnection.m:378)7
0x00379443 - [FBSDKGraphRequestConnection開始] (FBSDKGraphRequestConnection.m: 175)8
0x003593e3 - [FBSDKGraphRequest startWithCompletionHandler:] (FBSDKGraphRequest.m:180)9 0x001fbef7 - [FBSDKGameRequestFrictionlessRecipientCache _updateCache](FBSDKGameRequestFrictionlessRecipientCache.m:91)10
0x001fbb71 - [FBSDKGameRequestFrictionlessRecipientCache INIT] (FBSDKGameRequestFrictionlessRecipientCache.m:39)11
0x001e726d + [FBSDKGameRequestDialog初始化] (FBSDKGameRequestDialog.m:45)12 libobjc.A.dylib
0x3b0a453d _class_initialize + 572 13 libobjc.A.dylib
0x3b0a89e3 lookUpImpOrForward + 130 14 libobjc.A.dylib
0x3b0a8957 _class_lookupMethodAndLoadCache3 + 34 15 libobjc.A.dylib
0x3b0ad8b9 _objc_msgSend_uncached + 24 16
0x00143285 - [JLFriendsViewController createFacebookGameRequest] (JLFriendsViewController.m:1095)17
0x00081457 - [JLFBF riendsTableviewDelegate 的tableView:didSelectRowAtIndexPath方法:] (JLFBFriendsTableviewDelegate.m:147)18的UIKit
0x3329203f - [UITableView的 _selectRowAtIndexPath:動畫:的scrollPosition:notifyDelegate:] + 1078 19 UIKit的0x33344357 - [UITableView的 _userSelectRowAtPendingSelectionIndexPath:] + 214 20的UIKit 0x331f36d5 _applyBlockToCFArrayCopiedToStack + 316 21的UIKit
0x3316c53b _afterCACommitHandler + 430 22的CoreFoundation
0x30922255 CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION + 20 23的CoreFoundation 0x3091fbf9 __CFRunLoopDoObservers + 284 24心病eFoundation 0x3091ff3b __CFRunLoopRun + 730 25 的CoreFoundation 0x3088aebf CFRunLoopRunSpecific + 522 26的CoreFoundation 0x3088aca3 CFRunLoopRunInMode + 106 27 GraphicsServices 0x357ad663 GSEventRunModal + 138 28 的UIKit 0x331d714d UIApplicationMain + 1136 29 0x0011d39b主(主。瑪:16)

+0

你可以檢查你所設定的SDK調用是正確的任何回調? – Roemer

回答

0

我已經看到了這個崩潰也和無法在本地重現,但它似乎這個問題是FBSDKGraphRequestConnection.mNSString使用containsString:,這是隻有在iOS可用8.0+。

// in NSString.h (iOS 8.4) 
- (BOOL)containsString:(NSString *)aString NS_AVAILABLE(10_10, 8_0); 

在FB SDK 4.5對應的線路

// in FBSDKGraphRequestConnection.m (line 349) 
![request.graphPath containsString:@"fields="]) { 

然而,這個問題似乎是固定在4.5.1(見this diff)。

被考慮的行現在是

// in FBSDKGraphRequestConnection.m (line 349) 
[request.graphPath rangeOfString:@"fields="].location == NSNotFound) { 

所以更新到4.5.1,你應該罰款。