When I try to run my Xcode project on my device (iPhone), Xcode is creating a runtime error. Project works fine in iOS Simulator.
I have:
Xcode Version 6.1 (6A1052d)
iOS Simulator Version 8.1 (550.3)
iPhone 5 with iOS 8.1
Project lang: Swift
backtrace info:
(lldb) bt
* thread #1: tid = 0x4e2ca, 0x1fed108c dyld`dyld_fatal_error, queue = 'com.apple.main-thread', stop reason = EXC_BREAKPOINT (code=EXC_ARM_BREAKPOINT, subcode=0xe7ffdefe)
* frame #0: 0x1fed108c dyld`dyld_fatal_error
frame #1: 0x1fed3902 dyld`dyld::halt(char const*) + 74
frame #2: 0x1fed3b1a dyld`dyld::fastBindLazySymbol(ImageLoader**, unsigned long) + 278
frame #3: 0x303dc094 libdyld.dylib`dyld_stub_binder + 20
frame #4: 0x000f7df4 GCFSoccer`GCFSoccer.FavoritesTableViewController.init (aDecoder=0x18085000, self=0x17e31110)(coder : ObjectiveC.NSCoder) -> GCFSoccer.FavoritesTableViewController + 104 at FavoritesTableViewController.swift:19
frame #5: 0x000f80e4 GCFSoccer`#objc GCFSoccer.FavoritesTableViewController.init (GCFSoccer.FavoritesTableViewController.Type)(coder : ObjectiveC.NSCoder) -> GCFSoccer.FavoritesTableViewController + 68 at FavoritesTableViewController.swift:0
frame #6: 0x25f2ef20 UIKit`-[UIClassSwapper initWithCoder:] + 192
frame #7: 0x25ff5d9e UIKit`UINibDecoderDecodeObjectForValue + 850
frame #8: 0x25ff5cf4 UIKit`UINibDecoderDecodeObjectForValue + 680
frame #9: 0x25ff5a3e UIKit`-[UINibDecoder decodeObjectForKey:] + 334
frame #10: 0x25e4bdf8 UIKit`-[UIViewController initWithCoder:] + 1016
frame #11: 0x25e5eeea UIKit`-[UINavigationController initWithCoder:] + 46
frame #12: 0x25ff5d9e UIKit`UINibDecoderDecodeObjectForValue + 850
frame #13: 0x25ff5cf4 UIKit`UINibDecoderDecodeObjectForValue + 680
frame #14: 0x25ff5a3e UIKit`-[UINibDecoder decodeObjectForKey:] + 334
frame #15: 0x25e4bdf8 UIKit`-[UIViewController initWithCoder:] + 1016
frame #16: 0x25e69f02 UIKit`-[UITabBarController initWithCoder:] + 46
frame #17: 0x000c7648 GCFSoccer`GCFSoccer.MainTabBarController.init (aDecoder=0x18085000, self=0x17d4b120)(coder : ObjectiveC.NSCoder) -> GCFSoccer.MainTabBarController + 160 at MainTabBarController.swift:0
frame #18: 0x000c7724 GCFSoccer`#objc GCFSoccer.MainTabBarController.init (GCFSoccer.MainTabBarController.Type)(coder : ObjectiveC.NSCoder) -> GCFSoccer.MainTabBarController + 68 at MainTabBarController.swift:0
frame #19: 0x25f2ef20 UIKit`-[UIClassSwapper initWithCoder:] + 192
frame #20: 0x25ff5d9e UIKit`UINibDecoderDecodeObjectForValue + 850
frame #21: 0x25ff5a3e UIKit`-[UINibDecoder decodeObjectForKey:] + 334
frame #22: 0x25f2eb62 UIKit`-[UIRuntimeConnection initWithCoder:] + 150
frame #23: 0x25ff5d9e UIKit`UINibDecoderDecodeObjectForValue + 850
frame #24: 0x25ff5cf4 UIKit`UINibDecoderDecodeObjectForValue + 680
frame #25: 0x25ff5a3e UIKit`-[UINibDecoder decodeObjectForKey:] + 334
frame #26: 0x25f2e24e UIKit`-[UINib instantiateWithOwner:options:] + 958
frame #27: 0x260c3e9c UIKit`-[UIStoryboard instantiateViewControllerWithIdentifier:] + 196
frame #28: 0x25dd36d4 UIKit`-[UIApplication _loadMainStoryboardFileNamed:bundle:] + 64
frame #29: 0x25dd29f8 UIKit`-[UIApplication _runWithMainScene:transitionContext:completion:] + 1116
frame #30: 0x25ddd378 UIKit`__84-[UIApplication _handleApplicationActivationWithScene:transitionContext:completion:]_block_invoke + 36
frame #31: 0x25dd1386 UIKit`-[UIApplication workspaceDidEndTransaction:] + 130
frame #32: 0x28e3e0e8 FrontBoardServices`__31-[FBSSerialQueue performAsync:]_block_invoke + 12
frame #33: 0x2267839c CoreFoundation`__CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ + 12
frame #34: 0x22677660 CoreFoundation`__CFRunLoopDoBlocks + 216
frame #35: 0x22675de2 CoreFoundation`__CFRunLoopRun + 762
frame #36: 0x225c4210 CoreFoundation`CFRunLoopRunSpecific + 476
frame #37: 0x225c4022 CoreFoundation`CFRunLoopRunInMode + 106
frame #38: 0x25bd53ee UIKit`-[UIApplication _run] + 558
frame #39: 0x25bd01d0 UIKit`UIApplicationMain + 1440
frame #40: 0x0010c824 GCFSoccer`top_level_code + 72 at AppDelegate.swift:12
frame #41: 0x0010c860 GCFSoccer`main + 48 at AppDelegate.swift:0
(lldb)
Thank you for your help in advance!
Related
My app is in app store which supports iOS 7.1.2 to iOS 8.4 and it is working fine till 8.4 version. When I tried to run the same app on iOS 9 beta 5 its getting crashed.It was working fine in iOS 9 beta 4. After debugging I found that the crash is due to the custom font we have used in our app. Is this the problem with iOs 9 beta 5 ? What should I do to support my app on iOS 9.0 main release which will be expecting in a week.
Below is the stack trace of crash
thread #1: tid = 0x6d68, 0x0000000184d6e1a4 CoreTextOTL::GPOS::ApplyPairPos(OTL::LookupSubtable const*,
OTL::TGlyphIterator&, OTL::Coverage const&) const + 636, queue =
'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1,
address=0x3020451cc)
frame #0: 0x0000000184d6e1a4 CoreTextOTL::GPOS::ApplyPairPos(OTL::LookupSubtable const*,
OTL::TGlyphIterator&, OTL::Coverage const&) const + 636
frame #1: 0x0000000184d72b14 CoreTextOTL::GPOS::ApplyLookupSubtable(OTL::Lookup const&, unsigned
int, OTL::LookupSubtable const*, OTL::TGlyphIterator&, OTL::Coverage
const&) const + 116
frame #2: 0x0000000184d81690 CoreTextOTL::GPOS::ApplyLookups(TRunGlue&, int, OTL::GlyphLookups&)
const + 544
frame #3: 0x0000000184d80dc0 CoreTextTOpenTypePositioningEngine::PositionRuns(SyncState&,
KerningStatus&) + 628
frame #4: 0x0000000184cea7b4 CoreTextTKerningEngine::PositionGlyphs(TRunGlue&, ShapingType,
AnnexTableFlag) + 188
frame #5: 0x0000000184ce90a4 CoreTextCTFontTransformGlyphs + 440
frame #6: 0x000000019504c85c UIFoundation__NSStringDrawingEngine + 8788
frame #7: 0x000000019504a5bc UIFoundation-[NSString(NSExtendedStringDrawing)
boundingRectWithSize:options:attributes:context:] + 156
frame #8: 0x0000000189731724 UIKit-[UILabel _textRectForBounds:limitedToNumberOfLines:includingShadow:] + 780
frame #9: 0x000000018973137c UIKit-[UILabel _intrinsicSizeWithinSize:] + 132
frame #10: 0x000000018982c548 UIKit-[UILabel intrinsicContentSize] + 72
frame #11: 0x000000018982c3a8 UIKit-[UIView(UIConstraintBasedLayout)
_generateContentSizeConstraints] + 48
frame #12: 0x000000018982bdbc UIKit-[UIView(UIConstraintBasedLayout) _updateContentSizeConstraints]
588
frame #13: 0x0000000189827e5c UIKit-[UIView(AdditionalLayoutSupport) updateConstraints] + 244
frame #14: 0x000000018982bb60 UIKit-[UILabel updateConstraints] + 220
frame #15: 0x0000000189f28c8c UIKit`-[UIView(AdditionalLayoutSupport)
_internalUpdateConstraintsIfNeededAccumulatingViewsNeedingSecondPassAndViewsNeedingBaselineUpdate:forSecondPass:]
460
frame #16: 0x0000000189f28ef4 UIKit`-[UIView(AdditionalLayoutSupport)
_updateConstraintsIfNeededAccumulatingViewsNeedingSecondPassAndViewsNeedingBaselineUpdate:forSecondPass:]
200
frame #17: 0x0000000189f28bbc UIKit`-[UIView(AdditionalLayoutSupport)
_internalUpdateConstraintsIfNeededAccumulatingViewsNeedingSecondPassAndViewsNeedingBaselineUpdate:forSecondPass:]
252
frame #18: 0x00000001850b0c00 Foundation-[NSISEngine withBehaviors:performModifications:] + 168
frame #19: 0x000000018982ab78 UIKit-[UIView(AdditionalLayoutSupport)
_withAutomaticEngineOptimizationDisabledIfEngineExists:] + 64
frame #20: 0x0000000189f28ec8 UIKit`-[UIView(AdditionalLayoutSupport)
_updateConstraintsIfNeededAccumulatingViewsNeedingSecondPassAndViewsNeedingBaselineUpdate:forSecondPass:]
156
frame #21: 0x0000000189f28bbc UIKit`-[UIView(AdditionalLayoutSupport)
_internalUpdateConstraintsIfNeededAccumulatingViewsNeedingSecondPassAndViewsNeedingBaselineUpdate:forSecondPass:]
252
frame #22: 0x0000000189f28ef4 UIKit`-[UIView(AdditionalLayoutSupport)
_updateConstraintsIfNeededAccumulatingViewsNeedingSecondPassAndViewsNeedingBaselineUpdate:forSecondPass:]
200
frame #23: 0x000000018982ba5c UIKit__60-[UIView(AdditionalLayoutSupport)
updateConstraintsIfNeeded]_block_invoke + 100
frame #24: 0x00000001850b0c00 Foundation-[NSISEngine withBehaviors:performModifications:] + 168
frame #25: 0x000000018982ab78 UIKit-[UIView(AdditionalLayoutSupport)
_withAutomaticEngineOptimizationDisabledIfEngineExists:] + 64
frame #26: 0x000000018982b690 UIKit-[UIView(AdditionalLayoutSupport) updateConstraintsIfNeeded] +
244
frame #27: 0x0000000189848094 UIKit-[UIWindow(UIConstraintBasedLayout) updateConstraintsIfNeeded] +
108
frame #28: 0x0000000189f29598 UIKit-[UIView(AdditionalLayoutSupport)
_updateConstraintsAtEngineLevelIfNeeded] + 268
frame #29: 0x0000000189a27808 UIKit-[UIView(Hierarchy) _updateConstraintsAsNecessaryAndApplyLayoutFromEngine] + 176
frame #30: 0x0000000189722640 UIKit-[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 688
frame #31: 0x0000000188f31f14 QuartzCore-[CALayer layoutSublayers] + 148
frame #32: 0x0000000188f2cb20 QuartzCoreCA::Layer::layout_if_needed(CA::Transaction*) + 292
frame #33: 0x0000000188f2c9e0 QuartzCoreCA::Layer::layout_and_display_if_needed(CA::Transaction*) +
32
frame #34: 0x0000000188f2c07c QuartzCoreCA::Context::commit_transaction(CA::Transaction*) + 252
frame #35: 0x0000000188f2bdd0 QuartzCoreCA::Transaction::commit() + 516
frame #36: 0x0000000188f254bc QuartzCoreCA::Transaction::observer_callback(CFRunLoopObserver*,
unsigned long, void*) + 80
frame #37: 0x00000001841cc768 CoreFoundation`__CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION
32
frame #38: 0x00000001841ca50c CoreFoundation__CFRunLoopDoObservers + 372
frame #39: 0x00000001840f98c0 CoreFoundationCFRunLoopRunSpecific + 416
frame #40: 0x00000001897931ec UIKit-[UIApplication _run] + 460
frame #41: 0x000000018978e0d4 UIKitUIApplicationMain + 204 * frame #42: 0x000000010004eb08 SampleFontmain(argc=1,
argv=0x000000016fdb7af0) + 124 at main.m:14
frame #43: 0x00000001994ae8b8 libdyld.dylibstart + 4
I am trying to implement a "disappearing" url bar, when the users scrolls in the webview.
The function below gets called in - (void)scrollViewDidScroll:(UIScrollView *)scrollView.
For specific webpages the app freezes completely and uses 100% CPU. From trial and error we concluded that removing the CGAffineTransformScale fixes this. I am trying to understand why this happens and how else I could implement the same functionality.
- (void)collapseQueryBox
{
_URLBarState = CLQURLBarStateCollapsing;
_queryBoxViewHeightConstraint.constant = COLLAPSED_QUERYBOX_HEIGHT;
[UIView animateWithDuration:COLLAPSE_ANIMATION_DURATION animations:^{
_webView.scrollView.contentInset = UIEdgeInsetsMake(0, 0, 0, 0);
_queryLabel.transform = CGAffineTransformScale(_queryLabel.transform, COLLAPSE_ANIMATION_SCALE_FACTOR, COLLAPSE_ANIMATION_SCALE_FACTOR);
_queryLabel.layer.backgroundColor = [UIColor clearColor].CGColor;
[_browserContainerView layoutIfNeeded];
} completion:^(BOOL finished) {
_URLBarState = CLQURLBarStateCollapsed;
}];
}
The full stack trace of the paused app in the frozen state:
* thread #1: tid = 0xcbf9f, 0x025b40be libobjc.A.dylib`objc_msgSend + 26, queue = 'com.apple.main-thread', stop reason = signal SIGSTOP
* frame #0: 0x025b40be libobjc.A.dylib`objc_msgSend + 26
frame #1: 0x008cf411 Foundation`-[NSISEngine variableToWorkOnAmongVariablesWithIntegralizationViolationsIgnoringLostCauses:varsAlreadyAdjusted:] + 491
frame #2: 0x00a41ea3 Foundation`__44-[NSISEngine fixupIntegralizationViolations]_block_invoke + 1285
frame #3: 0x00a4368c Foundation`-[NSISEngine withBehaviors:performModifications:] + 107
frame #4: 0x008cf21a Foundation`-[NSISEngine withoutOptimizingAtEndRunBlockWithAutomaticOptimizationDisabled:] + 48
frame #5: 0x008cf1d9 Foundation`-[NSISEngine fixupIntegralizationViolations] + 96
frame #6: 0x008ceef8 Foundation`-[NSISEngine optimize] + 204
frame #7: 0x008d57e3 Foundation`-[NSISEngine constraintDidChangeSuchThatMarker:shouldBeReplacedByMarkerPlusDelta:] + 336
frame #8: 0x00a43e23 Foundation`-[NSISEngine tryToChangeConstraintSuchThatMarker:isReplacedByMarkerPlusDelta:undoHandler:] + 489
frame #9: 0x00a4b2d5 Foundation`-[NSLayoutConstraint _tryToChangeContainerGeometryWithUndoHandler:] + 578
frame #10: 0x008c8d4f Foundation`-[NSLayoutConstraint _setSymbolicConstant:constant:] + 384
frame #11: 0x008cb6a1 Foundation`-[NSLayoutConstraint setConstant:] + 52
frame #12: 0x00e398a5 UIKit`-[UIScrollView setContentSize:] + 566
frame #13: 0x01030a5a UIKit`-[UITableViewCell _updateWrapperContentInset] + 117
frame #14: 0x0103963a UIKit`-[UITableViewCell setFrame:] + 701
frame #15: 0x00e1b7b0 UIKit`-[UIView(Geometry) _applyAutoresizingMaskWithOldSuperviewSize:] + 840
frame #16: 0x00e1c552 UIKit`-[UIView(Geometry) _resizeWithOldSuperviewSize:] + 290
frame #17: 0x00e1c5aa UIKit`-[UIView(Geometry) resizeWithOldSuperviewSize:] + 80
frame #18: 0x00e1b185 UIKit`__46-[UIView(Geometry) resizeSubviewsWithOldSize:]_block_invoke + 87
frame #19: 0x028a1d86 CoreFoundation`__53-[__NSArrayM enumerateObjectsWithOptions:usingBlock:]_block_invoke + 102
frame #20: 0x028a1c5f CoreFoundation`-[__NSArrayM enumerateObjectsWithOptions:usingBlock:] + 239
frame #21: 0x00e1b115 UIKit`-[UIView(Geometry) resizeSubviewsWithOldSize:] + 149
frame #22: 0x00e19c4e UIKit`-[UIView(Geometry) setFrame:] + 559
frame #23: 0x00e1b7b0 UIKit`-[UIView(Geometry) _applyAutoresizingMaskWithOldSuperviewSize:] + 840
frame #24: 0x00e1c552 UIKit`-[UIView(Geometry) _resizeWithOldSuperviewSize:] + 290
frame #25: 0x00e1c5aa UIKit`-[UIView(Geometry) resizeWithOldSuperviewSize:] + 80
frame #26: 0x00e1b185 UIKit`__46-[UIView(Geometry) resizeSubviewsWithOldSize:]_block_invoke + 87
frame #27: 0x028a1d86 CoreFoundation`__53-[__NSArrayM enumerateObjectsWithOptions:usingBlock:]_block_invoke + 102
frame #28: 0x028a1c5f CoreFoundation`-[__NSArrayM enumerateObjectsWithOptions:usingBlock:] + 239
frame #29: 0x00e1b115 UIKit`-[UIView(Geometry) resizeSubviewsWithOldSize:] + 149
frame #30: 0x00eadc1a UIKit`-[UITableView resizeSubviewsWithOldSize:] + 98
frame #31: 0x00e1c819 UIKit`-[UIView(Geometry) setBounds:] + 510
frame #32: 0x00e39627 UIKit`-[UIScrollView setBounds:] + 1036
frame #33: 0x00eadf5f UIKit`-[UITableView setBounds:] + 260
frame #34: 0x00e1befd UIKit`-[UIView(Geometry) _applyISEngineLayoutValues] + 324
frame #35: 0x00e1c4c0 UIKit`-[UIView(Geometry) _resizeWithOldSuperviewSize:] + 144
frame #36: 0x00e457bb UIKit`-[UIScrollView _resizeWithOldSuperviewSize:] + 73
frame #37: 0x00e1c5aa UIKit`-[UIView(Geometry) resizeWithOldSuperviewSize:] + 80
frame #38: 0x00e1b185 UIKit`__46-[UIView(Geometry) resizeSubviewsWithOldSize:]_block_invoke + 87
frame #39: 0x028a1d86 CoreFoundation`__53-[__NSArrayM enumerateObjectsWithOptions:usingBlock:]_block_invoke + 102
frame #40: 0x028a1c5f CoreFoundation`-[__NSArrayM enumerateObjectsWithOptions:usingBlock:] + 239
frame #41: 0x00e1b115 UIKit`-[UIView(Geometry) resizeSubviewsWithOldSize:] + 149
frame #42: 0x0145961c UIKit`-[UIView(AdditionalLayoutSupport) _is_layout] + 158
frame #43: 0x00e20336 UIKit`-[UIView(Hierarchy) layoutSubviews] + 80
frame #44: 0x00e2d964 UIKit`-[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 355
frame #45: 0x025b682b libobjc.A.dylib`-[NSObject performSelector:withObject:] + 70
frame #46: 0x01df345a QuartzCore`-[CALayer layoutSublayers] + 148
frame #47: 0x01de7244 QuartzCore`CA::Layer::layout_if_needed(CA::Transaction*) + 380
frame #48: 0x01de70b0 QuartzCore`CA::Layer::layout_and_display_if_needed(CA::Transaction*) + 26
frame #49: 0x01d4d7fa QuartzCore`CA::Context::commit_transaction(CA::Transaction*) + 294
frame #50: 0x01d4eb85 QuartzCore`CA::Transaction::commit() + 393
frame #51: 0x01d4f258 QuartzCore`CA::Transaction::observer_callback(__CFRunLoopObserver*, unsigned long, void*) + 92
frame #52: 0x027ed36e CoreFoundation`__CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 30
frame #53: 0x027ed2bf CoreFoundation`__CFRunLoopDoObservers + 399
frame #54: 0x027cb254 CoreFoundation`__CFRunLoopRun + 1076
frame #55: 0x027ca9d3 CoreFoundation`CFRunLoopRunSpecific + 467
frame #56: 0x027ca7eb CoreFoundation`CFRunLoopRunInMode + 123
frame #57: 0x041895ee GraphicsServices`GSEventRunModal + 192
frame #58: 0x0418942b GraphicsServices`GSEventRun + 104
frame #59: 0x00dbef9b UIKit`UIApplicationMain + 1225
When I click on any button my app crashes. It throws a lldb run time error. I printed the backtrace:
* thread #1: tid = 0x2aaf3, 0x000000018db701c0 libobjc.A.dylib`objc_exception_throw, queue = 'com.apple.main-thread', stop reason = breakpoint 1.1 2.1
frame #0: 0x000000018db701c0 libobjc.A.dylib`objc_exception_throw
frame #1: 0x0000000181666bd4 CoreFoundation`-[NSException raise] + 12
frame #2: 0x0000000182124720 Foundation`-[NSObject(NSKeyValueCoding) setValue:forKey:] + 256
frame #3: 0x00000001815b25ec CoreFoundation`-[NSArray makeObjectsPerformSelector:] + 248
frame #4: 0x00000001849eadd0 UIKit`-[UINib instantiateWithOwner:options:] + 1232
frame #5: 0x000000018492f878 UIKit`-[UIViewController _loadViewFromNibNamed:bundle:] + 280
frame #6: 0x0000000184630488 UIKit`-[UIViewController loadViewIfRequired] + 88
frame #7: 0x00000001846303f4 UIKit`-[UIViewController view] + 32
frame #8: 0x00000001847dd868 UIKit`-[UINavigationController _startCustomTransition:] + 704
frame #9: 0x00000001846e7f54 UIKit`-[UINavigationController _startDeferredTransitionIfNeeded:] + 464
frame #10: 0x00000001846e7d24 UIKit`-[UINavigationController __viewWillLayoutSubviews] + 56
frame #11: 0x00000001846e7ca4 UIKit`-[UILayoutContainerView layoutSubviews] + 200
frame #12: 0x000000018462aff8 UIKit`-[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 348
frame #13: 0x000000018421c258 QuartzCore`-[CALayer layoutSublayers] + 184
frame #14: 0x0000000184216e20 QuartzCore`CA::Layer::layout_if_needed(CA::Transaction*) + 300
frame #15: 0x0000000184216cd8 QuartzCore`CA::Layer::layout_and_display_if_needed(CA::Transaction*) + 32
frame #16: 0x0000000184216560 QuartzCore`CA::Context::commit_transaction(CA::Transaction*) + 280
frame #17: 0x0000000184216304 QuartzCore`CA::Transaction::commit() + 424
frame #18: 0x000000018420fc38 QuartzCore`CA::Transaction::observer_callback(__CFRunLoopObserver*, unsigned long, void*) + 80
frame #19: 0x00000001816276a8 CoreFoundation`__CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 32
frame #20: 0x0000000181624930 CoreFoundation`__CFRunLoopDoObservers + 372
frame #21: 0x0000000181624cbc CoreFoundation`__CFRunLoopRun + 764
frame #22: 0x0000000181565c20 CoreFoundation`CFRunLoopRunSpecific + 452
frame #23: 0x000000018724dc0c GraphicsServices`GSEventRunModal + 168
frame #24: 0x0000000184696fdc UIKit`UIApplicationMain + 1156
* frame #25: 0x00000001001297a4 myapp`main(argc=1, argv=0x000000016fd33ca8) + 116 at main.m:16
frame #26: 0x000000018e163aa0 libdyld.dylib`start + 4
What does it mean?
This is your problem:
Foundation`-[NSObject(NSKeyValueCoding) setValue:forKey:]
because after this, is raised an Exception:
CoreFoundation`-[NSException raise] + 12
You are trying to set a value for a key in your object that could not exists or has some other problem.
P.S.: Update your answer with some relevant code so I can update my answer with more explanations.
I developed an app in Xcode 5. Until now I only tested it on a device running iOS 7. I tried running it on another device with iOS 6 but it crashes on launch in the main function without any error message in the console. The deployment target is 6.0 and I've chosen Standard architectures(armv7, armv7s) in the Build Settings.
I also checked the code for methods available only for iOS 7. Could it be that I accidentally skipped one? As for as I know I should get an error message if it doesn't recognise the method.
I'm not a newbie on iOS development, but something is skipping my attention. Do you have any idea what it could be?
I would really appreciate your help. Thank you.
UPDATE:
This is it... Could it be something in the plist...?
I finally got to the bottom of this problem thanks to "OC Rickard". Writing 'bt' in the console, this was the output:
thread #1: tid = 0x2503, 0x38a8b454 CoreFoundationCFDictionaryRemoveValue + 12, queue = 'com.apple.main-thread, stop reason = EXC_BAD_ACCESS (code=1, address=0x0)
frame #0: 0x38a8b454 CoreFoundationCFDictionaryRemoveValue + 12
frame #1: 0x36e58e28 GraphicsServicesRemoveFont + 740
frame #2: 0x36e58868 GraphicsServicesAddFontsFromCGFontAndPath + 332
frame #3: 0x36e58660 GraphicsServicesAddFontsFromURLOrPath + 156
frame #4: 0x36e59e12 GraphicsServicesInitialize_block_invoke_0 + 378
frame #5: 0x36e3a4b6 libdispatch.dylib_dispatch_client_callout + 22
frame #6: 0x36e403f6 libdispatch.dylibdispatch_once_f$VARIANT$mp + 42
frame #7: 0x36e57f7a GraphicsServicesInitialize + 78
frame #8: 0x36e57fc0 GraphicsServicesGSFontCreateWithName + 56
frame #9: 0x31c7cfea UIKitUINewFont + 58
frame #10: 0x31c7cf9a UIKit+[UIFont systemFontOfSize:traits:] + 18
frame #11: 0x31fa608c UIKit-[UIStatusBarServiceItemView _contentsImageFromString:withWidth:letterSpacing:forStyle:] + 124
frame #12: 0x31cd888a UIKit-[UIStatusBarServiceItemView _serviceContentsImageForStyle:] + 362
frame #13: 0x31cd84ac UIKit-[UIStatusBarServiceItemView updateContentsAndWidth] + 140
frame #14: 0x31cd823e UIKit-[UIStatusBarItemView initWithItem:data:actions:style:] + 306
frame #15: 0x31cd7f90 UIKit-[UIStatusBarLayoutManager _createViewForItem:withData:actions:] + 108
frame #16: 0x31c877de UIKit-[UIStatusBarLayoutManager _prepareEnabledItemType:withEnabledItems:withData:actions:itemAppearing:itemDisappearing:] + 134
frame #17: 0x31c8770e UIKit-[UIStatusBarLayoutManager prepareEnabledItems:withData:actions:] + 82
frame #18: 0x31f9e910 UIKit-[UIStatusBarForegroundView _setStatusBarData:actions:animated:] + 168
frame #19: 0x31c87662 UIKit-[UIStatusBarForegroundView setStatusBarData:actions:animated:] + 722
frame #20: 0x31cd7516 UIKit-[UIStatusBar _prepareToSetStyle:animation:] + 794
frame #21: 0x31c8978e UIKit-[UIStatusBar requestStyle:animationParameters:] + 558
frame #22: 0x31c894a8 UIKit-[UIStatusBar requestStyle:animated:] + 84
frame #23: 0x31cd2f6e UIKit-[UIApplication _createStatusBarWithRequestedStyle:orientation:hidden:] + 258
frame #24: 0x31cd2736 UIKit-[UIApplication _runWithURL:payload:launchOrientation:statusBarStyle:statusBarHidden:] + 430
frame #25: 0x31c7ac38 UIKit-[UIApplication handleEvent:withNewEvent:] + 1004
frame #26: 0x31c7a6cc UIKit-[UIApplication sendEvent:] + 72
frame #27: 0x31c7a11a UIKit_UIApplicationHandleEvent + 6154
frame #28: 0x36e5d5a2 GraphicsServices_PurpleEventCallback + 590
frame #29: 0x36e5d1d2 GraphicsServicesPurpleEventCallback + 34
frame #30: 0x38b1d172 CoreFoundation__CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION + 34
frame #31: 0x38b1d116 CoreFoundation__CFRunLoopDoSource1 + 138
frame #32: 0x38b1bf98 CoreFoundation__CFRunLoopRun + 1384
frame #33: 0x38a8eebc CoreFoundationCFRunLoopRunSpecific + 356
frame #34: 0x38a8ed48 CoreFoundationCFRunLoopRunInMode + 104
frame #35: 0x31cd147c UIKit-[UIApplication _run] + 668
frame #36: 0x31cce2f8 UIKitUIApplicationMain + 1120
frame #37: 0x00085f96 iSpyLovemain(argc=1, argv=0x2fd98d20) + 110 at main.m:16
frame #38: 0x362fab20 libdyld.dylibstart + 4
I had a font declared in the plist file which had .dfont extension. Apparently iOS 6 didn't like this. Thank you "OC Rickard", and thanks to all of you guys for taking interest in my problem.
I am trying to integrate RevMobAds into my iOS application. It is crashing on the very first line,
[RevMobAds startSessionWithAppID:#"myAppID"];
How to solve this issue? I followed the instructions given here: http://sdk.revmob.com/ios.html. I am using the SDK 5.6.0. Please let me know. The following is the crash log.
* thread #1: tid = 0x1f03, 0x029c109f libobjc.A.dylib`objc_msgSend + 19, stop reason = EXC_BAD_ACCESS (code=2, address=0x0)
frame #0: 0x029c109f libobjc.A.dylib`objc_msgSend + 19
frame #1: 0x029acb2e libobjc.A.dylib`objc_setProperty_non_gc + 62
frame #2: 0x029acd0d libobjc.A.dylib`objc_setProperty + 47
frame #3: 0x0016cbb6 MyApp`-[RevMobHttpClient setOnSuccess:] + 63 at RevMobHttpClient.h:9
frame #4: 0x0016c621 MyApp`-[RevMobHttpClient post:toUrl:onSuccess:onFailure:] + 56 at RevMobHttpClient.m:112
frame #5: 0x0016be43 MyApp`+[RevMobHttpClient post:toUrl:onSuccess:onFailure:] + 195 at RevMobHttpClient.m:45
frame #6: 0x001645d4 MyApp`-[RevMobSessionStarter start] + 203 at RevMobSessionStarter.m:42
frame #7: 0x00161bfb MyApp`+[RevMobSessionManager startSessionWithAppID:delegate:testingMode:sdkName:sdkVersion:] + 467 at RevMobSessionManager.m:145
frame #8: 0x0015ce99 MyApp`+[RevMobAds startSessionWithAppID:delegate:testingMode:sdkName:sdkVersion:] + 145 at RevMobAds.m:111
frame #9: 0x0015cf08 MyApp`+[RevMobAds startSessionWithAppID:] + 75 at RevMobAds.m:126
frame #10: 0x00002b5f MyApp`-[MyAppAppDelegate application:didFinishLaunchingWithOptions:] + 111 at MyAppAppDelegate.m:26
frame #11: 0x00b3f7b7 UIKit`-[UIApplication _handleDelegateCallbacksWithOptions:isSuspended:restoreState:] + 266
frame #12: 0x00b3fda7 UIKit`-[UIApplication _callInitializationDelegatesForURL:payload:suspended:] + 1248
frame #13: 0x00b40fab UIKit`-[UIApplication _runWithURL:payload:launchOrientation:statusBarStyle:statusBarHidden:] + 805
frame #14: 0x00b52315 UIKit`-[UIApplication handleEvent:withNewEvent:] + 1022
frame #15: 0x00b5324b UIKit`-[UIApplication sendEvent:] + 85
frame #16: 0x00b44cf8 UIKit`_UIApplicationHandleEvent + 9874
frame #17: 0x02eb8df9 GraphicsServices`_PurpleEventCallback + 339
frame #18: 0x02eb8ad0 GraphicsServices`PurpleEventCallback + 46
frame #19: 0x02efdbf5 CoreFoundation`__CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 53
frame #20: 0x02efd962 CoreFoundation`__CFRunLoopDoSource1 + 146
frame #21: 0x02f2ebb6 CoreFoundation`__CFRunLoopRun + 2118
frame #22: 0x02f2df44 CoreFoundation`CFRunLoopRunSpecific + 276
frame #23: 0x02f2de1b CoreFoundation`CFRunLoopRunInMode + 123
frame #24: 0x00b407da UIKit`-[UIApplication _run] + 774
frame #25: 0x00b4265c UIKit`UIApplicationMain + 1211
frame #26: 0x00002abd MyApp`main + 125 at main.m:14
Thanks.
I am not sure the exact issue. The project in which I tried integrate the SDK was created in an older version of SDK. I created new project in new Xcode, integrated the SDK and it worked fine. Thank you everyone.