crash in [UIScrollViewPanGestureRecognizer contentOffset]: unrecognized selector sent to instance 0x11b9c7410, how to resolve it
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason:-[UIScrollViewPanGestureRecognizer contentOffset]: unrecognized selector sent to instance 0x11b9c7410
Last Exception Backtrace:
0 CoreFoundation ___exceptionPreprocess (in CoreFoundation) 236
1 libobjc.A.dylib bool method_lists_contains_any<method_list_t*>(method_list_t, method_list_t , objc_selector , unsigned long) (in libobjc.A.dylib) 979
2 CoreFoundation -[NSObject(NSObject) doesNotRecognizeSelector:] (in CoreFoundation) 139
3 CoreFoundation ____forwarding___ (in CoreFoundation) 1439
4 CoreFoundation ___forwarding_prep_0___ (in CoreFoundation) 91
5 GeoServices 0x000000018c7b4448 0x18b7e2000 + 16589896
6 UIKitCore -[UITableView setContentOffset:] (in UIKitCore) 87
7 UIKitCore -[UIScrollView _adjustContentOffsetIfNecessary] (in UIKitCore) 99
8 UIKitCore -[UIScrollView setFrame:] (in UIKitCore) 547
9 UIKitCore -[UITableView setFrame:] (in UIKitCore) 211
10 UIKitCore -[UIView(Geometry) _resizeWithOldSuperviewSize:] (in UIKitCore) 771
11 UIKitCore -[UIScrollView(_UIOldConstraintBasedLayoutSupport) _resizeWithOldSuperviewSize:] (in UIKitCore) 51
12 UIKitCore ___46-[UIView(Geometry) resizeSubviewsWithOldSize:]_block_invoke (in UIKitCore) 119
13 CoreFoundation ___NSARRAY_IS_CALLING_OUT_TO_A_BLOCK__ (in CoreFoundation) 15
14 CoreFoundation -[__NSArrayM enumerateObjectsWithOptions:usingBlock:] (in CoreFoundation) 459
15 UIKitCore -[UIView(Geometry) resizeSubviewsWithOldSize:] (in UIKitCore) 199
16 UIKitCore -[UIView(Geometry) setFrame:] (in UIKitCore) 591
17 BaiduBoxApp -[BBACommentListViewController createUIView] (in BaiduBoxApp) (BBACommentListViewController.m:541) 15
18 BaiduBoxApp -[BBACommentListViewController viewDidLoad] (in BaiduBoxApp) (BBACommentListViewController.m:282) 15
19 UIKitCore -[UIViewController _sendViewDidLoadWithAppearanceProxyObjectTaggingEnabled] (in UIKitCore) 103
20 UIKitCore -[UIViewController loadViewIfRequired] (in UIKitCore) 1019
21 UIKitCore -[UIViewController view] (in UIKitCore) 27
``
Related
After updating the Xcode to version 14 we faced a crash while launching the app. How can we fix this issue.
[13113:89575] *** Assertion failure in -[UIButton dealloc], UIView.m:4628
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Application circumvented Objective-C runtime dealloc initiation for object.'
*** First throw call stack:
(
0 CoreFoundation 0x00007ff800427378 __exceptionPreprocess + 242
1 libobjc.A.dylib 0x00007ff80004dbaf objc_exception_throw + 48
2 Foundation 0x00007ff800b876ac _userInfoForFileAndLine + 0
3 UIKitCore 0x000000011eb8e997 -[UIView dealloc] + 1458
4 UIKitCore 0x000000011dcfb835 -[UIButton dealloc] + 41
5 libobjc.A.dylib 0x00007ff80004b6a1 _ZN11objc_object17sidetable_releaseEbb + 203
6 CoreFoundation 0x00007ff8003144e8 __RELEASE_OBJECTS_IN_THE_ARRAY__ + 11
7 CoreFoundation 0x00007ff80031442e -[__NSArrayM dealloc] + 283
8 libobjc.A.dylib 0x00007ff80004b6a1 _ZN11objc_object17sidetable_releaseEbb + 203
9 libobjc.A.dylib 0x00007ff80004be64 _ZN19AutoreleasePoolPage12releaseUntilEPP11objc_object + 18
10 libobjc.A.dylib 0x00007ff80004bcad objc_autoreleasePoolPop + 203
11 UIKitCore 0x000000011e0a083b -[UINib instantiateWithOwner:options:] + 3109
12 UIKitCore 0x000000011dcaad51 -[UIViewController loadView] + 640
13 UIKitCore 0x000000011dcab0a7 -[UIViewController loadViewIfRequired] + 95
14 UIKitCore 0x000000011dbd6d7e -[UINavigationController _updateScrollViewFromViewController:toViewController:] + 162
15 UIKitCore 0x000000011dbd70c2 -[UINavigationController _startTransition:fromViewController:toViewController:] + 227
16 UIKitCore 0x000000011dbd80c3 -[UINavigationController _startDeferredTransitionIfNeeded:] + 863
17 UIKitCore 0x000000011dbd9468 -[UINavigationController __viewWillLayoutSubviews] + 136
18 UIKitCore 0x000000011dbb704c -[UILayoutContainerView layoutSubviews] + 207
19 UIKitCore 0x000000011ebc0913 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 2305
20 QuartzCore 0x00007ff8088f8cb8 _ZN2CA5Layer16layout_if_neededEPNS_11TransactionE + 526
21 QuartzCore 0x00007ff808904191 _ZN2CA5Layer28layout_and_display_if_neededEPNS_11TransactionE + 65
22 QuartzCore 0x00007ff80881821d _ZN2CA7Context18commit_transactionEPNS_11TransactionEdPd + 623
23 QuartzCore 0x00007ff80884fa56 _ZN2CA11Transaction6commitEv + 714
24 UIKitCore 0x000000011e5b831c __34-[UIApplication _firstCommitBlock]_block_invoke_2 + 34
25 CoreFoundation 0x00007ff800386cb1 __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ + 12
26 CoreFoundation 0x00007ff80038646a __CFRunLoopDoBlocks + 406
27 CoreFoundation 0x00007ff800380dc8 __CFRunLoopRun + 948
28 CoreFoundation 0x00007ff800380637 CFRunLoopRunSpecific + 560
29 GraphicsServices 0x00007ff809c0f28a GSEventRunModal + 139
30 UIKitCore 0x000000011e598425 -[UIApplication _run] + 994
31 UIKitCore 0x000000011e59d301 UIApplicationMain + 123
32 UK News 0x00000001071675e9 main + 73
33 dyld 0x0000000108a142bf start_sim + 10
34 ??? 0x0000000109c6252e 0x0 + 4458947886
)
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Application circumvented Objective-C runtime dealloc initiation for <UIButton> object.'
CoreSimulator 857.7 - Device: iPhone 14 (722946E3-1DBE-4032-911B-51C89F27E522) - R
Search initialise method in your project and replace it with load method. Check it below.
Find
+(void)initialize
{
[super initialize];
}
Replace
+(void)load
{
[super load];
}
I am getting crash in iOS(react native app) : [_UISnapshotWindow actualSceneBounds]: unrecognized selector
Fatal Exception: NSInvalidArgumentException
0 CoreFoundation 0x12a654 __exceptionPreprocess
1 libobjc.A.dylib 0x5bcc objc_exception_throw
2 CoreFoundation 0x2edd8 -[NSOrderedSet
initWithSet:copyItems:]
3 UIKitCore 0xa5cb24 -[UIResponder
doesNotRecognizeSelector:]
4 CoreFoundation 0x12e7f8 forwarding
5 CoreFoundation 0x13071c _CF_forwarding_prep_0
6 UIKitCore 0x91b5f8 -[UIUndoGestureInteraction
didMoveToView:]
7 UIKitCore 0xee0960 _setInteractionView
8 UIKitCore 0xee083c -[UIView(Dragging)
addInteraction:]
9 UIKitCore 0xcb2dcc
-[UIEditingOverlayViewController _addInteractions]
10 UIKitCore 0x3f0814 -[UIViewController
_setViewAppearState:isAnimating:]
11 UIKitCore 0x3f0c34 __52-[UIViewController
_setViewAppearState:isAnimating:]_block_invoke
12 CoreFoundation 0xfdce0
NSARRAY_IS_CALLING_OUT_TO_A_BLOCK
13 CoreFoundation 0x270c -[__NSArrayI
enumerateObjectsWithOptions:usingBlock:]
14 UIKitCore 0x3f09c0 -[UIViewController
_setViewAppearState:isAnimating:]
15 UIKitCore 0x3f2a8c __64-[UIViewController
viewDidMoveToWindow:shouldAppearOrDisappear:]_block_invoke
16 UIKitCore 0x3f1854 -[UIViewController
_executeAfterAppearanceBlock]
17 UIKitCore 0xa37c10
_runAfterCACommitDeferredBlocks
18 UIKitCore 0xa274ac
_cleanUpAfterCAFlushAndRunDeferredBlocks
19 UIKitCore 0xa57990 _afterCACommitHandler
20 CoreFoundation 0xa7f2c
CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION
21 CoreFoundation 0xa2e20 __CFRunLoopDoObservers
22 CoreFoundation 0xa329c __CFRunLoopRun
23 CoreFoundation 0xa2ba8 CFRunLoopRunSpecific
24 GraphicsServices 0x3344 GSEventRunModal
25 UIKitCore 0xa2e3e4 UIApplicationMain
Can anyone please help me to fix this issue.
I've got an error while compiling (Release/Debug)
Terminating app due to uncaught exception NSInvalidArgumentException', reason: '-[__NSDictionaryM cordovaSettingForKey:]: unrecognized selector sent to instance 0x600003ea6ae0'
After build successfully myProject. I was open my project in Xcode and click the run button on Xcode. the project build successfully and display the lunch screen in simulator device. After that stuff I get an error in main.m, and this is what I see in console:
#import <UIKit/UIKit.h>
int main(int argc, char* argv[])
{
#autoreleasepool {
int retVal = UIApplicationMain(argc, argv, nil, #"AppDelegate"); Thread 1: signal SIGABRT
return retVal;
}
}
2019-09-27 15:19:14.943154+0530 myApp[3086:93649] DiskCookieStorage changing policy from 2 to 0, cookie file: file:///Users/mk/Library/Developer/CoreSimulator/Devices/EC5630C3-373A-45AD-A404-5628B1B329B9/data/Containers/Data/Application/06D2441B-F5B5-47B8-B6A7-68AEA36BB0D6/Library/Cookies/com.test.my-app.binarycookies
2019-09-27 15:19:14.954425+0530 myApp[3086:93649] Apache Cordova native platform version 5.0.1 is starting.
2019-09-27 15:19:14.954596+0530 myApp[3086:93649] Multi-tasking -> Device: YES, App: YES
2019-09-27 15:19:14.972439+0530 myApp[3086:93649] -[__NSDictionaryM cordovaSettingForKey:]: unrecognized selector sent to instance 0x6000011cc900
2019-09-27 15:19:14.981981+0530 myApp[3086:93649] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSDictionaryM cordovaSettingForKey:]: unrecognized selector sent to instance 0x6000011cc900'
*** First throw call stack:
(
0 CoreFoundation 0x00007fff23b98bde __exceptionPreprocess + 350
1 libobjc.A.dylib 0x00007fff503b5b20 objc_exception_throw + 48
2 CoreFoundation 0x00007fff23bb9704 -[NSObject(NSObject) doesNotRecognizeSelector:] + 132
3 CoreFoundation 0x00007fff23b9d7bc ___forwarding___ + 1436
4 CoreFoundation 0x00007fff23b9f6c8 _CF_forwarding_prep_0 + 120
5 myApp 0x000000010a028723 -[CDVViewController viewDidLoad] + 227
6 myApp 0x000000010a004433 -[MainViewController viewDidLoad] + 51
7 UIKitCore 0x00007fff46af87c2 -[UIViewController _sendViewDidLoadWithAppearanceProxyObjectTaggingEnabled] + 83
8 UIKitCore 0x00007fff46afd6d3 -[UIViewController loadViewIfRequired] + 1084
9 UIKitCore 0x00007fff46afdaf0 -[UIViewController view] + 27
10 UIKitCore 0x00007fff47199b55 -[UIWindow addRootViewControllerViewIfPossible] + 150
11 UIKitCore 0x00007fff4719920b -[UIWindow _updateLayerOrderingAndSetLayerHidden:actionBlock:] + 232
12 UIKitCore 0x00007fff4719a2c9 -[UIWindow _setHidden:forced:] + 362
13 UIKitCore 0x00007fff471ad46d -[UIWindow _mainQueue_makeKeyAndVisible] + 42
14 myApp 0x000000010a01ef3f -[CDVAppDelegate application:didFinishLaunchingWithOptions:] + 703
15 myApp 0x000000010a0041ab -[AppDelegate application:didFinishLaunchingWithOptions:] + 187
16 UIKitCore 0x00007fff4715994f -[UIApplication _handleDelegateCallbacksWithOptions:isSuspended:restoreState:] + 232
17 UIKitCore 0x00007fff4715b2e7 -[UIApplication _callInitializationDelegatesWithActions:forCanvas:payload:fromOriginatingProcess:] + 3980
18 UIKitCore 0x00007fff47160c05 -[UIApplication _runWithMainScene:transitionContext:completion:] + 1281
19 UIKitCore 0x00007fff468b58b1 -[_UISceneLifecycleMultiplexer completeApplicationLaunchWithFBSScene:transitionContext:] + 122
20 UIKitCore 0x00007fff46d96cd5 _UIScenePerformActionsWithLifecycleActionMask + 83
21 UIKitCore 0x00007fff468b63c3 __101-[_UISceneLifecycleMultiplexer _evalTransitionToSettings:fromSettings:forceExit:withTransitionStore:]_block_invoke + 198
22 UIKitCore 0x00007fff468b5e84 -[_UISceneLifecycleMultiplexer _performBlock:withApplicationOfDeactivationReasons:fromReasons:] + 474
23 UIKitCore 0x00007fff468b61f3 -[_UISceneLifecycleMultiplexer _evalTransitionToSettings:fromSettings:forceExit:withTransitionStore:] + 821
24 UIKitCore 0x00007fff468b5a85 -[_UISceneLifecycleMultiplexer uiScene:transitionedFromState:withTransitionContext:] + 345
25 UIKitCore 0x00007fff468b9e70 __186-[_UIWindowSceneFBSSceneTransitionContextDrivenLifecycleSettingsDiffAction _performActionsForUIScene:withUpdatedFBSScene:settingsDiff:fromSettings:transitionContext:lifecycleActionType:]_block_invoke_2 + 159
26 UIKitCore 0x00007fff46cbdf8b +[BSAnimationSettings(UIKit) tryAnimatingWithSettings:actions:completion:] + 865
27 UIKitCore 0x00007fff46db51cf _UISceneSettingsDiffActionPerformChangesWithTransitionContext + 240
28 UIKitCore 0x00007fff468b9b9e __186-[_UIWindowSceneFBSSceneTransitionContextDrivenLifecycleSettingsDiffAction _performActionsForUIScene:withUpdatedFBSScene:settingsDiff:fromSettings:transitionContext:lifecycleActionType:]_block_invoke + 153
29 UIKitCore 0x00007fff46db50d2 _UISceneSettingsDiffActionPerformActionsWithDelayForTransitionContext + 84
30 UIKitCore 0x00007fff468b9a0c -[_UIWindowSceneFBSSceneTransitionContextDrivenLifecycleSettingsDiffAction _performActionsForUIScene:withUpdatedFBSScene:settingsDiff:fromSettings:transitionContext:lifecycleActionType:] + 381
31 UIKitCore 0x00007fff46717c96 __64-[UIScene scene:didUpdateWithDiff:transitionContext:completion:]_block_invoke + 657
32 UIKitCore 0x00007fff4671681b -[UIScene _emitSceneSettingsUpdateResponseForCompletion:afterSceneUpdateWork:] + 248
33 UIKitCore 0x00007fff467179c0 -[UIScene scene:didUpdateWithDiff:transitionContext:completion:] + 210
34 UIKitCore 0x00007fff4715f262 -[UIApplication workspace:didCreateScene:withTransitionContext:completion:] + 535
35 UIKitCore 0x00007fff46cdf774 -[UIApplicationSceneClientAgent scene:didInitializeWithEvent:completion:] + 361
36 FrontBoardServices 0x00007fff362e1d43 -[FBSSceneImpl _callOutQueue_agent_didCreateWithTransitionContext:completion:] + 442
37 FrontBoardServices 0x00007fff3630a00c __86-[FBSWorkspaceScenesClient sceneID:createWithParameters:transitionContext:completion:]_block_invoke.154 + 102
38 FrontBoardServices 0x00007fff362ecd21 -[FBSWorkspace _calloutQueue_executeCalloutFromSource:withBlock:] + 220
39 FrontBoardServices 0x00007fff36309c9d __86-[FBSWorkspaceScenesClient sceneID:createWithParameters:transitionContext:completion:]_block_invoke + 355
40 libdispatch.dylib 0x000000010a387d64 _dispatch_client_callout + 8
41 libdispatch.dylib 0x000000010a38acd5 _dispatch_block_invoke_direct + 300
42 FrontBoardServices 0x00007fff3633108a __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 30
43 FrontBoardServices 0x00007fff36330d78 -[FBSSerialQueue _queue_performNextIfPossible] + 441
44 FrontBoardServices 0x00007fff36331287 -[FBSSerialQueue _performNextFromRunLoopSource] + 22
45 CoreFoundation 0x00007fff23afbac1 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
46 CoreFoundation 0x00007fff23afb9ec __CFRunLoopDoSource0 + 76
47 CoreFoundation 0x00007fff23afb1c4 __CFRunLoopDoSources0 + 180
48 CoreFoundation 0x00007fff23af5ecf __CFRunLoopRun + 1263
49 CoreFoundation 0x00007fff23af56b6 CFRunLoopRunSpecific + 438
50 GraphicsServices 0x00007fff3815cbb0 GSEventRunModal + 65
51 UIKitCore 0x00007fff47162a67 UIApplicationMain + 1621
52 myApp 0x000000010a0040d1 main + 65
53 libdyld.dylib 0x00007fff5123bcf5 start + 1
54 ??? 0x0000000000000001 0x0 + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
(lldb)
You've implemented -[ application:didReceiveRemoteNotification:fetchCompletionHandler:], but you still need to add "remote-notification" to the list of your supported UIBackgroundModes in your Info.plist .
Are you using notificayion in your app ,if so make what they are asking else check your app if there is a method that have un ended loop so that it is causing the app to throw execption of rebound.
We upgraded google admob v7.5.1 to v7.7.0 through pod file. After upgrade app crash on launching with following log.
2016-03-21 12:17:47.065 myAppName[3672:83997] -[NSTaggedPointerString count]: unrecognized selector sent to instance 0xa0110632e20924c9
2016-03-21 12:17:47.119 myAppName[3672:83997] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NSTaggedPointerString count]: unrecognized selector sent to instance 0xa0110632e20924c9'
*** First throw call stack:
(
0 CoreFoundation 0x000000010a3e8e65 __exceptionPreprocess + 165
1 libobjc.A.dylib 0x0000000109e5fdeb objc_exception_throw + 48
2 CoreFoundation 0x000000010a3f148d -[NSObject(NSObject) doesNotRecognizeSelector:] + 205
3 CoreFoundation 0x000000010a33e90a ___forwarding___ + 970
4 CoreFoundation 0x000000010a33e4b8 _CF_forwarding_prep_0 + 120
5 CoreFoundation 0x000000010a300e84 -[NSSet initWithArray:] + 36
6 myAppName 0x000000010579e66e hasRequiredParams + 19102
7 myAppName 0x000000010579c3a3 hasRequiredParams + 10195
8 myAppName 0x000000010579c1fc hasRequiredParams + 9772
9 myAppName 0x000000010579c048 hasRequiredParams + 9336
10 myAppName 0x000000010573ad87 GADiTunesMetadataForFileAtPath + 2024
11 myAppName 0x000000010573a7d2 GADiTunesMetadataForFileAtPath + 563
12 Foundation 0x0000000106d07790 -[__NSObserver _doit:] + 304
13 CoreFoundation 0x000000010a3b569c __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 12
14 CoreFoundation 0x000000010a3b53db _CFXRegistrationPost + 427
15 CoreFoundation 0x000000010a3b5142 ___CFXNotificationPost_block_invoke + 50
16 CoreFoundation 0x000000010a3fa972 -[_CFXNotificationRegistrar find:object:observer:enumerator:] + 1986
17 CoreFoundation 0x000000010a2b0279 _CFXNotificationPost + 633
18 Foundation 0x0000000106ceb109 -[NSNotificationCenter postNotificationName:object:userInfo:] + 66
19 UIKit 0x0000000107cb06f0 -[UIApplication _callInitializationDelegatesForMainScene:transitionContext:] + 4272
20 UIKit 0x0000000107cb6cc6 -[UIApplication _runWithMainScene:transitionContext:completion:] + 1760
21 UIKit 0x0000000107cb3e7b -[UIApplication workspaceDidEndTransaction:] + 188
22 FrontBoardServices 0x000000010bcdf754 -[FBSSerialQueue _performNext] + 192
23 FrontBoardServices 0x000000010bcdfac2 -[FBSSerialQueue _performNextFromRunLoopSource] + 45
24 CoreFoundation 0x000000010a314a31 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
25 CoreFoundation 0x000000010a30a95c __CFRunLoopDoSources0 + 556
26 CoreFoundation 0x000000010a309e13 __CFRunLoopRun + 867
27 CoreFoundation 0x000000010a309828 CFRunLoopRunSpecific + 488
28 UIKit 0x0000000107cb37cd -[UIApplication _run] + 402
29 UIKit 0x0000000107cb8610 UIApplicationMain + 171
30 myAppName 0x00000001055b4c7e main + 62
31 libdyld.dylib 0x000000010a8d492d start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
I have created an app that is running great on 5.0 and above but when I test on devices lower I have ran into a few issues that I am unsure of how to tackle and correct.
The first big issue is when saving to core data I use a error method that I believe is apples default error method that is created when you make a core data model. The app just crashes when below 5.0 but if I block out the error code everything works fine. Below is the code used to find and error and handle it.
NSError *error;
if (![managedObjectContext save:&error]) { // crash here
// This is a serious error saying the record could not be saved.
// Advise the user to restart the application
}
//crash log below
2012-05-13 10:17:22.062 PreviewMaker[41595:207] -[UIImage encodeWithCoder:]:
unrecognized selector sent to instance 0x5e7ce80
2012-05-13 10:17:22.064 PreviewMaker[41595:207] *** Terminating app due to uncaught
exception 'NSInvalidArgumentException', reason: '-[UIImage encodeWithCoder:]:
unrecognized selector sent to instance 0x5e7ce80'
*** Call stack at first throw:
(
0 CoreFoundation 0x013fc5a9 __exceptionPreprocess + 185
1 libobjc.A.dylib 0x0178b313 objc_exception_throw + 44
2 CoreFoundation 0x013fe0bb -[NSObject(NSObject)
doesNotRecognizeSelector:] + 187
3 CoreFoundation 0x0136d966 ___forwarding___ + 966
4 CoreFoundation 0x0136d522 _CF_forwarding_prep_0 + 50
5 Foundation 0x00c45b3e _encodeObject + 1076
6 Foundation 0x00c50f89 +[NSKeyedArchiver
archivedDataWithRootObject:] + 206
7 CoreData 0x01122cb5 -[NSSQLiteConnection execute] +
2677
8 CoreData 0x011771d6 -[NSSQLiteConnection insertRow:]
+ 262
9 CoreData 0x01173e64 -[NSSQLConnection
performAdapterOperations:] + 180
10 CoreData 0x01173b0e -[NSSQLCore
_performChangesWithAdapterOps:] + 494
11 CoreData 0x011725ea -[NSSQLCore performChanges] + 410
12 CoreData 0x0116c038 -[NSSQLCore saveChanges:] + 216
13 CoreData 0x0112a199 -[NSSQLCore
executeRequest:withContext:error:] + 409
14 CoreData 0x011da70b -[NSPersistentStoreCoordinator
executeRequest:withContext:error:] + 3691
15 CoreData 0x01162948 -[NSManagedObjectContext save:] +
712
16 PreviewMaker 0x0000a0c0 -[MainViewController
noUploadJustSaveImage:] + 331
17 PreviewMaker 0x00009d3c -[MainViewController
UserConfirmedToSaveImage] + 756
18 UIKit 0x004774fd -[UIApplication
sendAction:to:from:forEvent:] + 119
19 UIKit 0x00507799 -[UIControl
sendAction:to:forEvent:] + 67
20 UIKit 0x00509c2b -[UIControl(Internal)
_sendActionsForEvents:withEvent:] + 527
21 UIKit 0x005087d8 -[UIControl
touchesEnded:withEvent:] + 458
22 UIKit 0x0049bded -[UIWindow _sendTouchesForEvent:]
+ 567
23 UIKit 0x0047cc37 -[UIApplication sendEvent:] + 447
24 UIKit 0x00481f2e _UIApplicationHandleEvent + 7576
25 GraphicsServices 0x01eb8992 PurpleEventCallback + 1550
26 CoreFoundation 0x013dd944
__CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 52
27 CoreFoundation 0x0133dcf7 __CFRunLoopDoSource1 + 215
28 CoreFoundation 0x0133af83 __CFRunLoopRun + 979
29 CoreFoundation 0x0133a840 CFRunLoopRunSpecific + 208
30 CoreFoundation 0x0133a761 CFRunLoopRunInMode + 97
31 GraphicsServices 0x01eb71c4 GSEventRunModal + 217
32 GraphicsServices 0x01eb7289 GSEventRun + 115
33 UIKit 0x00485c93 UIApplicationMain + 1160
34 PreviewMaker 0x00002e07 main + 121
35 PreviewMaker 0x00002d85 start + 53
)
terminate called after throwing an instance of 'NSException'
Another issue I am running into is setting tintColor on UI objects such as the UISwitch. I have a settings controller that has several UISwitches and such which just about all have a tint color set on, but once agin anything below 5.0 crashes. How can I handle the two and not have to re-write the code just to be compatible with devices below 5.0.
shineSwitch = [[[UISwitch alloc] initWithFrame:CGRectZero] autorelease];
[cell.contentView addSubview:shineSwitch];
cell.accessoryView = shineSwitch;
[shineSwitch addTarget:self action:#selector(switchChanged:)
forControlEvents:UIControlEventValueChanged];
NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
shineSwitch.onTintColor = [UIColor colorWithRed:0.0 green:0.61 blue:0.99 alpha:1.0];
//crash Log below
2012-05-13 10:19:45.033 PreviewMaker[41611:207] -[UISwitch setOnTintColor:]:
unrecognized selector sent to instance 0x5eab860
2012-05-13 10:19:45.034 PreviewMaker[41611:207] *** Terminating app due to uncaught
exception 'NSInvalidArgumentException', reason: '-[UISwitch setOnTintColor:]:
unrecognized selector sent to instance 0x5eab860'
*** Call stack at first throw:
(
0 CoreFoundation 0x013fc5a9 __exceptionPreprocess + 185
1 libobjc.A.dylib 0x0178b313 objc_exception_throw + 44
2 CoreFoundation 0x013fe0bb -[NSObject(NSObject)
doesNotRecognizeSelector:] + 187
3 CoreFoundation 0x0136d966 ___forwarding___ + 966
4 CoreFoundation 0x0136d522 _CF_forwarding_prep_0 + 50
5 PreviewMaker 0x0000f6fb -[FlipsideViewController
tableView:cellForRowAtIndexPath:] + 1353
6 UIKit 0x004ecb98 -
[UITableView(UITableViewInternal) _createPreparedCellForGlobalRow:withIndexPath:] + 634
7 UIKit 0x004e24cc -
[UITableView(UITableViewInternal) _createPreparedCellForGlobalRow:] + 75
8 UIKit 0x004f78cc -
[UITableView(_UITableViewPrivate) _updateVisibleCellsNow:] + 1561
9 UIKit 0x004ef90c -[UITableView layoutSubviews] +
242
10 QuartzCore 0x001e2a5a -[CALayer layoutSublayers] + 181
11 QuartzCore 0x001e4ddc CALayerLayoutIfNeeded + 220
12 QuartzCore 0x0018a0b4
_ZN2CA7Context18commit_transactionEPNS_11TransactionE + 310
13 QuartzCore 0x0018b294 _ZN2CA11Transaction6commitEv +
292
14 QuartzCore 0x0018b46d
_ZN2CA11Transaction17observer_callbackEP19__CFRunLoopObservermPv + 99
15 CoreFoundation 0x013dd89b
__CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 27
16 CoreFoundation 0x013726e7 __CFRunLoopDoObservers + 295
17 CoreFoundation 0x0133b1d7 __CFRunLoopRun + 1575
18 CoreFoundation 0x0133a840 CFRunLoopRunSpecific + 208
19 CoreFoundation 0x0133a761 CFRunLoopRunInMode + 97
20 GraphicsServices 0x01eb71c4 GSEventRunModal + 217
21 GraphicsServices 0x01eb7289 GSEventRun + 115
22 UIKit 0x00485c93 UIApplicationMain + 1160
23 PreviewMaker 0x00002e07 main + 121
24 PreviewMaker 0x00002d85 start + 53
)
terminate called after throwing an instance of 'NSException'
Any help would be greatly appreciated!