Firebase not configured when it clearly is [duplicate] - ios

This question already has answers here:
Xcode Console saying Firebase is not configured
(4 answers)
Closed 5 years ago.
I don't know why this isn't working my Firebase is configured.
Here is a Screenshot of my AppDelegate.swift file. Here is my console log:
2017-05-29 17:52:53.141 Study M8[31592] <Error> [Firebase/Core][I-COR000003] The default Firebase app has not yet been configured. Add [FIRApp configure] to your application initialization. Read more: https://firebase.google.com/docs/ios/setup#initialize_firebase_in_your_app.
2017-05-29 17:52:53.184 Study M8[31592:1051241] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'The default FIRApp instance must be configured before the default FIRAuthinstance can be initialized. One way to ensure that is to call `[FIRApp configure];` is called in `application:didFinishLaunchingWithOptions:`.'
*** First throw call stack:
(
0 CoreFoundation 0x000000010a445b0b __exceptionPreprocess + 171
1 libobjc.A.dylib 0x0000000109eaa141 objc_exception_throw + 48
2 CoreFoundation 0x000000010a4ae625 +[NSException raise:format:] + 197
3 Study M8 0x0000000108550a84 +[FIRAuth auth] + 88
4 Study M8 0x00000001084e7a77 _TFC8Study_M810MessagesVCcfT5coderCSo7NSCoder_GSqS0__ + 279
5 Study M8 0x00000001084e7bcd _TToFC8Study_M810MessagesVCcfT5coderCSo7NSCoder_GSqS0__ + 45
6 UIKit 0x000000010ac70f54 -[UIClassSwapper initWithCoder:] + 246
7 UIKit 0x000000010ae614af UINibDecoderDecodeObjectForValue + 693
8 UIKit 0x000000010ae6164d UINibDecoderDecodeObjectForValue + 1107
9 UIKit 0x000000010ae611ef -[UINibDecoder decodeObjectForKey:] + 89
10 UIKit 0x000000010aa07267 -[UIViewController initWithCoder:] + 1421
11 UIKit 0x000000010aa5cee5 -[UITabBarController initWithCoder:] + 65
12 UIKit 0x000000010ae614af UINibDecoderDecodeObjectForValue + 693
13 UIKit 0x000000010ae611ef -[UINibDecoder decodeObjectForKey:] + 89
14 UIKit 0x000000010ac70c20 -[UIRuntimeConnection initWithCoder:] + 178
15 UIKit 0x000000010ae614af UINibDecoderDecodeObjectForValue + 693
16 UIKit 0x000000010ae6164d UINibDecoderDecodeObjectForValue + 1107
17 UIKit 0x000000010ae611ef -[UINibDecoder decodeObjectForKey:] + 89
18 UIKit 0x000000010ac6fe1d -[UINib instantiateWithOwner:options:] + 1262
19 UIKit 0x000000010b02882f -[UIStoryboard instantiateViewControllerWithIdentifier:] + 181
20 UIKit 0x000000010a8688d1 -[UIApplication _loadMainStoryboardFileNamed:bundle:] + 108
21 UIKit 0x000000010a868db3 -[UIApplication _loadMainInterfaceFile] + 260
22 UIKit 0x000000010a867456 -[UIApplication _runWithMainScene:transitionContext:completion:] + 1407
23 UIKit 0x000000010a864793 -[UIApplication workspaceDidEndTransaction:] + 182
24 FrontBoardServices 0x000000010d3205f6 __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 24
25 FrontBoardServices 0x000000010d32046d -[FBSSerialQueue _performNext] + 186
26 FrontBoardServices 0x000000010d3207f6 -[FBSSerialQueue _performNextFromRunLoopSource] + 45
27 CoreFoundation 0x000000010a3ebc01 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
28 CoreFoundation 0x000000010a3d10cf __CFRunLoopDoSources0 + 527
29 CoreFoundation 0x000000010a3d05ff __CFRunLoopRun + 911
30 CoreFoundation 0x000000010a3d0016 CFRunLoopRunSpecific + 406
31 UIKit 0x000000010a86302f -[UIApplication _run] + 468
32 UIKit 0x000000010a8690d4 UIApplicationMain + 159
33 Study M8 0x00000001084e8997 main + 55
34 libdyld.dylib 0x000000010ca5665d start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
(lldb)
I have tried all afternoon to get this working. Please help.

Looking in your stack trace, I get the impression you might be accessing the Firebase.Auth class too soon — maybe in the initWithCoder of your VC? Or as a VC property initial value? — which could be before your AppDelegate runs (and initializes Firebase).
As such, try moving your Auth.auth() call to the viewDidLoad method instead to see if it makes a difference at all.

Related

Simulator of Xcode Projects is blank [duplicate]

This question already has answers here:
Xcode - How to fix 'NSUnknownKeyException', reason: … this class is not key value coding-compliant for the key X" error?
(79 answers)
Closed 4 years ago.
as mentioned above, during one of the courses I am taking, when I run my project, the simulator opens the app, which appears to be blank.
I already reviewed many posts from people who had the same problem of mine and I tried unsuccessfully their solutions.
The solutions I reviewed are:
- Erase all content of the simulator
- Changed the type of simulator (from iPhone 8 plus to iPhone 7 plus)
- Making sure I had the right settings on the Info.plist
- Build different times the program from scratch as a new one.
And probably others I don't even remember.
I attach my files, as well as the page that opens right when my Simulator launches the application. ( the last screenshot )
Here is the error log
2018-06-18 22:52:29.685489+0200 Bullseye[2247:47563] *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<Bullseye.ViewController 0x7fc0df70bf90> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key numValue.'
*** First throw call stack:
(
0 CoreFoundation 0x000000010625e1e6 __exceptionPreprocess + 294
1 libobjc.A.dylib 0x0000000102665031 objc_exception_throw + 48
2 CoreFoundation 0x000000010625e0b9 -[NSException raise] + 9
3 Foundation 0x0000000102086b47 -[NSObject(NSKeyValueCoding) setValue:forKey:] + 292
4 UIKit 0x000000010309cec0 -[UIViewController setValue:forKey:] + 87
5 UIKit 0x000000010338ae8a -[UIRuntimeOutletConnection connect] + 109
6 CoreFoundation 0x0000000106200e8d -[NSArray makeObjectsPerformSelector:] + 317
7 UIKit 0x0000000103389834 -[UINib instantiateWithOwner:options:] + 1856
8 UIKit 0x00000001030a40d7 -[UIViewController _loadViewFromNibNamed:bundle:] + 383
9 UIKit 0x00000001030a4a04 -[UIViewController loadView] + 177
10 UIKit 0x00000001030a4d21 -[UIViewController loadViewIfRequired] + 175
11 UIKit 0x00000001030a5574 -[UIViewController view] + 27
12 UIKit 0x0000000102f73123 -[UIWindow addRootViewControllerViewIfPossible] + 122
13 UIKit 0x0000000102f73834 -[UIWindow _setHidden:forced:] + 294
14 UIKit 0x0000000102f865cc -[UIWindow makeKeyAndVisible] + 42
15 UIKit 0x0000000102efa3da -[UIApplication _callInitializationDelegatesForMainScene:transitionContext:] + 4739
16 UIKit 0x0000000102eff5cb -[UIApplication _runWithMainScene:transitionContext:completion:] + 1677
17 UIKit 0x00000001032c1f7e __111-[__UICanvasLifecycleMonitor_Compatability _scheduleFirstCommitForScene:transition:firstActivation:completion:]_block_invoke + 866
18 UIKit 0x0000000103694a39 +[_UICanvas _enqueuePostSettingUpdateTransactionBlock:] + 153
19 UIKit 0x00000001032c1bba -[__UICanvasLifecycleMonitor_Compatability _scheduleFirstCommitForScene:transition:firstActivation:completion:] + 236
20 UIKit 0x00000001032c23db -[__UICanvasLifecycleMonitor_Compatability activateEventsOnly:withContext:completion:] + 675
21 UIKit 0x0000000103c33614 __82-[_UIApplicationCanvas _transitionLifecycleStateWithTransitionContext:completion:]_block_invoke + 299
22 UIKit 0x0000000103c334ae -[_UIApplicationCanvas _transitionLifecycleStateWithTransitionContext:completion:] + 433
23 UIKit 0x000000010391775d __125-[_UICanvasLifecycleSettingsDiffAction performActionsForCanvas:withUpdatedScene:settingsDiff:fromSettings:transitionContext:]_block_invoke + 221
24 UIKit 0x0000000103b124b7 _performActionsWithDelayForTransitionContext + 100
25 UIKit 0x0000000103917627 -[_UICanvasLifecycleSettingsDiffAction performActionsForCanvas:withUpdatedScene:settingsDiff:fromSettings:transitionContext:] + 223
26 UIKit 0x00000001036940e0 -[_UICanvas scene:didUpdateWithDiff:transitionContext:completion:] + 392
27 UIKit 0x0000000102efdeac -[UIApplication workspace:didCreateScene:withTransitionContext:completion:] + 515
28 UIKit 0x00000001034d0bcb -[UIApplicationSceneClientAgent scene:didInitializeWithEvent:completion:] + 361
29 FrontBoardServices 0x000000010828d2f3 -[FBSSceneImpl _didCreateWithTransitionContext:completion:] + 331
30 FrontBoardServices 0x0000000108295cfa __56-[FBSWorkspace client:handleCreateScene:withCompletion:]_block_invoke_2 + 225
31 libdispatch.dylib 0x00000001073c27ec _dispatch_client_callout + 8
32 libdispatch.dylib 0x00000001073c7db8 _dispatch_block_invoke_direct + 592
33 FrontBoardServices 0x00000001082c1470 __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 24
34 FrontBoardServices 0x00000001082c112e -[FBSSerialQueue _performNext] + 439
35 FrontBoardServices 0x00000001082c168e -[FBSSerialQueue _performNextFromRunLoopSource] + 45
36 CoreFoundation 0x0000000106200bb1 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
37 CoreFoundation 0x00000001061e54af __CFRunLoopDoSources0 + 271
38 CoreFoundation 0x00000001061e4a6f __CFRunLoopRun + 1263
39 CoreFoundation 0x00000001061e430b CFRunLoopRunSpecific + 635
40 GraphicsServices 0x0000000108b56a73 GSEventRunModal + 62
41 UIKit 0x0000000102f01057 UIApplicationMain + 159
42 Bullseye 0x0000000101d5bad7 main + 55
43 libdyld.dylib 0x000000010743f955 start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
(lldb)
This might be because you have a bad connection in your outlets. Review them. If you have them changed in the view controller, you still need to update them in the storyboard.
the simulator is blank because your app is crashing. Check your storyboard outlet connections to make ensure they are all connected. Open the connections inspector and look out for any broken connections. If your connections are right the circles in your view controller should be filled (see image below)

Xcode Console saying Firebase is not configured

I don't know why this isn't working my Firebase is configured.
Here is a Screenshot of my AppDelegate.swift file. Here is my console log:
2017-05-29 17:52:53.141 Study M8[31592] <Error> [Firebase/Core][I-COR000003] The default Firebase app has not yet been configured. Add [FIRApp configure] to your application initialization. Read more: https://firebase.google.com/docs/ios/setup#initialize_firebase_in_your_app.
2017-05-29 17:52:53.184 Study M8[31592:1051241] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'The default FIRApp instance must be configured before the default FIRAuthinstance can be initialized. One way to ensure that is to call `[FIRApp configure];` is called in `application:didFinishLaunchingWithOptions:`.'
*** First throw call stack:
(
0 CoreFoundation 0x000000010a445b0b __exceptionPreprocess + 171
1 libobjc.A.dylib 0x0000000109eaa141 objc_exception_throw + 48
2 CoreFoundation 0x000000010a4ae625 +[NSException raise:format:] + 197
3 Study M8 0x0000000108550a84 +[FIRAuth auth] + 88
4 Study M8 0x00000001084e7a77 _TFC8Study_M810MessagesVCcfT5coderCSo7NSCoder_GSqS0__ + 279
5 Study M8 0x00000001084e7bcd _TToFC8Study_M810MessagesVCcfT5coderCSo7NSCoder_GSqS0__ + 45
6 UIKit 0x000000010ac70f54 -[UIClassSwapper initWithCoder:] + 246
7 UIKit 0x000000010ae614af UINibDecoderDecodeObjectForValue + 693
8 UIKit 0x000000010ae6164d UINibDecoderDecodeObjectForValue + 1107
9 UIKit 0x000000010ae611ef -[UINibDecoder decodeObjectForKey:] + 89
10 UIKit 0x000000010aa07267 -[UIViewController initWithCoder:] + 1421
11 UIKit 0x000000010aa5cee5 -[UITabBarController initWithCoder:] + 65
12 UIKit 0x000000010ae614af UINibDecoderDecodeObjectForValue + 693
13 UIKit 0x000000010ae611ef -[UINibDecoder decodeObjectForKey:] + 89
14 UIKit 0x000000010ac70c20 -[UIRuntimeConnection initWithCoder:] + 178
15 UIKit 0x000000010ae614af UINibDecoderDecodeObjectForValue + 693
16 UIKit 0x000000010ae6164d UINibDecoderDecodeObjectForValue + 1107
17 UIKit 0x000000010ae611ef -[UINibDecoder decodeObjectForKey:] + 89
18 UIKit 0x000000010ac6fe1d -[UINib instantiateWithOwner:options:] + 1262
19 UIKit 0x000000010b02882f -[UIStoryboard instantiateViewControllerWithIdentifier:] + 181
20 UIKit 0x000000010a8688d1 -[UIApplication _loadMainStoryboardFileNamed:bundle:] + 108
21 UIKit 0x000000010a868db3 -[UIApplication _loadMainInterfaceFile] + 260
22 UIKit 0x000000010a867456 -[UIApplication _runWithMainScene:transitionContext:completion:] + 1407
23 UIKit 0x000000010a864793 -[UIApplication workspaceDidEndTransaction:] + 182
24 FrontBoardServices 0x000000010d3205f6 __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 24
25 FrontBoardServices 0x000000010d32046d -[FBSSerialQueue _performNext] + 186
26 FrontBoardServices 0x000000010d3207f6 -[FBSSerialQueue _performNextFromRunLoopSource] + 45
27 CoreFoundation 0x000000010a3ebc01 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
28 CoreFoundation 0x000000010a3d10cf __CFRunLoopDoSources0 + 527
29 CoreFoundation 0x000000010a3d05ff __CFRunLoopRun + 911
30 CoreFoundation 0x000000010a3d0016 CFRunLoopRunSpecific + 406
31 UIKit 0x000000010a86302f -[UIApplication _run] + 468
32 UIKit 0x000000010a8690d4 UIApplicationMain + 159
33 Study M8 0x00000001084e8997 main + 55
34 libdyld.dylib 0x000000010ca5665d start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
(lldb)
If anyone has any idea what to do plz help.
Does GoogleService-Info.plist show up as checked for the build target in the Xcode Target Membership pane?
There was a problem with the plist file, after replacing it everything worked fine. Thank you to everyone who helped.
Did you add the .plist Firebase configuration file that you get from the Firebase website when configuring your app?
The solution is already shown in the error message. Please visit the read and follow the link below. Your problem will be solved.
Add firebase to your iOS project

Error with firebase Auth when starting ):

objc[4129]: Class PLBuildVersion is implemented in both /Applications/ Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/PrivateFrameworks/AssetsLibraryServices.framework/AssetsLibraryServices (0x11d1ec998) and /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/PrivateFrameworks/PhotoLibraryServices.framework/PhotoLibraryServices (0x11d00e880). One of the two will be used. Which one is undefined.
2017-01-31 20:28:24.620 Reminder[4129:144700] WARNING: Firebase Analytics App Delegate Proxy is disabled. To log deep link campaigns manually, call the methods in FIRAnalytics+AppDelegate.h.
2017-01-31 20:28:24.917 Reminder[4129:144700] *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<Reminder.LoginViewController 0x7fbeabd0a6f0> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key Password.'
*** First throw call stack:
(
0 CoreFoundation 0x000000010c196d4b __exceptionPreprocess + 171
1 libobjc.A.dylib 0x000000010bbf821e objc_exception_throw + 48
2 CoreFoundation 0x000000010c196c99 -[NSException raise] + 9
3 Foundation 0x000000010b7069df -[NSObject(NSKeyValueCoding) setValue:forKey:] + 291
4 UIKit 0x000000010c755293 -[UIViewController setValue:forKey:] + 88
5 UIKit 0x000000010c9c979e -[UIRuntimeOutletConnection connect] + 109
6 CoreFoundation 0x000000010c13b9e0 -[NSArray makeObjectsPerformSelector:] + 256
7 UIKit 0x000000010c9c8122 -[UINib instantiateWithOwner:options:] + 1867
8 UIKit 0x000000010c75b9c5 -[UIViewController _loadViewFromNibNamed:bundle:] + 386
9 UIKit 0x000000010c75c2e7 -[UIViewController loadView] + 177
10 UIKit 0x000000010c75c61c -[UIViewController loadViewIfRequired] + 201
11 UIKit 0x000000010c75ce70 -[UIViewController view] + 27
12 UIKit 0x000000010c6264b5 -[UIWindow addRootViewControllerViewIfPossible] + 71
13 UIKit 0x000000010c626c06 -[UIWindow _setHidden:forced:] + 293
14 UIKit 0x000000010c63a519 -[UIWindow makeKeyAndVisible] + 42
15 UIKit 0x000000010c5b2f8d -[UIApplication _callInitializationDelegatesForMainScene:transitionContext:] + 4818
16 UIKit 0x000000010c5b90ed -[UIApplication _runWithMainScene:transitionContext:completion:] + 1731
17 UIKit 0x000000010c5b626d -[UIApplication workspaceDidEndTransaction:] + 188
18 FrontBoardServices 0x0000000111bbc6cb __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 24
19 FrontBoardServices 0x0000000111bbc544 -[FBSSerialQueue _performNext] + 189
20 FrontBoardServices 0x0000000111bbc8cd -[FBSSerialQueue _performNextFromRunLoopSource] + 45
21 CoreFoundation 0x000000010c13b761 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
22 CoreFoundation 0x000000010c12098c __CFRunLoopDoSources0 + 556
23 CoreFoundation 0x000000010c11fe76 __CFRunLoopRun + 918
24 CoreFoundation 0x000000010c11f884 CFRunLoopRunSpecific + 420
25 UIKit 0x000000010c5b4aea -[UIApplication _run] + 434
26 UIKit 0x000000010c5bac68 UIApplicationMain + 159
27 Reminder 0x000000010a4a94bf main + 111
28 libdyld.dylib 0x000000010e86868d start + 1
29 ??? 0x0000000000000001 0x0 + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
(lldb)
Get this when starting the app when I goto a view with firebase auth enabled.
The Worst thing is even when I remove the firebase auth and just have blank view it won't work
Forgot to add the FIRApp.configure() into the App delegate

Error after running RoboVM iOS MapView on Emulator

**
When i am trying to run a MapView iOs With RoboVM IDE, the following error appears after aplication is started with no compilation errors, i have tryed updating xcode to latest version currently Version 7.1.1 (7B1005.
Thanks for your help.
**
2015-11-14 10:34:25.715 Main[2608:1185315] *** Terminating app due to uncaught exception 'NSInvalidUnarchiveOperationException', reason: 'Could not instantiate class named MKMapView'
*** First throw call stack:
(
0 CoreFoundation 0x0000000108ae2f45 __exceptionPreprocess + 165
1 libobjc.A.dylib 0x0000000108020deb objc_exception_throw + 48
2 CoreFoundation 0x0000000108ae2e7d +[NSException raise:format:] + 205
3 UIKit 0x0000000106b7d5b1 UINibDecoderDecodeObjectForValue + 312
4 UIKit 0x0000000106b7d470 -[UINibDecoder decodeObjectForKey:] + 278
5 UIKit 0x00000001069abfe1 -[UIRuntimeConnection initWithCoder:] + 180
6 UIKit 0x0000000106b7d73a UINibDecoderDecodeObjectForValue + 705
7 UIKit 0x0000000106b7d8fb UINibDecoderDecodeObjectForValue + 1154
8 UIKit 0x0000000106b7d470 -[UINibDecoder decodeObjectForKey:] + 278
9 UIKit 0x00000001069ab1f3 -[UINib instantiateWithOwner:options:] + 1255
10 UIKit 0x0000000106785c16 -[UIViewController _loadViewFromNibNamed:bundle:] + 381
11 UIKit 0x0000000106786542 -[UIViewController loadView] + 178
12 UIKit 0x00000001067868a0 -[UIViewController loadViewIfRequired] + 138
13 UIKit 0x0000000106787013 -[UIViewController view] + 27
14 UIKit 0x000000010666051c -[UIWindow addRootViewControllerViewIfPossible] + 61
15 UIKit 0x0000000106660c05 -[UIWindow _setHidden:forced:] + 282
16 UIKit 0x00000001066724a5 -[UIWindow makeKeyAndVisible] + 42
17 UIKit 0x00000001065ec396 -[UIApplication _callInitializationDelegatesForMainScene:transitionContext:] + 4131
18 UIKit 0x00000001065f29c3 -[UIApplication _runWithMainScene:transitionContext:completion:] + 1750
19 UIKit 0x00000001065efba3 -[UIApplication workspaceDidEndTransaction:] + 188
20 FrontBoardServices 0x00000001096ec784 -[FBSSerialQueue _performNext] + 192
21 FrontBoardServices 0x00000001096ecaf2 -[FBSSerialQueue _performNextFromRunLoopSource] + 45
22 CoreFoundation 0x0000000108a0f011 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
23 CoreFoundation 0x0000000108a04f3c __CFRunLoopDoSources0 + 556
24 CoreFoundation 0x0000000108a043f3 __CFRunLoopRun + 867
25 CoreFoundation 0x0000000108a03e08 CFRunLoopRunSpecific + 488
26 UIKit 0x00000001065ef4f5 -[UIApplication _run] + 402
27 UIKit 0x00000001065f430d UIApplicationMain + 171
28 Main 0x000000010361a260 [J]org.robovm.apple.uikit.UIApplication.main(ILorg/robovm/rt/bro/ptr/BytePtr$BytePtrPtr;Ljava/lang/String;Ljava/lang/String;)I + 195
29 Main 0x000000010361976b [J]org.robovm.apple.uikit.UIApplication.main([Ljava/lang/String;Ljava/lang/Class;Ljava/lang/Class;)V + 944
30 Main 0x0000000103618930 [j]org.robovm.apple.uikit.UIApplication.main([Ljava/lang/String;Ljava/lang/Class;Ljava/lang/Class;)V[clinit] + 68
31 Main 0x000000010314dad6 [J]com.datavox.deliver.Main.main([Ljava/lang/String;)V + 171
32 Main 0x00000001037c00ae _call0 + 142
33 Main 0x00000001037b52ac callVoidMethod + 104
34 Main 0x00000001037b7a86 rvmCallVoidClassMethodA + 277
35 Main 0x00000001037b7b5a rvmCallVoidClassMethod + 134
36 Main 0x00000001037afc5a rvmRun + 217
37 Main 0x00000001037a77f5 main + 285
38 libdyld.dylib 0x0000000107cc692d start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
Process finished with exit code 0
Ok. RoboVm team ansered my question. I just need to add the framework in robovm.xml config file.
<frameworks>
<framework>MapKit</framework>
</frameworks>

Moving Swift iOS app to support Apple TV as a new Target

Maybe somebody can help, I'm trying to move my app to facilitate a new target for the Apple TV.
I create the new Storyboard and linked everything the same way as it has been in the iOS application. When I'm trying to start the application I get the following exception, after the AppDelegate is executed (before it goes into the viewDidLoad of the initial controller.
Any ideas?
2015-09-19 12:24:44.629 App TV[46733:3797033] *** Terminating app due to uncaught exception 'CALayerInvalid', reason: 'layer <CATransformLayer: 0x7fc1e0d51fc0> is a part of cycle in its layer tree'
*** First throw call stack:
(
0 CoreFoundation 0x000000010e850105 __exceptionPreprocess + 165
1 libobjc.A.dylib 0x000000010f271deb objc_exception_throw + 48
2 CoreFoundation 0x000000010e85003d +[NSException raise:format:] + 205
3 QuartzCore 0x0000000111d2f74a _ZN2CA5Layer30ensure_transaction_recursivelyEPNS_11TransactionE + 102
4 QuartzCore 0x0000000111d2f795 _ZN2CA5Layer30ensure_transaction_recursivelyEPNS_11TransactionE + 177
5 QuartzCore 0x0000000111d2f795 _ZN2CA5Layer30ensure_transaction_recursivelyEPNS_11TransactionE + 177
6 QuartzCore 0x0000000111d2f795 _ZN2CA5Layer30ensure_transaction_recursivelyEPNS_11TransactionE + 177
7 QuartzCore 0x0000000111d37439 _ZN2CA5Layer15insert_sublayerEPNS_11TransactionEP7CALayerm + 389
8 QuartzCore 0x0000000111d3782a -[CALayer addSublayer:] + 193
9 UIKit 0x000000010d2ce424 -[UIView(Internal) _addSubview:positioned:relativeTo:] + 1512
10 UIKit 0x000000010d5b1b56 -[UIButton initWithCoder:] + 1424
11 UIKit 0x000000010d79dd62 UINibDecoderDecodeObjectForValue + 705
12 UIKit 0x000000010d79da98 -[UINibDecoder decodeObjectForKey:] + 278
13 UIKit 0x000000010d5d1315 -[UIRuntimeConnection initWithCoder:] + 134
14 UIKit 0x000000010d5d1a77 -[UIRuntimeEventConnection initWithCoder:] + 60
15 UIKit 0x000000010d79dd62 UINibDecoderDecodeObjectForValue + 705
16 UIKit 0x000000010d79df23 UINibDecoderDecodeObjectForValue + 1154
17 UIKit 0x000000010d79da98 -[UINibDecoder decodeObjectForKey:] + 278
18 UIKit 0x000000010d5d0555 -[UINib instantiateWithOwner:options:] + 1255
19 UIKit 0x000000010d3ad7f2 -[UIViewController _loadViewFromNibNamed:bundle:] + 381
20 UIKit 0x000000010d3ae11e -[UIViewController loadView] + 178
21 UIKit 0x000000010d3ae47d -[UIViewController loadViewIfRequired] + 139
22 UIKit 0x000000010d3aec7e -[UIViewController view] + 27
23 UIKit 0x000000010d289484 -[UIWindow addRootViewControllerViewIfPossible] + 61
24 UIKit 0x000000010d289b81 -[UIWindow _setHidden:forced:] + 302
25 UIKit 0x000000010d29b558 -[UIWindow makeKeyAndVisible] + 43
26 UIKit 0x000000010d216063 -[UIApplication _callInitializationDelegatesForMainScene:transitionContext:] + 4131
27 UIKit 0x000000010d21c5a8 -[UIApplication _runWithMainScene:transitionContext:completion:] + 1755
28 UIKit 0x000000010d219783 -[UIApplication workspaceDidEndTransaction:] + 188
29 FrontBoardServices 0x000000011097b7ac -[FBSSerialQueue _performNext] + 192
30 FrontBoardServices 0x000000011097bb1a -[FBSSerialQueue _performNextFromRunLoopSource] + 45
31 CoreFoundation 0x000000010e77c1b1 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
32 CoreFoundation 0x000000010e7720dc __CFRunLoopDoSources0 + 556
33 CoreFoundation 0x000000010e771593 __CFRunLoopRun + 867
34 CoreFoundation 0x000000010e770fa8 CFRunLoopRunSpecific + 488
35 UIKit 0x000000010d2190d5 -[UIApplication _run] + 402
36 UIKit 0x000000010d21de09 UIApplicationMain + 171
37 App TV 0x000000010d0b8fdd main + 109
38 libdyld.dylib 0x00000001149699e9 start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
Funny thing happening, apparently the new Apple TV (4th Gen / tvOS v9.0) can't handle 'Word Wrap' on a button, after setting it to 'Truncate Middle' it starts up fine. Maybe an issue in the beta.
On Xcode 7.2 I had this same error caused by setting the Line Break on a button to 'Character Wrap'. Changing to 'Truncate Middle' stopped the crash.
You can be notified where the exception occurs by activating Exception Breakpoints, then you will be able to see what happens.
You can do so by going on the Breakpoint navigator on Xcode, then on the Plus button at the bottom left.

Resources