Error after twitter 2.0.0 version released

ios
fabric
twitterkit

#1

Hi, after you released the new version of twitter, 2.0.0 and 2.0.1 later, on fabric I have the follow error after building, this is from a test app with fabric installed and twitter timeline only, I have the same error on two other apps. I followed the tutorial as I did when older version of twitter was released,but problem still exist.

2016-03-24 16:08:39.257 twtrapp[3072:42364] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Could not load NIB in bundle: 'NSBundle </Users/jek/Library/Developer/CoreSimulator/Devices/223842FD-D239-40B1-A7EE-5D6A205BD6EB/data/Containers/Bundle/Application/9C545B3F-9118-4277-A0F9-8597B482E647/twtrapp.app> (loaded)' with name 'tWO-9r-MX5-view-III-Yf-OKq'' *** First throw call stack: ( 0 CoreFoundation 0x00000001052e4d85 __exceptionPreprocess + 165 1 libobjc.A.dylib 0x0000000107e4fdeb objc_exception_throw + 48 2 CoreFoundation 0x00000001052e4cbd +[NSException raise:format:] + 205 3 UIKit 0x0000000106c9bc89 -[UINib instantiateWithOwner:options:] + 499 4 UIKit 0x0000000106a6d8d6 -[UIViewController _loadViewFromNibNamed:bundle:] + 381 5 UIKit 0x0000000106a6e202 -[UIViewController loadView] + 178 6 UIKit 0x0000000106cc12b8 -[UITableViewController loadView] + 84 7 UIKit 0x0000000106a6e560 -[UIViewController loadViewIfRequired] + 138 8 UIKit 0x0000000106a6ecd3 -[UIViewController view] + 27 9 UIKit 0x0000000106cc0f47 -[UITableViewController tableView] + 30 10 twtrapp 0x000000010490a521 -[TWTRTimelineViewController commonInitWithDataSource:] + 132 11 twtrapp 0x000000010490a68c -[TWTRTimelineViewController initWithCoder:] + 66 12 twtrapp 0x00000001048c1070 _TFC7twtrapp14ViewControllercfT5coderCSo7NSCoder_GSqS0__ + 64 13 twtrapp 0x00000001048c110d _TToFC7twtrapp14ViewControllercfT5coderCSo7NSCoder_GSqS0__ + 45 14 UIKit 0x0000000106c9d095 -[UIClassSwapper initWithCoder:] + 241 15 UIKit 0x0000000106e74e8a UINibDecoderDecodeObjectForValue + 705 16 UIKit 0x0000000106e74bc0 -[UINibDecoder decodeObjectForKey:] + 278 17 UIKit 0x0000000106c9cd6b -[UIRuntimeConnection initWithCoder:] + 180 18 UIKit 0x0000000106e74e8a UINibDecoderDecodeObjectForValue + 705 19 UIKit 0x0000000106e7504b UINibDecoderDecodeObjectForValue + 1154 20 UIKit 0x0000000106e74bc0 -[UINibDecoder decodeObjectForKey:] + 278 21 UIKit 0x0000000106c9bf7d -[UINib instantiateWithOwner:options:] + 1255 22 UIKit 0x0000000107016314 -[UIStoryboard instantiateViewControllerWithIdentifier:] + 181 23 UIKit 0x0000000107016467 -[UIStoryboard instantiateInitialViewController] + 69 24 UIKit 0x00000001068d389f -[UIApplication _loadMainStoryboardFileNamed:bundle:] + 94 25 UIKit 0x00000001068d3bcf -[UIApplication _loadMainInterfaceFile] + 260 26 UIKit 0x00000001068d23ef -[UIApplication _runWithMainScene:transitionContext:completion:] + 1392 27 UIKit 0x00000001068cf714 -[UIApplication workspaceDidEndTransaction:] + 188 28 FrontBoardServices 0x000000010a8618c8 __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 24 29 FrontBoardServices 0x000000010a861741 -[FBSSerialQueue _performNext] + 178 30 FrontBoardServices 0x000000010a861aca -[FBSSerialQueue _performNextFromRunLoopSource] + 45 31 CoreFoundation 0x000000010520a301 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17 32 CoreFoundation 0x000000010520022c __CFRunLoopDoSources0 + 556 33 CoreFoundation 0x00000001051ff6e3 __CFRunLoopRun + 867 34 CoreFoundation 0x00000001051ff0f8 CFRunLoopRunSpecific + 488 35 UIKit 0x00000001068cef21 -[UIApplication _run] + 402 36 UIKit 0x00000001068d3f09 UIApplicationMain + 171 37 twtrapp 0x00000001048c1b52 main + 114 38 libdyld.dylib 0x000000010894c92d start + 1 39 ??? 0x0000000000000001 0x0 + 1 ) libc++abi.dylib: terminating with uncaught exception of type NSException (lldb)


#2

I get an identical errors from all fabric viewcontrollers


#3

I’m getting a similar error when using TWTRTimelineViewController following the tutorial here https://docs.fabric.io/ios/twitter/show-timelines.html


#4

Same here


#5

Thanks for the reports of this and we’re looking into why this is happening. Can you please also share if your using the Twitter Timeline View controller as the root controller in your app when loading from a storyboard?


#6

After upgrading to TwitterKit 2.0.0, then 2.0.1, I’m also getting the same NSInternalInconsistencyException error when trying to load a TWTRTimelineViewController via storyboard segue. The same code worked for previous versions of TwitterKit. I have tested my segue and storyboard by replacing the TWTRTimelineViewController with a generic UITableViewController and it worked fine, so I am reasonably sure there is an issue with the TWTRTimelineViewController. Maybe the TwitterKit framework is missing a resource?

BTW, I am not using TWTRTimelineViewController as the root view controller.


#7

I tested both, as a root view controller and not , the problem still exist.


#8

Not in my app


#9

Thanks all, much appreciated and we’ve found the root issue and are prepping a fix for this. Apologies for the bug.


#10

Can you share the snippet of code that is causing the error?


#11

We just released Twitter Kit 2.0.2 which fixes the NIB error people were seeing related to TimelineViewControllers. Check it out and let us know how it goes!


#12

Sorry, was out this afternoon. Good new though - fixed by 2.0.2 :slight_smile: (Assuming you no longer need the snippet.)


#13

@zim44 :slight_smile: Snippets no longer needed.


#14

Yeah, problem solved with 2.0.2 version. Thanks guys! :slight_smile: