iOS Twitter login crash when click loginButton without Use fabric

ios
login
twitterkit

#1

SDK 3.0.0, iOS Version:9.3.2, Xcode Version 8.3.2

the Code is there

``` AppDelegate - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { BOOL flag = [[FBSDKApplicationDelegate sharedInstance] application:application didFinishLaunchingWithOptions:launchOptions]; [[Twitter sharedInstance] startWithConsumerKey:@"mykey" consumerSecret:@"mySecret"]; } - (BOOL)application:(UIApplication *)app openURL:(NSURL *)url options:(NSDictionary *)options { if ([[Twitter sharedInstance] application:app openURL:url options:options]) { return YES; } } ```

LoginViewController

``` - (void)viewDidLoad { [super viewDidLoad]; TWTRLogInButton *logInButton = [TWTRLogInButton buttonWithLogInCompletion:^(TWTRSession *session, NSError *error) { if (session) { NSLog(@"======signed in as %@", [session userName]); } else { NSLog(@"======error: %@", [error localizedDescription]); } }]; logInButton.center = self.view.center; [self.view addSubview:logInButton]; } ```

And the infoPlist are ther

``` LSApplicationQueriesSchemes twitter twitterauth CFBundleURLTypes CFBundleURLSchemes twitterkit-mykey ```

And The Crash Log is

``` * thread #1, queue = 'com.apple.main-thread', stop reason = breakpoint 1.2 frame #0: 0x0000000183057f48 libobjc.A.dylib`objc_exception_throw frame #1: 0x00000001839f2cf8 CoreFoundation`+[NSException raise:format:] + 120 frame #2: 0x000000010039e044 FastLemonFree Accelerator`-[Twitter logInWithViewController:completion:] + 668 * frame #3: 0x0000000100244428 FastLemonFree Accelerator`-[XFollowUsVC TwitterFollowUsClick:] at XFollowUsVC.m:88 [opt] frame #4: 0x0000000188b88be8 UIKit`-[UIApplication sendAction:to:from:forEvent:] + 100 frame #5: 0x0000000188b88b64 UIKit`-[UIControl sendAction:to:forEvent:] + 80 frame #6: 0x0000000188b70870 UIKit`-[UIControl _sendActionsForEvents:withEvent:] + 436 frame #7: 0x0000000188b88454 UIKit`-[UIControl touchesEnded:withEvent:] + 572 frame #8: 0x0000000188b88084 UIKit`-[UIWindow _sendTouchesForEvent:] + 804 frame #9: 0x0000000188b80c20 UIKit`-[UIWindow sendEvent:] + 784 frame #10: 0x0000000188b5104c UIKit`-[UIApplication sendEvent:] + 248 frame #11: 0x0000000188b4f628 UIKit`_UIApplicationHandleEventQueue + 6568 frame #12: 0x00000001839a909c CoreFoundation`__CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 24 frame #13: 0x00000001839a8b30 CoreFoundation`__CFRunLoopDoSources0 + 540 frame #14: 0x00000001839a6830 CoreFoundation`__CFRunLoopRun + 724 frame #15: 0x00000001838d0c50 CoreFoundation`CFRunLoopRunSpecific + 384 frame #16: 0x00000001851b8088 GraphicsServices`GSEventRunModal + 180 frame #17: 0x0000000188bba088 UIKit`UIApplicationMain + 204 frame #18: 0x00000001001a2478 FastLemonFree Accelerator`main at main.m:6 [opt] frame #19: 0x000000018346e8b8 libdyld.dylib`start + 4 ```

From the Log In with Twitter document we can't found How to Fix, please help me


#2

Can you share what the exception said, or what your error log printed?