I am integrating Aviary into my application and getting a crash when i try to present AFPhotoEditorController into one of my View Controller.
static dispatch_once_t onceToken;
dispatch_once(&onceToken, ^{
[self setPhotoEditorCustomizationOptions];
});
// Initialize the photo editor and set its delegate
AFPhotoEditorController * photoEditor = [[AFPhotoEditorController alloc] initWithImage:editingResImage];
[photoEditor setDelegate:self];
// If a high res image is passed, create the high res context with the image and the photo editor.
if (highResImage) {
[self setupHighResContextForPhotoEditor:photoEditor withImage:highResImage];
}
// Present the photo editor.
//This is the line on which i am getting crash
[self presentViewController:photoEditor animated:YES completion:nil];
This is the actual stack trace
Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Could not load NIB in bundle: 'NSBundle </Users/Mac/Library/Application Support/iPhone Simulator/7.0/Applications/CB39553D-8CA9-425C-BF5E-B33DD5813CA9/KidstaGram.app/AviarySDKResources.bundle> (not yet loaded)' with name 'AFSDKViewController_iPhone_4_inch_7''
First throw call stack:
(
0 CoreFoundation 0x027055e4 __exceptionPreprocess + 180
1 libobjc.A.dylib 0x024888b6 objc_exception_throw + 44
2 CoreFoundation 0x027053bb +[NSException raise:format:] + 139
3 UIKit 0x0149b65c -[UINib instantiateWithOwner:options:] + 951
4 UIKit 0x0130dc95 -[UIViewController _loadViewFromNibNamed:bundle:] + 280
5 UIKit 0x0130e43d -[UIViewController loadView] + 302
6 UIKit 0x0130e73e -[UIViewController loadViewIfRequired] + 78
7 UIKit 0x0130ec44 -[UIViewController view] + 35
8 UIKit 0x0131d9f1 -[UIViewController viewControllerForRotation] + 63
9 UIKit 0x01315590 -[UIViewController _visibleView] + 84
10 UIKit 0x015a321a -[UIWindowController transition:fromViewController:toViewController:target:didEndSelector:animation:] + 5199
11 UIKit 0x0131a78c -[UIViewController presentViewController:withTransition:completion:] + 6433
12 UIKit 0x0fcb9f1f -[UIViewControllerAccessibility(SafeCategory) presentViewController:withTransition:completion:] + 71
13 UIKit 0x0131acaf -[UIViewController presentViewController:animated:completion:] + 130
14 KidstaGram 0x00029f9c -[UploadViewController launchPhotoEditorWithImage:highResolutionImage:] + 412
15 KidstaGram 0x00029d0f -[UploadViewController launchEditorWithAsset:] + 191
16 KidstaGram 0x0002b3fb __76-[UploadViewController imagePickerController:didFinishPickingMediaWithInfo:]_block_invoke_2 + 107
17 AssetsLibrary 0x0077f639 __56-[ALAssetsLibrary assetForURL:resultBlock:failureBlock:]_block_invoke_2 + 215
18 libdispatch.dylib 0x068f0818 _dispatch_call_block_and_release + 15
19 libdispatch.dylib 0x069054b0 _dispatch_client_callout + 14
20 libdispatch.dylib 0x068f3766 _dispatch_main_queue_callback_4CF + 340
21 CoreFoundation 0x0276aa5e __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 14
22 CoreFoundation 0x026ab72b __CFRunLoopRun + 1963
23 CoreFoundation 0x026aab33 CFRunLoopRunSpecific + 467
24 CoreFoundation 0x026aa94b CFRunLoopRunInMode + 123
25 GraphicsServices 0x037069d7 GSEventRunModal + 192
26 GraphicsServices 0x037067fe GSEventRun + 104
27 UIKit 0x011fb94b UIApplicationMain + 1225
28 KidstaGram 0x00015fbd main + 141
29 libdyld.dylib 0x06b95725 start + 0
)
libc++abi.dylib: terminating with uncaught exception of type NSException
Please update to the latest version of the SDK on the Aviary website : developers.aviary.com. Additionally, please also make sure that you updated both the .framework file in addition to the .bundle
if you using AdobeCreativeSDK it will help you.
First we need to open AdobeCreativeSDKImage.framework and from that go to resources folder and copy AdobeCreativeSDKImageResources.bundle and paste that in project directory after that add it to the project
In the same way first we need to open AdobeCreativeSDKFoundation.framework and from that go to resources folder and copy AdobeCreativeSDKFoundationResources.bundle and paste that in project directory after that add it to the project
Related
With ObjectiveC I am developing a SingleView app targeting iOS 11 having one view controller/view. In the Main.storyboard on top of the view I've dropped a WebKit View (WKWebView).
I am seeing a crash in both the Simulator and on an iPhone 6 running iOS 11.0.1 :
Terminating app due to uncaught exception 'NSInvalidUnarchiveOperationException', reason: 'Could not instantiate class named WKWebView'
Do I need anything else to have it working ? Looks like it's unable to instantiate WKWebView upon waking from storyboard.
Other details:
Xcode version 9.0 9A235
When I remove the WKWebView from the Storyboard the crash goes away
App Base SDK - latest iOS (iOS 11); Deployment target 11.0
Using the WebView(deprecated) -- UIWebView, it works
I did not attempt to instantiate it manually
Crash stack:
2017-11-06 18:38:27.765519+0200 XYZZMap[15689:1093338] *** Terminating app due to uncaught exception 'NSInvalidUnarchiveOperationException', reason: 'Could not instantiate class named WKWebView'
*** First throw call stack:
(
0 CoreFoundation 0x00000001056d01cb __exceptionPreprocess + 171
1 libobjc.A.dylib 0x0000000105032f41 objc_exception_throw + 48
2 CoreFoundation 0x0000000105744b95 +[NSException raise:format:] + 197
3 UIKit 0x000000010692d2c0 UINibDecoderDecodeObjectForValue + 323
4 UIKit 0x000000010692d5db UINibDecoderDecodeObjectForValue + 1118
5 UIKit 0x000000010692d172 -[UINibDecoder decodeObjectForKey:] + 89
6 UIKit 0x00000001062f866b -[UIView initWithCoder:] + 969
7 UIKit 0x000000010692d43d UINibDecoderDecodeObjectForValue + 704
8 UIKit 0x000000010692d172 -[UINibDecoder decodeObjectForKey:] + 89
9 UIKit 0x00000001066dd1a7 -[UIRuntimeConnection initWithCoder:] + 178
10 UIKit 0x000000010692d43d UINibDecoderDecodeObjectForValue + 704
11 UIKit 0x000000010692d5db UINibDecoderDecodeObjectForValue + 1118
12 UIKit 0x000000010692d172 -[UINibDecoder decodeObjectForKey:] + 89
13 UIKit 0x00000001066dc3a4 -[UINib instantiateWithOwner:options:] + 1262
14 UIKit 0x00000001063f8d07 -[UIViewController _loadViewFromNibNamed:bundle:] + 383
15 UIKit 0x00000001063f9610 -[UIViewController loadView] + 177
16 UIKit 0x00000001063f9941 -[UIViewController loadViewIfRequired] + 195
17 UIKit 0x00000001063fa19e -[UIViewController view] + 27
18 UIKit 0x00000001062cdd17 -[UIWindow addRootViewControllerViewIfPossible] + 122
19 UIKit 0x00000001062ce41f -[UIWindow _setHidden:forced:] + 294
20 UIKit 0x00000001062e12bf -[UIWindow makeKeyAndVisible] + 42
21 UIKit 0x0000000106255015 -[UIApplication _callInitializationDelegatesForMainScene:transitionContext:] + 4711
22 UIKit 0x000000010625a245 -[UIApplication _runWithMainScene:transitionContext:completion:] + 1720
23 UIKit 0x0000000106615c6c __111-[__UICanvasLifecycleMonitor_Compatability _scheduleFirstCommitForScene:transition:firstActivation:completion:]_block_invoke + 924
24 UIKit 0x00000001069e33ef +[_UICanvas _enqueuePostSettingUpdateTransactionBlock:] + 153
25 UIKit 0x0000000106615865 -[__UICanvasLifecycleMonitor_Compatability _scheduleFirstCommitForScene:transition:firstActivation:completion:] + 249
26 UIKit 0x00000001066160c3 -[__UICanvasLifecycleMonitor_Compatability activateEventsOnly:withContext:completion:] + 668
27 UIKit 0x0000000106f73c11 __82-[_UIApplicationCanvas _transitionLifecycleStateWithTransitionContext:completion:]_block_invoke + 262
28 UIKit 0x0000000106f73aca -[_UIApplicationCanvas _transitionLifecycleStateWithTransitionContext:completion:] + 444
29 UIKit 0x0000000106c61b9c __125-[_UICanvasLifecycleSettingsDiffAction performActionsForCanvas:withUpdatedScene:settingsDiff:fromSettings:transitionContext:]_block_invoke + 420
30 UIKit 0x0000000106e5cc3e _performActionsWithDelayForTransitionContext + 100
31 UIKit 0x0000000106c61998 -[_UICanvasLifecycleSettingsDiffAction performActionsForCanvas:withUpdatedScene:settingsDiff:fromSettings:transitionContext:] + 231
32 UIKit 0x00000001069e2a4c -[_UICanvas scene:didUpdateWithDiff:transitionContext:completion:] + 392
33 UIKit 0x0000000106258ac6 -[UIApplication workspace:didCreateScene:withTransitionContext:completion:] + 523
34 UIKit 0x0000000106821523 -[UIApplicationSceneClientAgent scene:didInitializeWithEvent:completion:] + 369
35 FrontBoardServices 0x000000010b539158 -[FBSSceneImpl _didCreateWithTransitionContext:completion:] + 338
36 FrontBoardServices 0x000000010b541c4d __56-[FBSWorkspace client:handleCreateScene:withCompletion:]_block_invoke_2 + 235
37 libdispatch.dylib 0x00000001096b643c _dispatch_client_callout + 8
38 libdispatch.dylib 0x00000001096bbaf4 _dispatch_block_invoke_direct + 592
39 FrontBoardServices 0x000000010b56d672 __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 24
40 FrontBoardServices 0x000000010b56d328 -[FBSSerialQueue _performNext] + 464
41 FrontBoardServices 0x000000010b56d897 -[FBSSerialQueue _performNextFromRunLoopSource] + 45
42 CoreFoundation 0x00000001056732b1 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
43 CoreFoundation 0x0000000105712d31 __CFRunLoopDoSource0 + 81
44 CoreFoundation 0x0000000105657c19 __CFRunLoopDoSources0 + 185
45 CoreFoundation 0x00000001056571ff __CFRunLoopRun + 1279
46 CoreFoundation 0x0000000105656a89 CFRunLoopRunSpecific + 409
47 GraphicsServices 0x000000010be609c6 GSEventRunModal + 62
48 UIKit 0x000000010625bd30 UIApplicationMain + 159
49 XYZZMap 0x00000001047274bf main + 111
50 libdyld.dylib 0x0000000109732d81 start + 1
51 ??? 0x0000000000000001 0x0 + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
Thanks!
NSInvalidUnarchiveOperationException when loading the nib / storyboard means there an object in the nib / storyboard that the runtime doesn't understand. This is because the framework that defines that kind of object is missing.
So, in this case, you need to link your app target against the WebKit framework so that the app understands what a WKWebView is when it is decoded from the storyboard.
Here's a screen shot showing the app target's Build Phases when this is correctly configured:
Select Target -> General -> Linked framework and libraries -> click on + symbol below -> search for webKit.Framwork -> add.
Update for swift 5.0 ++
And Xcode- 11.5 +
If you faced this issue which I mentioned below after linked WKWebView in storyboard.
NSInvalidUnarchiveOperationException', reason: 'Could not instantiate
class named WKWebView because no class named WKWebView was found; the
class needs to be defined in source code or linked in from a library
(ensure the class is part of the correct target)
Just follow this instruction to solve this in new Xcode.
Here's a screen shot showing the project target's Build Phases when this is correctly configured:
Check whether on the storyboard you have a WKWebView instance while in code you may have a UIWebView instance
Click on Project Target and then add webKit.Framwork as display below :
General -> Linked framework and libraries -> click on + symbol below -> search for webKit.Framwork -> add.
I too faced same kind of issue.
Without declaring WKWebView as Outlet
Got this error while running in simulator
After adding Outlet it worked fine for me.
Hope this helps :)
I'm trying to integrate Paypal to my objective c project.
After the Paypal login screen appears and i enter my login data and login success and this view pops to the previous view which should display the logged client data the application crashes giving me the following error
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[__NSPlaceholderDictionary initWithObjects:forKeys:count:]: attempt to insert nil object from objects[0]'
*** First throw call stack:
(
0 CoreFoundation 0x0000000113defd85 __exceptionPreprocess + 165
1 libobjc.A.dylib 0x00000001137f7deb objc_exception_throw + 48
2 CoreFoundation 0x0000000113cec23e -[__NSPlaceholderDictionary initWithObjects:forKeys:count:] + 318
3 CoreFoundation 0x0000000113cfe5bb +[NSDictionary dictionaryWithObjects:forKeys:count:] + 59
4 AppCreator 0x000000010d890e1e +[PPZebraUI text:withAnnotation:] + 810
5 AppCreator 0x000000010d875c87 -[PPFundingOption titleForDisplay] + 318
6 AppCreator 0x000000010d8b187f -[PPPaymentFundingOptionSelectionCell refreshContent] + 653
7 AppCreator 0x000000010d8b0bfc -[PPPaymentAttributeSelectionCell initWithViewController:withTitle:withPickerTitle:withDataSource:] + 1293
8 AppCreator 0x000000010d88db04 -[PPSelectPayMethodViewController paymentAttributeSelectionCells] + 310
9 AppCreator 0x000000010d8d4601 -[PPSelectPayMethodViewControllerIOS7 updateTableToConfirm:] + 977
10 AppCreator 0x000000010d8d416e -[PPSelectPayMethodViewControllerIOS7 refreshTable:] + 100
11 AppCreator 0x000000010d8d4229 -[PPSelectPayMethodViewControllerIOS7 viewDidAppear:] + 87
12 UIKit 0x000000010f41d335 -[UIViewController _setViewAppearState:isAnimating:] + 830
13 UIKit 0x000000010f41dcb8 -[UIViewController _endAppearanceTransition:] + 262
14 UIKit 0x000000010f45886f -[UINavigationController navigationTransitionView:didEndTransition:fromView:toView:] + 1290
15 UIKit 0x000000010f44e630 __49-[UINavigationController _startCustomTransition:]_block_invoke + 233
16 UIKit 0x000000010fcaa4c8 -[_UIViewControllerTransitionContext completeTransition:] + 101
17 UIKit 0x000000010f2658a3 __53-[_UINavigationParallaxTransition animateTransition:]_block_invoke95 + 834
18 UIKit 0x000000010f32d53e -[UIViewAnimationBlockDelegate _didEndBlockAnimation:finished:context:] + 644
19 UIKit 0x000000010f30a7ff -[UIViewAnimationState sendDelegateAnimationDidStop:finished:] + 241
20 UIKit 0x000000010f30abae -[UIViewAnimationState animationDidStop:finished:] + 80
21 QuartzCore 0x000000010f12e3c8 _ZN2CA5Layer23run_animation_callbacksEPv + 308
22 libdispatch.dylib 0x000000011440b3eb _dispatch_client_callout + 8
23 libdispatch.dylib 0x00000001143f31ef _dispatch_main_queue_callback_4CF + 1738
24 CoreFoundation 0x0000000113d490f9 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9
25 CoreFoundation 0x0000000113d0ab99 __CFRunLoopRun + 2073
26 CoreFoundation 0x0000000113d0a0f8 CFRunLoopRunSpecific + 488
27 GraphicsServices 0x0000000115780ad2 GSEventRunModal + 161
28 UIKit 0x000000010f27cf09 UIApplicationMain + 171
29 AppCreator 0x000000010d3251df main + 111
30 libdyld.dylib 0x000000011444092d start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
I tried the SDk in separated application and it works perfectly .this error happens when i add the sdk to my project .
can anyone please help me what can be causing this error
I found out that problem was in another Library i was using .
It had a function which override the
"preferredFontForTextStyle" in the "UIFont" class
that was causing the problem for me.
in case anyone facing that kind of unjustified crash , try to remove all the other classes one by one to check that the error is not caused by conflict with another line in a far class
I just started recently. I can't fix it and I don't know How to do
I have attached files and images. When I run my app, I receive the following error:
2015-11-26 12:17:08.175 login[6107:324531]
*** Terminating app due to uncaught exception 'NSInvalidArgumentException',
reason: 'Receiver (<login.ViewController: 0x7fc0d94b28d0>)
has no segue with identifier 'loginView''
*** First throw call stack:
(
0 CoreFoundation 0x0000000100457f45 __exceptionPreprocess + 165
1 libobjc.A.dylib 0x000000010217bdeb objc_exception_throw + 48
2 UIKit 0x0000000100e099ea -[UIViewController shouldPerformSegueWithIdentifier:sender:] + 0
3 login 0x000000010025fc85 _TFC5login14ViewController13viewDidAppearfS0_FSbT_ + 309
4 login 0x000000010025fce1 _TToFC5login14ViewController13viewDidAppearfS0_FSbT_ + 49
5 UIKit 0x0000000100e0c675 -[UIViewController _setViewAppearState:isAnimating:] + 830
6 UIKit 0x0000000100e0cff8 -[UIViewController _endAppearanceTransition:] + 262
7 UIKit 0x0000000100e47a00 -[UINavigationController navigationTransitionView:didEndTransition:fromView:toView:] + 1290
8 UIKit 0x0000000100e3d917 __49-[UINavigationController _startCustomTransition:]_block_invoke + 233
9 UIKit 0x000000010166db24 -[_UIViewControllerTransitionContext completeTransition:] + 101
10 UIKit 0x0000000100c5cf4a __53-[_UINavigationParallaxTransition animateTransition:]_block_invoke93 + 834
11 UIKit 0x0000000100d1eace -[UIViewAnimationBlockDelegate _didEndBlockAnimation:finished:context:] + 644
12 UIKit 0x0000000100cfc9df -[UIViewAnimationState sendDelegateAnimationDidStop:finished:] + 241
13 UIKit 0x0000000100cfcd8e -[UIViewAnimationState animationDidStop:finished:] + 80
14 QuartzCore 0x00000001051b9fa0 _ZN2CA5Layer23run_animation_callbacksEPv + 308
15 libdispatch.dylib 0x0000000102c4f49b _dispatch_client_callout + 8
16 libdispatch.dylib 0x0000000102c372af _dispatch_main_queue_callback_4CF + 1738
17 CoreFoundation 0x00000001003b82e9 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9
18 CoreFoundation 0x00000001003798a9 __CFRunLoopRun + 2073
19 CoreFoundation 0x0000000100378e08 CFRunLoopRunSpecific + 488
20 GraphicsServices 0x0000000104a4bad2 GSEventRunModal + 161
21 UIKit 0x0000000100c7430d UIApplicationMain + 171
22 login 0x00000001002630dd main + 109
23 libdyld.dylib 0x0000000102c8392d start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
My screenshots of code are here:
Screenshots of code
Your error tells you exactly what you need to do.
Receiver (<login.ViewController: 0x7fc0d94b28d0>) has no segue with identifier 'loginView'
so check your segue in storyboard and ensure that segue identifier from LoginViewController is loginView.
Everyone I'm working on a iOS Static Library. when I use this static library in sample app and run it, it crashes with below exception...
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Could not load NIB in bundle: 'NSBundle </Users/name/Library/Developer/CoreSimulator/Devices/D982246E-72D6-482F-8E1C-AE3D1BF37607/data/Containers/Bundle/Application/016193F2-36A3-492D-8E7B-CE560FACCF6D/TestApp.app> (loaded)' with name 'OptionsViewController''
*** First throw call stack:
(
0 CoreFoundation 0x0000000107385c65 __exceptionPreprocess + 165
1 libobjc.A.dylib 0x000000010701ebb7 objc_exception_throw + 45
2 CoreFoundation 0x0000000107385b9d +[NSException raise:format:] + 205
3 UIKit 0x0000000107d30171 -[UINib instantiateWithOwner:options:] + 552
4 UIKit 0x0000000107b88718 -[UIViewController _loadViewFromNibNamed:bundle:] + 242
5 UIKit 0x0000000107b88d08 -[UIViewController loadView] + 109
6 UIKit 0x0000000107b88f79 -[UIViewController loadViewIfRequired] + 75
7 UIKit 0x0000000107b8940e -[UIViewController view] + 27
8 UIKit 0x0000000107bae297 -[UINavigationController _startCustomTransition:] + 633
9 UIKit 0x0000000107bba3bf -[UINavigationController _startDeferredTransitionIfNeeded:] + 386
10 UIKit 0x0000000107bbaf0e -[UINavigationController __viewWillLayoutSubviews] + 43
11 UIKit 0x0000000107d05715 -[UILayoutContainerView layoutSubviews] + 202
12 UIKit 0x0000000107ad8a2b -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 536
13 QuartzCore 0x000000010bcbeec2 -[CALayer layoutSublayers] + 146
14 QuartzCore 0x000000010bcb36d6 _ZN2CA5Layer16layout_if_neededEPNS_11TransactionE + 380
15 QuartzCore 0x000000010bcb3546 _ZN2CA5Layer28layout_and_display_if_neededEPNS_11TransactionE + 24
16 QuartzCore 0x000000010bc1f886 _ZN2CA7Context18commit_transactionEPNS_11TransactionE + 242
17 QuartzCore 0x000000010bc20a3a _ZN2CA11Transaction6commitEv + 462
18 QuartzCore 0x000000010bc210eb _ZN2CA11Transaction17observer_callbackEP19__CFRunLoopObservermPv + 89
19 CoreFoundation 0x00000001072b8ca7 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 23
20 CoreFoundation 0x00000001072b8c00 __CFRunLoopDoObservers + 368
21 CoreFoundation 0x00000001072aea33 __CFRunLoopRun + 1123
22 CoreFoundation 0x00000001072ae366 CFRunLoopRunSpecific + 470
23 GraphicsServices 0x000000010b7e7a3e GSEventRunModal + 161
24 UIKit 0x0000000107a58900 UIApplicationMain + 1282
25 TestApp 0x0000000106a54bcf main + 111
26 libdyld.dylib 0x0000000109b7f145 start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
I know, generally this error mean that OptionsViewController xib file is not been included in this library/project but guess what? OptionsViewController's .m file present in compile Sources and .h and .xib file present there in copy files of Build Phases of library.
This library was working file with Xcode 6.1. The time I install Xcode 6.3. this crash came in to picture, now it is not working even in Xcode 6.1
Now I'm clueless why my sample app keep crashing. It has been 1 whole day, I have been struggling with this particular issue without any luck.
Any guidance, clue, anything would be highly appreciated.
UPDATE
App not able to find Resources, files, anything from Static Library.
I have to include all .h , .xibs and resources files in to build face of sample app to make it work, which is not a right way to do it I feel.
Try [[OptionsViewController alloc] initWithNibName:#"OptionsViewController" bundle:[NSBundle bundleForClass:[OptionsViewController class]]]; instead.
When I click any button that worked perfectly before I get this error:
2011-07-04 00:52:38.772 RPS-iPad[10930:207] *** Terminating app due to uncaught
exception 'NSInternalInconsistencyException', reason: 'Could not load NIB in bundle:
'NSBundle </Users/Jared/Library/Application Support/iPhone
Simulator/4.3/Applications/CA94658E-A732-4D51-BA50-0058E01C255F/RPS-iPad.app> (loaded)'
with name 'FlipsideView''
*** Call stack at first throw:
(
0 CoreFoundation 0x00dc75a9 __exceptionPreprocess + 185
1 libobjc.A.dylib 0x00f1b313 objc_exception_throw + 44
2 CoreFoundation 0x00d7fef8 +[NSException raise:format:arguments:] + 136
3 CoreFoundation 0x00d7fe6a +[NSException raise:format:] + 58
4 UIKit 0x004b20fa -[UINib instantiateWithOwner:options:] + 2024
5 UIKit 0x004b3ab7 -[NSBundle(UINSBundleAdditions) loadNibNamed:owner:options:] + 168
6 UIKit 0x00369628 -[UIViewController _loadViewFromNibNamed:bundle:] + 70
7 UIKit 0x00367134 -[UIViewController loadView] + 120
8 UIKit 0x0036700e -[UIViewController view] + 56
9 UIKit 0x00368a3d -[UIViewController viewControllerForRotation] + 63
10 UIKit 0x00364988 -[UIViewController _visibleView] + 90
11 UIKit 0x0060693c -[UIClientRotationContext initWithClient:toOrientation:duration:andWindow:] + 354
12 UIKit 0x002de81e -[UIWindow _setRotatableClient:toOrientation:updateStatusBar:duration:force:] + 954
13 UIKit 0x00566619 -[UIWindowController transition:fromViewController:toViewController:target:didEndSelector:] + 1381
14 UIKit 0x0036b65d -[UIViewController presentModalViewController:withTransition:] + 3478
15 RPS-iPad 0x00003886 -[RPSViewController score:] + 199
16 UIKit 0x002b74fd -[UIApplication sendAction:to:from:forEvent:] + 119
17 UIKit 0x00347799 -[UIControl sendAction:to:forEvent:] + 67
18 UIKit 0x00349c2b -[UIControl(Internal) _sendActionsForEvents:withEvent:] + 527
19 UIKit 0x003487d8 -[UIControl touchesEnded:withEvent:] + 458
20 UIKit 0x002dbded -[UIWindow _sendTouchesForEvent:] + 567
21 UIKit 0x002bcc37 -[UIApplication sendEvent:] + 447
22 UIKit 0x002c1f2e _UIApplicationHandleEvent + 7576
23 GraphicsServices 0x0171f992 PurpleEventCallback + 1550
24 CoreFoundation 0x00da8944 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 52
25 CoreFoundation 0x00d08cf7 __CFRunLoopDoSource1 + 215
26 CoreFoundation 0x00d05f83 __CFRunLoopRun + 979
27 CoreFoundation 0x00d05840 CFRunLoopRunSpecific + 208
28 CoreFoundation 0x00d05761 CFRunLoopRunInMode + 97
29 GraphicsServices 0x0171e1c4 GSEventRunModal + 217
30 GraphicsServices 0x0171e289 GSEventRun + 115
31 UIKit 0x002c5c93 UIApplicationMain + 1160
32 RPS-iPad 0x00001f54 main + 102
33 RPS-iPad 0x00001ee5 start + 53
34 ??? 0x00000001 0x0 + 1
)
terminate called after throwing an instance of 'NSException'
Everything worked fine in Xcode 3 but I recently switched to Xcode 4 and I know get this problem. Also, I recently used the duplicate for iPad option on my app. It works fine on the iPhone simulator. Thank you.
This is from a .xib file that was duplicated. I checked that it is correctly linked and the filenames are NAME~iPad.xib. Also, they are all relative to Project.
Just some tips:
1)Are you sure the name is well written ("FlipsideView")?
2)Is the file added to the build?
Hope it helps