IOS App not getting to main view, hangs on launchscreen

I’m getting a new error, don’t know what I did to cause it, was working last week…
Can anyone point me in the right direction to sort this out?

I’m using Xcode 7.1, building an IOS 9.1 app for an iPhone 6.

The two errors it throws are:

Xcode/Pods/SparkSetup/Classes/User/SparkSetupMainController.m:34:17: Method override for the designated initializer of the superclass ‘-initWithNibName:bundle:’ not found

Xcode/Pods/SparkSetup/Classes/User/SparkSetupMainController.m:34:17: Method override for the designated initializer of the superclass ‘-initWithCoder:’ not found

Thanks for reporting, I’ll try to look into at this new issue this week.

Great, thx for looking into it.
Interestingly, I have been rebuilding the app from scratch, and have it 90% functional. The new version has the same errors, but does not hang. I have a huge batch of deprecated warnings, also, many of which I have not been able to resolve yet, hopefully they will go away as I get to spend more time on it.

Hi @jimbol

I wasn’t able to reproduce this crash/error - I updated to XCode 7.1/iOS 9.1.
The two errors you specified in original post are just harmless compiler warnings - you can ignore those. I need more information about the error/crash itself - which line/stack trace/further reproducing steps

thanks

OK, here is the log:

Does this give you what you’re looking for?

2015-11-04 00:44:45.362 Fish Alarm[8849:1315658] *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<ViewController 0x7fd851d24740> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key line.'

*** First throw call stack:
(
0 CoreFoundation 0x000000011129ff45 __exceptionPreprocess + 165
1 libobjc.A.dylib 0x0000000110d19deb objc_exception_throw + 48
2 CoreFoundation 0x000000011129fb89 -[NSException raise] + 9
3 Foundation 0x00000001108e6a6b -[NSObject(NSKeyValueCoding) setValue:forKey:] + 288
4 UIKit 0x000000010f52d04c -[UIViewController setValue:forKey:] + 88
5 UIKit 0x000000010f75aa71 -[UIRuntimeOutletConnection connect] + 109
6 CoreFoundation 0x00000001111e0a80 -[NSArray makeObjectsPerformSelector:] + 224
7 UIKit 0x000000010f759454 -[UINib instantiateWithOwner:options:] + 1864
8 UIKit 0x000000010f533c16 -[UIViewController _loadViewFromNibNamed:bundle:] + 381
9 UIKit 0x000000010f534542 -[UIViewController loadView] + 178
10 UIKit 0x000000010f5348a0 -[UIViewController loadViewIfRequired] + 138
11 UIKit 0x000000010f535013 -[UIViewController view] + 27
12 UIKit 0x000000010f40e51c -[UIWindow addRootViewControllerViewIfPossible] + 61
13 UIKit 0x000000010f40ec05 -[UIWindow _setHidden:forced:] + 282
14 UIKit 0x000000010f4204a5 -[UIWindow makeKeyAndVisible] + 42
15 UIKit 0x000000010f39a396 -[UIApplication _callInitializationDelegatesForMainScene:transitionContext:] + 4131
16 UIKit 0x000000010f3a09c3 -[UIApplication _runWithMainScene:transitionContext:completion:] + 1750
17 UIKit 0x000000010f39dba3 -[UIApplication workspaceDidEndTransaction:] + 188
18 FrontBoardServices 0x0000000113b93784 -[FBSSerialQueue _performNext] + 192
19 FrontBoardServices 0x0000000113b93af2 -[FBSSerialQueue _performNextFromRunLoopSource] + 45
20 CoreFoundation 0x00000001111cc011 CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION + 17
21 CoreFoundation 0x00000001111c1f3c __CFRunLoopDoSources0 + 556
22 CoreFoundation 0x00000001111c13f3 __CFRunLoopRun + 867
23 CoreFoundation 0x00000001111c0e08 CFRunLoopRunSpecific + 488
24 UIKit 0x000000010f39d4f5 -[UIApplication _run] + 402
25 UIKit 0x000000010f3a230d UIApplicationMain + 171
26 Fish Alarm 0x000000010ed06aef main + 111
27 libdyld.dylib 0x000000011234a92d start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
(lldb)

OK, this seems like an issue related to your project directly, not a Particle SDK issue.

My bet: you added a reference outlet/action from one of the elements in the viewcontroller storyboard called “line” but didn’t bind it to a real property in your source code

@ido
thanks for looking at it.
I’ll dig around some more and if I come up with the fix, I’ll post here.
J

Maybe your SparkSetupMainController-class is not a descendant of the UIViewController-class, at least in IB.
Otherwise it would have inherited these methods automatically.