मुझे पता है कि यह एक सामान्य सवाल है, लेकिन मुझे आशा है कि जिस व्यक्ति के पास ऐसा अनुभव हो, शायद यह हो सकता है कि शायद क्या हो रहा है।ऑटो लेआउट अक्षम के साथ आईओएस 9 पर ऑटो-लेआउट क्रैश
मुझे हमारे आईपैड-केवल ऐप में केवल आईओएस 9 पर होता है जो एक क्रैश हो रहा है। यह कहता है एनएसआईएननल इन्फॉन्सिस्टेंसी अपवाद।
यह पोर्ट्रेट और लैंडस्केप मोड, और कई आईपैड पीढ़ियों (आईपैड 2, आईपैड प्रो, आईपैड 4, ...) दोनों पर होता है।
मेरे पास प्रोजेक्ट में कहीं भी ऑटो लेआउट सक्षम नहीं है, फिर भी यह एक ऑटो लेआउट समस्या की तरह दिखता है।
प्रतिकृति करना बहुत मुश्किल है, इसलिए मैं इसे एक्सकोड पर डीबग करने में सक्षम नहीं हूं, लेकिन मैं क्रैश एनालिटिक्स सेवा "क्रैशलिटिक्स" पर रिपोर्ट देख रहा हूं। यहाँ Crashlytics से स्टैक ट्रेस है:
Auto layout internal error. Cannot find an outgoing row
head for incoming head <unknown var (bug!) with engine as delegate[...]
Thread : Fatal Exception: NSInternalInconsistencyException
0 CoreFoundation 0x23d4568b __exceptionPreprocess
1 libobjc.A.dylib 0x356c2e17 objc_exception_throw
2 CoreFoundation 0x23d455d1 -[NSException initWithCoder:]
3 Foundation 0x24a873b3 -[NSISEngine minimizeConstantInObjectiveRowWithHead:]
4 Foundation 0x24a86e4d -[NSISEngine optimize]
5 Foundation 0x24a82a53 -[NSISEngine withBehaviors:performModifications:]
6 UIKit 0x27e040bb -[UIView(Hierarchy) _postMovedFromSuperview:]
7 UIKit 0x280fb227 __UIViewWasRemovedFromSuperview
8 UIKit 0x27e02ddb -[UIView(Hierarchy) removeFromSuperview]
9 UIKit 0x282e5fa9 -[UIKeyboardPredictionView setPredictionViewState:animate:notify:]
10 UIKit 0x281e3787 -[UIKeyboardImpl updatePredictionView]
11 UIKit 0x27f155e3 -[UIKeyboardImpl finishLayoutChangeWithArguments:]
12 UIKit 0x27e31437 -[UIKeyboardImpl updateLayout]
13 UIKit 0x27e36077 -[UIKeyboardImpl setDelegate:force:]
14 UIKit 0x27e2f6e1 -[UIPeripheralHost(UIKitInternal) _reloadInputViewsForResponder:]
15 UIKit 0x27e2f20d -[UIResponder(UIResponderInputViewAdditions) reloadInputViews]
16 UIKit 0x27e8d853 -[UIResponder becomeFirstResponder]
17 UIKit 0x27e8db6d -[UIView(Hierarchy) becomeFirstResponder]
18 UIKit 0x27f12289 -[UITextField becomeFirstResponder]
19 UIKit 0x27fbe69f -[UITextInteractionAssistant(UITextInteractionAssistant_Internal) setFirstResponderIfNecessary]
20 UIKit 0x27fbdc75 -[UITextInteractionAssistant(UITextInteractionAssistant_Internal) oneFingerTap:]
21 UIKit 0x28334e27 _UIGestureRecognizerSendTargetActions
22 UIKit 0x27fa2303 _UIGestureRecognizerSendActions
23 UIKit 0x27e3a7af -[UIGestureRecognizer _updateGestureWithEvent:buttonEvent:]
24 UIKit 0x28335f2f ___UIGestureRecognizerUpdate_block_invoke809
25 UIKit 0x27dfc287 _UIGestureRecognizerRemoveObjectsFromArrayAndApplyBlocks
26 UIKit 0x27df9e77 _UIGestureRecognizerUpdate
27 UIKit 0x27e386f9 -[UIWindow _sendGesturesForEvent:]
28 UIKit 0x27e37e43 -[UIWindow sendEvent:]
29 UIKit 0x27e097e5 -[UIApplication sendEvent:]
30 UIKit 0x27e07fdf _UIApplicationHandleEventQueue
31 CoreFoundation 0x23d08c3f __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__
32 CoreFoundation 0x23d0882d __CFRunLoopDoSources0
33 CoreFoundation 0x23d06b9b __CFRunLoopRun
34 CoreFoundation 0x23c5a249 CFRunLoopRunSpecific
35 CoreFoundation 0x23c5a035 CFRunLoopRunInMode
36 GraphicsServices 0x2cd24ad1 GSEventRunModal
37 UIKit 0x27e6f899 UIApplicationMain
38 Mr Appliance 0xcda7b main (main.m:16)
39 libdyld.dylib 0x35e0e873 start
समस्या मैं नहीं जानता कि जहां कोड में यह हो रहा है। स्टैक ट्रेस दिखाता नहीं है कि क्रैश होने वाले कोड में कहां है। यह केवल main.m लाइन 16 है जो return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
है।
और आप इसके बारे में क्या करना चाहते हैं _us_? आपके पास कोड है; हम नहीं करते हमें नहीं पता कि इस समय क्या हो रहा है; तुम करो। – matt
@matt मुझे नहीं पता कि यह कहां हो रहा है।स्टैक ट्रेस कहां नहीं बताता है। यह केवल "main.m लाइन 16" कहता है। – Carl
और आप _us_ को जानने की उम्मीद करते हैं? _You_ वह है जिसके पास कोड है और जानता है कि ऐप क्या करता है, हम नहीं! आपके पास वही जानकारी है जो हमारे पास है (क्रैश रिपोर्ट) प्लस कोड। यह स्पष्ट है कि किस तरह की चीज हुई है; उपयोगकर्ता ने कुछ टैप किया है, एक टेक्स्ट फ़ील्ड पहला प्रतिसादकर्ता बन रहा है, और कीबोर्ड दिखाई दे रहा है। यहां कोई और संभवतः कह सकता है? – matt