*Problem Solved* Solution file crashes upon opening


#1

Turns out this issue was related to Core Data writing something somewhere on my HD. I dug around in the iPhone Simulator directories and nuked remnants of prior apps that I’d run in the simulator. You’ll need to display hidden files in Finder or nuke it Terminal. Leaving this up in case anyone else encounters the same problem.

Additionally, Under the “Product” menu in XCode, selecting “Clean” might clear up errors and/or warnings in your code. I think I battled stuff that was cached in this chapter, which caused it take a LOT longer than it should have to complete it.

[quote]I get this when I try to open the solution file to figure out why my code doesn’t work. Any suggestions?

2014-05-12 09:15:12.052 HomePwner[2274:60b] *** Terminating app due to uncaught exception 'OpenFailure', reason: 'The operation couldn’t be completed. (Cocoa error 134100.)' *** First throw call stack: ( 0 CoreFoundation 0x018031e4 __exceptionPreprocess + 180 1 libobjc.A.dylib 0x015828e5 objc_exception_throw + 44 2 HomePwner 0x00007571 -[BNRItemStore initPrivate] + 657 3 HomePwner 0x00007238 +[BNRItemStore sharedStore] + 88 4 HomePwner 0x0000a3ae -[BNRItemsViewController tableView:numberOfRowsInSection:] + 94 5 UIKit 0x00538b6e -[_UIFilteredDataSource tableView:numberOfRowsInSection:] + 68 6 UIKit 0x004a794c -[UISectionRowData refreshWithSection:tableView:tableViewRowData:] + 2510 7 UIKit 0x004ab23d -[UITableViewRowData numberOfRows] + 98 8 UIKit 0x00328df2 -[UITableView noteNumberOfRowsChanged] + 120 9 UIKit 0x003287a5 -[UITableView reloadData] + 814 10 HomePwner 0x0000a2e1 -[BNRItemsViewController updateTableViewForDynamicTypeSize] + 1057 11 HomePwner 0x00009eb9 -[BNRItemsViewController viewWillAppear:] + 105 12 UIKit 0x0036504b -[UIViewController _setViewAppearState:isAnimating:] + 448 13 UIKit 0x00365548 -[UIViewController __viewWillAppear:] + 114 14 UIKit 0x00387c25 -[UINavigationController _startTransition:fromViewController:toViewController:] + 800 15 UIKit 0x003888cc -[UINavigationController _startDeferredTransitionIfNeeded:] + 645 16 UIKit 0x003894e9 -[UINavigationController __viewWillLayoutSubviews] + 57 17 UIKit 0x004ca0d1 -[UILayoutContainerView layoutSubviews] + 213 18 UIKit 0x002b1964 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 355 19 libobjc.A.dylib 0x0159482b -[NSObject performSelector:withObject:] + 70 20 QuartzCore 0x03fd445a -[CALayer layoutSublayers] + 148 21 QuartzCore 0x03fc8244 _ZN2CA5Layer16layout_if_neededEPNS_11TransactionE + 380 22 QuartzCore 0x03fd43a5 -[CALayer layoutIfNeeded] + 160 23 UIKit 0x00373ae3 -[UIViewController window:setupWithInterfaceOrientation:] + 304 24 UIKit 0x00289aa7 -[UIWindow _setRotatableClient:toOrientation:updateStatusBar:duration:force:isRotating:] + 5212 25 UIKit 0x00288646 -[UIWindow _setRotatableClient:toOrientation:updateStatusBar:duration:force:] + 82 26 UIKit 0x00288518 -[UIWindow _setRotatableViewOrientation:updateStatusBar:duration:force:] + 117 27 UIKit 0x002885a0 -[UIWindow _setRotatableViewOrientation:duration:force:] + 67 28 UIKit 0x0028763a __57-[UIWindow _updateToInterfaceOrientation:duration:force:]_block_invoke + 120 29 UIKit 0x0028759c -[UIWindow _updateToInterfaceOrientation:duration:force:] + 400 30 UIKit 0x002882f3 -[UIWindow setAutorotates:forceUpdateInterfaceOrientation:] + 870 31 UIKit 0x0028b8e6 -[UIWindow setDelegate:] + 449 32 UIKit 0x00365b77 -[UIViewController _tryBecomeRootViewControllerInWindow:] + 180 33 UIKit 0x00281474 -[UIWindow addRootViewControllerViewIfPossible] + 591 34 UIKit 0x002815ef -[UIWindow _setHidden:forced:] + 312 35 UIKit 0x0028186b -[UIWindow _orderFrontWithoutMakingKey] + 49 36 UIKit 0x0028c3c8 -[UIWindow makeKeyAndVisible] + 65 37 HomePwner 0x0000c495 -[BNRAppDelegate application:didFinishLaunchingWithOptions:] + 741 38 UIKit 0x0023c14f -[UIApplication _handleDelegateCallbacksWithOptions:isSuspended:restoreState:] + 309 39 UIKit 0x0023caa1 -[UIApplication _callInitializationDelegatesForURL:payload:suspended:] + 1810 40 UIKit 0x00241667 -[UIApplication _runWithURL:payload:launchOrientation:statusBarStyle:statusBarHidden:] + 824 41 UIKit 0x00255f92 -[UIApplication handleEvent:withNewEvent:] + 3517 42 UIKit 0x00256555 -[UIApplication sendEvent:] + 85 43 UIKit 0x00243250 _UIApplicationHandleEvent + 683 44 GraphicsServices 0x03b5ef02 _PurpleEventCallback + 776 45 GraphicsServices 0x03b5ea0d PurpleEventCallback + 46 46 CoreFoundation 0x0177eca5 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 53 47 CoreFoundation 0x0177e9db __CFRunLoopDoSource1 + 523 48 CoreFoundation 0x017a968c __CFRunLoopRun + 2156 49 CoreFoundation 0x017a89d3 CFRunLoopRunSpecific + 467 50 CoreFoundation 0x017a87eb CFRunLoopRunInMode + 123 51 UIKit 0x00240d9c -[UIApplication _run] + 840 52 UIKit 0x00242f9b UIApplicationMain + 1225 53 HomePwner 0x0000bcbd main + 141 54 libdyld.dylib 0x021b0701 start + 1 ) libc++abi.dylib: terminating with uncaught exception of type NSException (lldb) [/quote]


#2

Oh man, I’m so glad I found this post from you. I have been checking my code for hours and could not figure this out. For me, I just cleaned the project (which didn’t fix anything I could see) and selected “Reset Contents and Settings” under the “iOS Simulator” menu in the simulator. Now that exception/crash seems to be behind me. Thanks again!