When I download the sample folder, do npm install and pod install, I will get a build succeeded, but then there is an error in main.m file, which has the following line highlighted:
return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
and the error message is
thread 1:signal SIGABRT and
Oct 6 22:53:29 NHSample[84126] <Error>: CGContextSaveGState: invalid context 0x0. If you want to see the backtrace, please set CG_CONTEXT_SHOW_BACKTRACE environmental variable.
Oct 6 22:53:29 NHSample[84126] <Error>: CGContextTranslateCTM: invalid context 0x0. If you want to see the backtrace, please set CG_CONTEXT_SHOW_BACKTRACE environmental variable.
Oct 6 22:53:29 NHSample[84126] <Error>: CGContextRestoreGState: invalid context 0x0. If you want to see the backtrace, please set CG_CONTEXT_SHOW_BACKTRACE environmental variable.
2015-10-06 22:53:29.209 NHSample[84126:4665734] *** Terminating app due to uncaught exception 'InvalidOperationException', reason: 'fbauth2 is missing from your Info.plist under LSApplicationQueriesSchemes and is required for iOS 9.0'
*** First throw call stack:
(
0 CoreFoundation 0x000000010b632f65 __exceptionPreprocess + 165
1 libobjc.A.dylib 0x000000010ac29deb objc_exception_throw + 48
2 NHSample 0x0000000107c4ef73 +[FBSDKInternalUtility checkRegisteredCanOpenURLScheme:] + 499
3 NHSample 0x0000000107c89d08 +[FBSDKAppInviteDialog initialize] + 88
4 libobjc.A.dylib 0x000000010ac2abff _class_initialize + 679
5 libobjc.A.dylib 0x000000010ac30d23 lookUpImpOrForward + 176
6 libobjc.A.dylib 0x000000010ac3f8bb objc_msgSend + 187
7 NHSample 0x0000000107db0266 -[RCTFBSDKAppInviteDialog init] + 134
8 NHSample 0x0000000107ccf447 -[RCTBatchedBridge registerModules] + 2711
9 NHSample 0x0000000107cce571 -[RCTBatchedBridge initWithParentBridge:] + 1633
10 NHSample 0x0000000107cdbd87 -[RCTBridge setUp] + 375
11 NHSample 0x0000000107cdb469 -[RCTBridge initWithBundleURL:moduleProvider:launchOptions:] + 713
12 NHSample 0x0000000107d3bdf8 -[RCTRootView initWithBundleURL:moduleName:launchOptions:] + 152
13 NHSample 0x0000000107bfad5d -[AppDelegate application:didFinishLaunchingWithOptions:] + 189
14 UIKit 0x00000001097a94ca -[UIApplication _handleDelegateCallbacksWithOptions:isSuspended:restoreState:] + 272
15 UIKit 0x00000001097aa670 -[UIApplication _callInitializationDelegatesForMainScene:transitionContext:] + 3415
16 UIKit 0x00000001097b0e15 -[UIApplication _runWithMainScene:transitionContext:completion:] + 1755
17 UIKit 0x00000001097adff0 -[UIApplication workspaceDidEndTransaction:] + 188
18 FrontBoardServices 0x000000010e2217ac -[FBSSerialQueue _performNext] + 192
19 FrontBoardServices 0x000000010e221b1a -[FBSSerialQueue _performNextFromRunLoopSource] + 45
20 CoreFoundation 0x000000010b55f0a1 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
21 CoreFoundation 0x000000010b554fcc __CFRunLoopDoSources0 + 556
22 CoreFoundation 0x000000010b554483 __CFRunLoopRun + 867
23 CoreFoundation 0x000000010b553e98 CFRunLoopRunSpecific + 488
24 UIKit 0x00000001097ad98d -[UIApplication _run] + 402
25 UIKit 0x00000001097b2676 UIApplicationMain + 171
26 NHSample 0x0000000107bfb23f main + 111
27 libdyld.dylib 0x000000010c84c92d start + 1
28 ??? 0x0000000000000001 0x0 + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
Having the same problem.
here too

https://developers.facebook.com/docs/ios/ios9
@virenenskully thanks so much! that's it. But I am having the can't find SDK file error like this:
RTConvert.h file not found
I think it's because the search path to find the sdk is wrong, do you know how to solve it? Thanks!
Hi @kevinzzz007 , do you still have the issue after confirming search path in Xcode ?
@dzhuowen thank you so much for helping out with these issues! So when I had this issue, I used CocoaPod to install FBSDK for the example app, but now that I am using another way to install FBSDK, my code is working great with this repo, so I didn't go back to check this example app, but I imagine when I change the search path, everything should be good.
Closing this issue.
Hi , I am trying to integrate Fb SDK , and i tried implementing Fb login Button , it is visible on my page but when I click on it, I am getting this error :

Please help me solve it