我的應用程序僅在IOS 9設備上崩潰。爲什麼?什麼在IOS 9這使它崩潰?這裏是調試控制檯日誌...爲什麼我的應用只會在IOS 9設備上崩潰?
2015-10-12 17:08:00.090 Frum Finder[1380:38370] view did load
2015-10-12 17:08:08.708 Frum Finder[1380:38370] text field did change = x
2015-10-12 17:08:08.712 Frum Finder[1380:38370] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[__NSPlaceholderDictionary initWithObjects:forKeys:count:]: attempt to insert nil object from objects[0]'
*** First throw call stack:
(
0 CoreFoundation 0x02020a94 __exceptionPreprocess + 180
1 libobjc.A.dylib 0x01adfe02 objc_exception_throw + 50
2 CoreFoundation 0x01f0f682 -[__NSPlaceholderDictionary initWithObjects:forKeys:count:] + 386
3 CoreFoundation 0x01f238db +[NSDictionary dictionaryWithObjects:forKeys:count:] + 75
4 Frum Finder 0x00159691 -[MainViewController textFieldDidChange:] + 1009
5 libobjc.A.dylib 0x01af40b5 -[NSObject performSelector:withObject:withObject:] + 84
6 UIKit 0x023b2c40 -[UIApplication sendAction:to:from:forEvent:] + 118
7 UIKit 0x023b2bbf -[UIApplication sendAction:toTarget:fromSender:forEvent:] + 64
8 UIKit 0x025488fc -[UIControl sendAction:to:forEvent:] + 79
9 UIKit 0x02548c7c -[UIControl _sendActionsForEvents:withEvent:] + 408
10 UIKit 0x02e71ad2 -[UITextField fieldEditorDidChange:] + 227
11 UIKit 0x025530a2 -[UIFieldEditor textInputDidChange:] + 58
12 UIKit 0x02e7d752 -[UITextInputController _sendDelegateChangeNotificationsForText:selection:] + 165
13 UIKit 0x02e7ff87 -[UITextInputController _insertText:fromKeyboard:] + 949
14 UIKit 0x02e80a26 -[UITextInputController insertText:] + 460
15 UIKit 0x025569b0 -[UIFieldEditor insertFilteredText:] + 1798
16 UIKit 0x02e76c63 -[UITextField insertFilteredText:] + 111
17 UIKit 0x02699930 -[UIKeyboardImpl insertText:] + 132
18 UIKit 0x0269592e -[UIKeyboardImpl performKeyboardOutput:] + 555
19 UIKit 0x02695452 __55-[UIKeyboardImpl handleKeyboardInput:executionContext:]_block_invoke_2 + 208
20 UIKit 0x02ea450a -[UIKeyboardTaskQueue continueExecutionOnMainThread] + 404
21 libobjc.A.dylib 0x01af4059 -[NSObject performSelector:withObject:] + 70
22 Foundation 0x015546e8 __NSThreadPerformPerform + 323
23 CoreFoundation 0x01f3ae7f __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 15
24 CoreFoundation 0x01f30b0b __CFRunLoopDoSources0 + 523
25 CoreFoundation 0x01f2ff28 __CFRunLoopRun + 1032
26 CoreFoundation 0x01f2f866 CFRunLoopRunSpecific + 470
27 CoreFoundation 0x01f2f67b CFRunLoopRunInMode + 123
28 GraphicsServices 0x054a5664 GSEventRunModal + 192
29 GraphicsServices 0x054a54a1 GSEventRun + 104
30 UIKit 0x023b0cc1 UIApplicationMain + 160
31 Frum Finder 0x0015b62a main + 138
32 libdyld.dylib 0x038e1a21 start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
(lldb)
任何想法?
我綁將此代碼添加到Info.plist文件,但它仍然崩潰...
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key><true/>
</dict>
它不是重複的,它是關於新錯誤的新問題。 –
即使不是重複的,如果沒有完善的問題或SSCCE,這是一個糟糕的問題。 – user2864740