AviaryInc/Mobile-Feather-SDK-for-iOS — Issue #5: Aviary SDK 1.2 for iOS does not work with bundle loading error
Author: DionCho
Created: 2011-10-11 02:41:00+00:00
State: open

When I use AFFeatherController as the usage guide explains, following error occurs and the app crashes.

2011-10-11 11:32:35.831 FrameMagicPremium[2257:207] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Could not load NIB in bundle: 'NSBundle (not yet loaded)' with name 'AFFeatherControllerPhone''
*** Call stack at first throw:
(
0 CoreFoundation 0x017085a9 __exceptionPreprocess + 185
1 libobjc.A.dylib 0x01a8c313 objc_exception_throw + 44
2 CoreFoundation 0x016c0ef8 +[NSException raise:format:arguments:] + 136
3 CoreFoundation 0x016c0e6a +[NSException raise:format:] + 58
4 UIKit 0x00b550fa -[UINib instantiateWithOwner:options:] + 2024
5 UIKit 0x00b56ab7 -[NSBundle(UINSBundleAdditions) loadNibNamed:owner:options:] + 168
6 UIKit 0x00a0c628 -[UIViewController _loadViewFromNibNamed:bundle:] + 70
7 UIKit 0x00a0a134 -[UIViewController loadView] + 120
8 UIKit 0x00a0a00e -[UIViewController view] + 56
9 UIKit 0x00a0ba3d -[UIViewController viewControllerForRotation] + 63
10 UIKit 0x00a07988 -[UIViewController _visibleView] + 90
11 UIKit 0x00ca993c -[UIClientRotationContext initWithClient:toOrientation:duration:andWindow:] + 354
12 UIKit 0x0098181e -[UIWindow _setRotatableClient:toOrientation:updateStatusBar:duration:force:] + 954
13 UIKit 0x00c09619 -[UIWindowController transition:fromViewController:toViewController:target:didEndSelector:] + 1381
14 UIKit 0x00a0e65d -[UIViewController presentModalViewController:withTransition:] + 3478
15 FrameMagicPremium 0x0003ebe7 -[FrameViewController photoEditingRequestedFromCellView:] + 231
16 FrameMagicPremium 0x000151a3 -[FrameView cellViewDidEnterPhotoEditingMode:] + 83
17 FrameMagicPremium 0x00021ce3 -[CellView floatingToolbarGreyScale:] + 83
18 FrameMagicPremium 0x000c13c3 -[FloatingToolbar buttonTouched:] + 275
19 UIKit 0x0095a4fd -[UIApplication sendAction:to:from:forEvent:] + 119
20 UIKit 0x009ea799 -[UIControl sendAction:to:forEvent:] + 67
21 UIKit 0x009ecc2b -[UIControl(Internal) _sendActionsForEvents:withEvent:] + 527
22 UIKit 0x009eb7d8 -[UIControl touchesEnded:withEvent:] + 458
23 UIKit 0x0097eded -[UIWindow _sendTouchesForEvent:] + 567
24 UIKit 0x0095fc37 -[UIApplication sendEvent:] + 447
25 UIKit 0x00964f2e _UIApplicationHandleEvent + 7576
26 GraphicsServices 0x01b71992 PurpleEventCallback + 1550
27 CoreFoundation 0x016e9944 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 52
28 CoreFoundation 0x01649cf7 __CFRunLoopDoSource1 + 215
29 CoreFoundation 0x01646f83 __CFRunLoopRun + 979
30 CoreFoundation 0x01646840 CFRunLoopRunSpecific + 208
31 CoreFoundation 0x01646761 CFRunLoopRunInMode + 97
32 GraphicsServices 0x01b701c4 GSEventRunModal + 217
33 GraphicsServices 0x01b70289 GSEventRun + 115
34 UIKit 0x00968c93 UIApplicationMain + 1160
35 FrameMagicPremium 0x00002b39 main + 169
36 FrameMagicPremium 0x00002a85 start + 53
)
terminate called after throwing an instance of 'NSException'

Seems like NIB loading problem. All configuration including linker flag are set correctly (I've been using older versions without this error)

What is the reason and how to fix it?