2012-09-03 48 views
0

奇怪的錯誤。我的代碼是用Xcode 3編寫的,它在4.4中正確加載沒有錯誤。代碼不再在OS4.3中工作,但在5.0中罰款(用於正常工作)

最近,它開始在OS 4.3或更低版本中運行,但在5.0和5.1版本中運行良好。我已經做了幾個星期的更新我的應用程序,所以我不知道它在哪裏出了問題(我在測試時使用了當前的模擬器5.1,所以我甚至沒有想過在每次試用之後嘗試其他模擬器)。

這是我的錯誤日誌,但我無法弄清楚是什麼導致崩潰。應該注意的是,當4.3或更低版本啓動時,我得到「位置服務不可用」,但在5.0或更高版本中啓動。它試圖加載一個有表格的視圖時崩潰了。這是我的調試器信息...任何想法?

> 2012-09-03 05:43:39.582 Diners[7811:12203] [-[MapViewController viewDidLoad] /Users/user/Documents/Source Code/Working Projects/Diners/Classes/MapViewController.m:48] 
bootstrap_look_up failed (44e) 
2012-09-03 05:43:42.997 Diners[7811:12203] [-[StripClubsAppDelegate i3fSplashViewBrickDidRemoveFromSuperview:] /Users/user/Documents/Source Code/Working Projects/Diners/Classes/StripClubsAppDelegate.m:77] 
2012-09-03 05:43:49.883 Diners[7811:12203] -[UITapGestureRecognizer initWithCoder:]: unrecognized selector sent to instance 0x5fe01b0 
2012-09-03 05:43:49.950 Diners[7811:12203] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[UITapGestureRecognizer initWithCoder:]: unrecognized selector sent to instance 0x5fe01b0' 
*** Call stack at first throw: 
(
    0 CoreFoundation 0x014585a9 __exceptionPreprocess + 185 
    1 libobjc.A.dylib 0x01205313 objc_exception_throw + 44 
    2 CoreFoundation 0x0145a0bb -[NSObject(NSObject) doesNotRecognizeSelector:] + 187 
    3 CoreFoundation 0x013c9966 ___forwarding___ + 966 
    4 CoreFoundation 0x013c9522 _CF_forwarding_prep_0 + 50 
    5 UIKit    0x0061c9fd UINibDecoderDecodeObjectForValue + 2592 
    6 UIKit    0x0061d6ac -[UINibDecoder decodeObjectForKey:] + 398 
    7 UIKit    0x0053293e -[UIRuntimeConnection initWithCoder:] + 153 
    8 UIKit    0x00532ee7 -[UIRuntimeEventConnection initWithCoder:] + 64 
    9 UIKit    0x0061c9fd UINibDecoderDecodeObjectForValue + 2592 
    10 UIKit    0x0061c2f5 UINibDecoderDecodeObjectForValue + 792 
    11 UIKit    0x0061d6ac -[UINibDecoder decodeObjectForKey:] + 398 
    12 UIKit    0x00531c36 -[UINib instantiateWithOwner:options:] + 804 
    13 UIKit    0x00533ab7 -[NSBundle(UINSBundleAdditions) loadNibNamed:owner:options:] + 168 
    14 UIKit    0x003e9628 -[UIViewController _loadViewFromNibNamed:bundle:] + 70 
    15 UIKit    0x003e7134 -[UIViewController loadView] + 120 
    16 UIKit    0x003e700e -[UIViewController view] + 56 
    17 UIKit    0x003e5482 -[UIViewController contentScrollView] + 42 
    18 UIKit    0x003f5f25 -[UINavigationController _computeAndApplyScrollContentInsetDeltaForViewController:] + 48 
    19 UIKit    0x003f4555 -[UINavigationController _layoutViewController:] + 43 
    20 UIKit    0x003f5870 -[UINavigationController _startTransition:fromViewController:toViewController:] + 524 
    21 UIKit    0x003f032a -[UINavigationController _startDeferredTransitionIfNeeded] + 266 
    22 UIKit    0x003f7562 -[UINavigationController pushViewController:transition:forceImmediate:] + 932 
    23 UIKit    0x003f01c4 -[UINavigationController pushViewController:animated:] + 62 
    24 Diners   0x00002c83 -[MapViewController goToListByState] + 275 
    25 UIKit    0x003374fd -[UIApplication sendAction:to:from:forEvent:] + 119 
    26 UIKit    0x003c7799 -[UIControl sendAction:to:forEvent:] + 67 
    27 UIKit    0x003c9c2b -[UIControl(Internal) _sendActionsForEvents:withEvent:] + 527 
    28 UIKit    0x003c8a1c -[UIControl touchesBegan:withEvent:] + 277 
    29 UIKit    0x0035bd41 -[UIWindow _sendTouchesForEvent:] + 395 
    30 UIKit    0x0033cc37 -[UIApplication sendEvent:] + 447 
    31 UIKit    0x00341f2e _UIApplicationHandleEvent + 7576 
    32 GraphicsServices 0x01a2e992 PurpleEventCallback + 1550 
    33 CoreFoundation 0x01439944 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 52 
    34 CoreFoundation 0x01399cf7 __CFRunLoopDoSource1 + 215 
    35 CoreFoundation 0x01396f83 __CFRunLoopRun + 979 
    36 CoreFoundation 0x01396840 CFRunLoopRunSpecific + 208 
    37 CoreFoundation 0x01396761 CFRunLoopRunInMode + 97 
    38 GraphicsServices 0x01a2d1c4 GSEventRunModal + 217 
    39 GraphicsServices 0x01a2d289 GSEventRun + 115 
    40 UIKit    0x00345c93 UIApplicationMain + 1160 
    41 Diners   0x0000203d main + 125 
    42 Diners   0x00001fb5 start + 53 
) 
terminate called throwing an exception(lldb) 

回答

5

看起來您使用界面構建器添加了手勢識別器,該功能僅適用於ios5等。

+0

啊......說明了這一點。那麼最簡單的方法是保持我的「滑動」,但仍然是ios 4兼容? – user1642188

+0

您可以通過編程方式添加它們 – Andrea

相關問題