App crashes while using custom fonts in iOS 9 beta 5 - ios

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

Related

main thread was blocked when i use UIWebView

Today i find a bug in my app relate to UIWebView, there are two case for it, the url i request is https://estore-cn.pandora.net/Bracelets-1/
When I use UIWebView to show a web page, and I exit that page, the webView's dealloc been called, but the UI thread been blocked, and several minutes later it recovers.
This is the thread stack here when I press pause program execution button in Xcode.
* thread #1: tid = 0x580710, 0x0000000180da3f6c libsystem_kernel.dylib`__psynch_mutexwait + 8, queue = 'com.apple.main-thread', stop reason = signal SIGSTOP
* frame #0: 0x0000000180da3f6c libsystem_kernel.dylib`__psynch_mutexwait + 8
frame #1: 0x0000000180e7239c libsystem_pthread.dylib`_pthread_mutex_lock_wait + 96
frame #2: 0x0000000180e7257c libsystem_pthread.dylib`_pthread_mutex_lock_slow + 296
frame #3: 0x00000001850dc3b0 WebCore`_WebTryThreadLock(bool) + 52
frame #4: 0x00000001850dcb3c WebCore`WebThreadLock + 108
frame #5: 0x00000001865abfc0 UIKit`-[UIWebView dealloc] + 36
frame #6: 0x000000010032ba64 QDaily`-[QDWebView dealloc](self=0x00000001575f3980, _cmd="dealloc") + 148 at QDWebView.m:63
frame #7: 0x0000000180889ae8 libobjc.A.dylib`(anonymous namespace)::AutoreleasePoolPage::pop(void*) + 508
frame #8: 0x00000001810e89fc CoreFoundation`_CFAutoreleasePoolPop + 28
frame #9: 0x00000001811bebc0 CoreFoundation`__CFRunLoopRun + 1636
frame #10: 0x00000001810e8c50 CoreFoundation`CFRunLoopRunSpecific + 384
frame #11: 0x00000001829d0088 GraphicsServices`GSEventRunModal + 180
frame #12: 0x00000001863d6088 UIKit`UIApplicationMain + 204
frame #13: 0x000000010037490c QDaily`main(argc=1, argv=0x000000016fd03af0) + 172 at main.m:16
frame #14: 0x0000000180c868b8 libdyld.dylib`start + 4
second case is ,when i begin skip into the webView page, the same case happened.
thread #1: tid = 0x5801dc, 0x0000000180da3f6c libsystem_kernel.dylib`__psynch_mutexwait + 8, queue = 'com.apple.main-thread', stop reason = signal SIGSTOP
frame #0: 0x0000000180da3f6c libsystem_kernel.dylib`__psynch_mutexwait + 8
frame #1: 0x0000000180e7239c libsystem_pthread.dylib`_pthread_mutex_lock_wait + 96
frame #2: 0x0000000180e7257c libsystem_pthread.dylib`_pthread_mutex_lock_slow + 296
frame #3: 0x00000001850dc3b0 WebCore`_WebTryThreadLock(bool) + 52
frame #4: 0x00000001850dcb3c WebCore`WebThreadLock + 108
frame #5: 0x00000001867f3dc4 UIKit`-[UIWebView _webViewCommonInitWithWebView:scalesPageToFit:] + 128
frame #6: 0x00000001865a83ec UIKit`-[UIWebView initWithFrame:] + 80
frame #7: 0x00000001002abb60 QDaily`-[QDWebView initWithFrame:](self=0x0000000000000000, _cmd="initWithFrame:", frame=(origin = (x = 0, y = 20), size = (width = 414, height = 666))) + 120 at QDWebView.m:71
frame #8: 0x0000000100212244 QDaily`-[QDSimpleWebViewController viewDidLoad](self=0x0000000131225070, _cmd="viewDidLoad") + 796 at QDSimpleWebViewController.m:57
frame #9: 0x000000018636cc40 UIKit`-[UIViewController loadViewIfRequired] + 996
frame #10: 0x00000001863850d0 UIKit`-[UIViewController __viewWillAppear:] + 132
frame #11: 0x000000018651fe5c UIKit`-[UINavigationController _startCustomTransition:] + 1052
frame #12: 0x000000018642be40 UIKit`-[UINavigationController _startDeferredTransitionIfNeeded:] + 688
frame #13: 0x000000018642bb1c UIKit`-[UINavigationController __viewWillLayoutSubviews] + 60
frame #14: 0x000000018642ba84 UIKit`-[UILayoutContainerView layoutSubviews] + 208
frame #15: 0x00000001863681e4 UIKit`-[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 656
frame #16: 0x0000000183cf698c QuartzCore`-[CALayer layoutSublayers] + 148
frame #17: 0x0000000183cf15c8 QuartzCore`CA::Layer::layout_if_needed(CA::Transaction*) + 292
frame #18: 0x0000000183cf1488 QuartzCore`CA::Layer::layout_and_display_if_needed(CA::Transaction*) + 32
frame #19: 0x0000000183cf0ab8 QuartzCore`CA::Context::commit_transaction(CA::Transaction*) + 252
frame #20: 0x0000000183cf0818 QuartzCore`CA::Transaction::commit() + 500
frame #21: 0x000000018636aff4 UIKit`_UIApplicationHandleEventQueue + 4980
frame #22: 0x00000001811c109c CoreFoundation`__CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 24
frame #23: 0x00000001811c0b30 CoreFoundation`__CFRunLoopDoSources0 + 540
frame #24: 0x00000001811be830 CoreFoundation`__CFRunLoopRun + 724
frame #25: 0x00000001810e8c50 CoreFoundation`CFRunLoopRunSpecific + 384
frame #26: 0x00000001829d0088 GraphicsServices`GSEventRunModal + 180
frame #27: 0x00000001863d6088 UIKit`UIApplicationMain + 204
frame #28: 0x00000001002f490c QDaily`main(argc=1, argv=0x000000016fd83af0) + 172 at main.m:16
frame #29: 0x0000000180c868b8 libdyld.dylib`start + 4
I don't know how to resolve it
ADD: this is the webThread when happened dead lock
* thread #19: tid = 0x58076c, 0x00000001854180f0 WebCore`WTF::HashMap<unsigned long, WTF::RefPtr<WebCore::ResourceLoader>, WTF::IntHash<unsigned long>, WTF::HashTraits<unsigned long>, WTF::HashTraits<WTF::RefPtr<WebCore::ResourceLoader> > >::remove(unsigned long const&) + 164, name = 'WebThread'
* frame #0: 0x00000001854180f0 WebCore`WTF::HashMap<unsigned long, WTF::RefPtr<WebCore::ResourceLoader>, WTF::IntHash<unsigned long>, WTF::HashTraits<unsigned long>, WTF::HashTraits<WTF::RefPtr<WebCore::ResourceLoader> > >::remove(unsigned long const&) + 164
frame #1: 0x0000000185126e54 WebCore`WebCore::DocumentLoader::removeSubresourceLoader(WebCore::ResourceLoader*) + 40
frame #2: 0x00000001851292a0 WebCore`WebCore::ResourceLoader::cancel(WebCore::ResourceError const&) + 492
frame #3: 0x0000000185087764 WebCore`WebCore::ResourceLoader::init(WebCore::ResourceRequest const&) + 404
frame #4: 0x00000001850873fc WebCore`WebCore::SubresourceLoader::startLoading() + 36
frame #5: 0x000000018508735c WebCore`WebCore::ResourceLoadScheduler::servePendingRequests(WebCore::ResourceLoadScheduler::HostInformation*, WebCore::ResourceLoadPriority) + 516
frame #6: 0x00000001851070b8 WebCore`WebCore::ResourceLoadScheduler::servePendingRequests(WebCore::ResourceLoadPriority) + 412
frame #7: 0x0000000185079f1c WebCore`WebCore::ThreadTimers::sharedTimerFiredInternal() + 148
frame #8: 0x0000000185079e5c WebCore`WebCore::timerFired(__CFRunLoopTimer*, void*) + 36
frame #9: 0x00000001811c1794 CoreFoundation`__CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 28
frame #10: 0x00000001811c1438 CoreFoundation`__CFRunLoopDoTimer + 884
frame #11: 0x00000001811beb4c CoreFoundation`__CFRunLoopRun + 1520
frame #12: 0x00000001810e8c50 CoreFoundation`CFRunLoopRunSpecific + 384
frame #13: 0x00000001850da108 WebCore`RunWebThread(void*) + 456
frame #14: 0x0000000180e6fb28 libsystem_pthread.dylib`_pthread_body + 156
frame #15: 0x0000000180e6fa8c libsystem_pthread.dylib`_pthread_start + 156
frame #16: 0x0000000180e6d028 libsystem_pthread.dylib`thread_start + 4
ADD: JavaScriptCore :: Marking thread
* thread #20: tid = 0x58076d, 0x0000000180da3f24 libsystem_kernel.dylib`__psynch_cvwait + 8, name = 'JavaScriptCore::Marking'
* frame #0: 0x0000000180da3f24 libsystem_kernel.dylib`__psynch_cvwait + 8
frame #1: 0x0000000180e6ece8 libsystem_pthread.dylib`_pthread_cond_wait + 648
frame #2: 0x00000001807fb42c libc++.1.dylib`std::__1::condition_variable::wait(std::__1::unique_lock<std::__1::mutex>&) + 56
frame #3: 0x0000000184bc0d5c JavaScriptCore`JSC::GCThread::waitForNextPhase() + 144
frame #4: 0x0000000184bc0df4 JavaScriptCore`JSC::GCThread::gcThreadMain() + 84
frame #5: 0x0000000184896614 JavaScriptCore`WTF::threadEntryPoint(void*) + 212
frame #6: 0x0000000184896524 JavaScriptCore`WTF::wtfThreadEntryPoint(void*) + 24
frame #7: 0x0000000180e6fb28 libsystem_pthread.dylib`_pthread_body + 156
frame #8: 0x0000000180e6fa8c libsystem_pthread.dylib`_pthread_start + 156
frame #9: 0x0000000180e6d028 libsystem_pthread.dylib`thread_start + 4

Debugging EXC_BAD_ACCESS with NSZombie

I am getting a rather peculiar issue of EXC_BAD_ACCESS. In an inventory based app, when creating a receipt..the app works fine if the vehicle already exists in the database and crashes when a receipt with new vehicle is being viewed.
I tried to run the app with NSZombieEnabled but nothing gets logged onto the console when the app crashes except lldb.
So the question is that if NSZombieEnabled does not work, how do I determine what is causing the crash in an app.
I am running Xcode 5 (latest version) for development.
Edit On running bt in command prompt..here's the backtrace I get
(lldb) bt
* thread #1: tid = 0x16915d, 0x006e427f OpenGLES`+[EAGLContext setCurrentContext:] + 80, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0xc)
frame #0: 0x006e427f OpenGLES`+[EAGLContext setCurrentContext:] + 80
frame #1: 0x0c725f2a CoreImage`CIEAGLContextTexImageIOSurface + 389
frame #2: 0x0c70b6a8 CoreImage`CI::GLESTextureManager::attach_IOSurface(__IOSurface*, bool, int, unsigned int, int, int, int, bool) + 950
frame #3: 0x0c70f6ab CoreImage`CI::GLESContext::bind_surface(__IOSurface*, int, bool, bool, bool) + 261
frame #4: 0x0c70ec6a CoreImage`CI::GLESContext::bind_textures(CI::SerialObjectPtrArray*, CI::Kernel*) + 336
frame #5: 0x0c70e7a7 CoreImage`CI::GLESContext::render_apply_node(CI::Node const*, bool) + 151
frame #6: 0x0c70e5bb CoreImage`CI::GLESContext::recursive_render(CI::Node const*, bool) + 697
frame #7: 0x0c70e498 CoreImage`CI::GLESContext::recursive_render(CI::Node const*, bool) + 406
frame #8: 0x0c70e36b CoreImage`CI::GLESContext::recursive_render(CI::Node const*, bool) + 105
frame #9: 0x0c70e498 CoreImage`CI::GLESContext::recursive_render(CI::Node const*, bool) + 406
frame #10: 0x0c70e36b CoreImage`CI::GLESContext::recursive_render(CI::Node const*, bool) + 105
frame #11: 0x0c70f068 CoreImage`CI::GLESContext::render(CI::Node*) + 176
frame #12: 0x0c71bfa9 CoreImage`CI::image_get_cgimage(CI::Context*, CI::Image*, CGRect, CGColorSpace*, CI::PixelFormat) + 2069
frame #13: 0x0c6f41c3 CoreImage`-[CIContext createCGImage:fromRect:format:colorSpace:] + 671
frame #14: 0x0c6f3eb6 CoreImage`-[CIContext createCGImage:fromRect:] + 99
frame #15: 0x0c55a82f CoreUI`-[CUITextEffectStack drawProcessedMask:atBounds:inContext:withScale:] + 909
frame #16: 0x0c55b8dd CoreUI`-[CUITextEffectStack drawGlyphs:inContext:usingFont:atPositions:count:lineHeight:inBounds:atScale:] + 540
frame #17: 0x0c565460 CoreUI`-[CUICatalog drawGlyphs:atPositions:inContext:withFont:count:stylePresetName:styleConfiguration:foregroundColor:] + 1770
frame #18: 0x0c3e0c05 UIFoundation`-[NSLineFragmentRenderingContext drawAtPoint:inContext:] + 3657
frame #19: 0x0c41721a UIFoundation`__NSStringDrawingEngine + 18606
frame #20: 0x0c41a10b UIFoundation`-[NSAttributedString(NSExtendedStringDrawing) drawWithRect:options:context:] + 622
frame #21: 0x01bd6891 UIKit`-[UILabel _drawTextInRect:baselineCalculationOnly:] + 6626
frame #22: 0x01bd4574 UIKit`-[UILabel drawTextInRect:] + 581
frame #23: 0x01bd6996 UIKit`-[UILabel drawRect:] + 98
frame #24: 0x01a4b95c UIKit`-[UIView(CALayerDelegate) drawLayer:inContext:] + 519
frame #25: 0x00a7fd61 QuartzCore`-[CALayer drawInContext:] + 118
frame #26: 0x00a7fc97 QuartzCore`backing_callback(CGContext*, void*) + 96
frame #27: 0x009644fe QuartzCore`CABackingStoreUpdate_ + 2788
frame #28: 0x00a7fc2f QuartzCore`___ZN2CA5Layer8display_Ev_block_invoke + 93
frame #29: 0x00ab5416 QuartzCore`x_blame_allocations + 15
frame #30: 0x00a7fa95 QuartzCore`CA::Layer::display_() + 1591
frame #31: 0x00a7fce6 QuartzCore`-[CALayer _display] + 33
frame #32: 0x00a7f456 QuartzCore`CA::Layer::display() + 142
frame #33: 0x00a7fcc0 QuartzCore`-[CALayer display] + 33
frame #34: 0x00a73ef6 QuartzCore`CA::Layer::display_if_needed(CA::Transaction*) + 322
frame #35: 0x00a73f7c QuartzCore`CA::Layer::layout_and_display_if_needed(CA::Transaction*) + 38
frame #36: 0x009d23c6 QuartzCore`CA::Context::commit_transaction(CA::Transaction*) + 284
frame #37: 0x009d378c QuartzCore`CA::Transaction::commit() + 392
frame #38: 0x009d3e58 QuartzCore`CA::Transaction::observer_callback(__CFRunLoopObserver*, unsigned long, void*) + 92
frame #39: 0x032df9de CoreFoundation`__CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 30
frame #40: 0x032df920 CoreFoundation`__CFRunLoopDoObservers + 400
frame #41: 0x032d535a CoreFoundation`__CFRunLoopRun + 1226
frame #42: 0x032d4bcb CoreFoundation`CFRunLoopRunSpecific + 443
frame #43: 0x032d49fb CoreFoundation`CFRunLoopRunInMode + 123
frame #44: 0x0622124f GraphicsServices`GSEventRunModal + 192
frame #45: 0x0622108c GraphicsServices`GSEventRun + 104
frame #46: 0x019c08b6 UIKit`UIApplicationMain + 1526
* frame #47: 0x0028951d Racks`main(argc=1, argv=0xbff245a8) + 141 at main.m:16
frame #48: 0x03dbdac9 libdyld.dylib`start + 1

(lldb) Run time Error on Xcode Version 6.1

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!

understanding 'lldb' backtace - app crashes when button is pressed

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.

App crashes on launch on iOS 6 but working fine on iOS 7

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.

Resources