Error to integrate flutter with firebase

636 views
Skip to first unread message

jav...@gmail.com

unread,
Oct 16, 2017, 11:40:13 AM10/16/17
to Flutter Dev
Hi All, 

I am trying to integrate flutter with firebase to my iOS app but I can not. I am using Xcode 9 with CocoaPods 1.3.1, flutter alpha, IntelliJ IDEA 2017.2.5 CE. On IntelliJ seems fine but on Xcode shows very rare error on main.m file. 

----------main.m----------------

#import <UIKit/UIKit.h>

#import <Flutter/Flutter.h>

#import "AppDelegate.h"


int main(int argc, char * argv[]) {

  @autoreleasepool {

    return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));  Thread 1: signal SIGABRT

  }

}

-------------------------------------------------------------

----------Debug message---------

017-10-15 16:46:28.292654-0500 Runner[1683:44594] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Could not find a storyboard named 'Main' in bundle NSBundle </Users/javidep/Library/Developer/CoreSimulator/Devices/643BC416-5E74-4719-8E71-BBB6380E4FE0/data/Containers/Bundle/Application/02BF1E16-EAB3-481B-B36A-D60403A01FFE/Runner.app> (loaded)'

*** First throw call stack:

(

0   CoreFoundation                      0x000000010b4111cb __exceptionPreprocess + 171

1   libobjc.A.dylib                     0x000000010ad73f41 objc_exception_throw + 48

2   UIKit                               0x000000010cf96b62 +[UIStoryboard storyboardWithName:bundle:] + 672

3   UIKit                               0x000000010c68e502 -[UIApplication _loadMainStoryboardFileNamed:bundle:] + 76

4   UIKit                               0x000000010c68e9dd -[UIApplication _loadMainInterfaceFile] + 228

5   UIKit                               0x000000010c68d112 -[UIApplication _runWithMainScene:transitionContext:completion:] + 1413

6   UIKit                               0x000000010ca48c6c __111-[__UICanvasLifecycleMonitor_Compatability _scheduleFirstCommitForScene:transition:firstActivation:completion:]_block_invoke + 924

7   UIKit                               0x000000010ce163ef +[_UICanvas _enqueuePostSettingUpdateTransactionBlock:] + 153

8   UIKit                               0x000000010ca48865 -[__UICanvasLifecycleMonitor_Compatability _scheduleFirstCommitForScene:transition:firstActivation:completion:] + 249

9   UIKit                               0x000000010ca490c3 -[__UICanvasLifecycleMonitor_Compatability activateEventsOnly:withContext:completion:] + 668

10  UIKit                               0x000000010d3a6c11 __82-[_UIApplicationCanvas _transitionLifecycleStateWithTransitionContext:completion:]_block_invoke + 262

11  UIKit                               0x000000010d3a6aca -[_UIApplicationCanvas _transitionLifecycleStateWithTransitionContext:completion:] + 444

12  UIKit                               0x000000010d094b9c __125-[_UICanvasLifecycleSettingsDiffAction performActionsForCanvas:withUpdatedScene:settingsDiff:fromSettings:transitionContext:]_block_invoke + 420

13  UIKit                               0x000000010d28fc3e _performActionsWithDelayForTransitionContext + 100

14  UIKit                               0x000000010d094998 -[_UICanvasLifecycleSettingsDiffAction performActionsForCanvas:withUpdatedScene:settingsDiff:fromSettings:transitionContext:] + 231

15  UIKit                               0x000000010ce15a4c -[_UICanvas scene:didUpdateWithDiff:transitionContext:completion:] + 392

16  UIKit                               0x000000010c68bac6 -[UIApplication workspace:didCreateScene:withTransitionContext:completion:] + 523

17  UIKit                               0x000000010cc54523 -[UIApplicationSceneClientAgent scene:didInitializeWithEvent:completion:] + 369

18  FrontBoardServices                  0x000000011199b158 -[FBSSceneImpl _didCreateWithTransitionContext:completion:] + 338

19  FrontBoardServices                  0x00000001119a3c4d __56-[FBSWorkspace client:handleCreateScene:withCompletion:]_block_invoke_2 + 235

20  libdispatch.dylib                   0x000000010c09343c _dispatch_client_callout + 8

21  libdispatch.dylib                   0x000000010c098af4 _dispatch_block_invoke_direct + 592

22  FrontBoardServices                  0x00000001119cf672 __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 24

23  FrontBoardServices                  0x00000001119cf328 -[FBSSerialQueue _performNext] + 464

24  FrontBoardServices                  0x00000001119cf897 -[FBSSerialQueue _performNextFromRunLoopSource] + 45

25  CoreFoundation                      0x000000010b3b42b1 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17

26  CoreFoundation                      0x000000010b453d31 __CFRunLoopDoSource0 + 81

27  CoreFoundation                      0x000000010b398c19 __CFRunLoopDoSources0 + 185

28  CoreFoundation                      0x000000010b3981ff __CFRunLoopRun + 1279

29  CoreFoundation                      0x000000010b397a89 CFRunLoopRunSpecific + 409

30  GraphicsServices                    0x000000010f3cb9c6 GSEventRunModal + 62

31  UIKit                               0x000000010c68ed30 UIApplicationMain + 159

32  Runner                              0x000000010747c57f main + 111

33  libdyld.dylib                       0x000000010c10fd81 start + 1

34  ???                                 0x0000000000000001 0x0 + 1

)

libc++abi.dylib: terminating with uncaught exception of type NSException

(lldb) 

--------------------------




Thanks in advance for help.

Hani Hashemi

unread,
Oct 10, 2018, 5:49:36 AM10/10/18
to Flutter Dev
Reply all
Reply to author
Forward
0 new messages