[ERROR] The application has crashed with an uncaught exception 'NSRangeException'. [ERROR] Reason: [ERROR] -[__NSCFString replaceCharactersInRange:withString:]: Range or index out of bounds [ERROR] Stack trace: [ERROR] [ERROR] 0 CoreFoundation 0x04bb8dda __exceptionPreprocess + 154 [ERROR] 1 libobjc.A.dylib 0x0477ba97 objc_exception_throw + 44 [ERROR] 2 CoreFoundation 0x04bb8d1d +[NSException raise:format:] + 141 [ERROR] 3 CoreFoundation 0x04b855a3 mutateError + 259 [ERROR] 4 CoreFoundation 0x04ac84c8 -[__NSCFString replaceCharactersInRange:withString:] + 56 [ERROR] 5 Foundation 0x010c185f -[NSString stringByReplacingCharactersInRange:withString:] + 158 [ERROR] 6 sandbox 0x000c95ca -[TiUITextField textField:shouldChangeCharactersInRange:replacementString:] + 138 [ERROR] 7 UIKit 0x01cf37f3 -[UITextField fieldEditor:shouldInsertText:replacingRange:] + 113 [ERROR] 8 UIKit 0x015e3add -[UIFieldEditor textInput:shouldChangeCharactersInRange:replacementText:] + 70 [ERROR] 9 UIKit 0x01cfcae6 -[UITextInputController _delegateShouldChangeTextInRange:replacementText:] + 113 [ERROR] 10 UIKit 0x01d8a815 -[_UITextUndoOperationReplace undoRedo] + 260 [ERROR] 11 UIKit 0x01d8a381 -[NSTextStorage(UIKitUndoExtensions) _undoRedoTextOperation:] + 33 [ERROR] 12 Foundation 0x01188016 -[_NSUndoLightInvocation invoke] + 59 [ERROR] 13 Foundation 0x011885ff -[_NSUndoStack popAndInvoke] + 256 [ERROR] 14 Foundation 0x011877e4 -[NSUndoManager undoNestedGroup] + 547 [ERROR] 15 Foundation 0x011875b9 -[NSUndoManager undo] + 275 [ERROR] 16 UIKit 0x018c6055 -[UIKeyboardLayoutStar continueFromInternationalActionForTouchUp:withActions:timestamp:interval:didLongPress:prevActions:executionContext:] + 668 [ERROR] 17 UIKit 0x018c57fa -[UIKeyboardLayoutStar completeSendStringActionForTouchUp:withActions:timestamp:interval:didLongPress:prevActions:executionContext:] + 898 [ERROR] 18 UIKit 0x018c5092 -[UIKeyboardLayoutStar completeRetestForTouchUp:timestamp:interval:executionContext:] + 4415 [ERROR] 19 UIKit 0x018c343d -[UIKeyboardLayoutStar touchUp:executionContext:] + 174 [ERROR] 20 UIKit 0x0170b4d7 __28-[UIKeyboardLayout touchUp:]_block_invoke + 365 [ERROR] 21 UIKit 0x01d1bc22 -[UIKeyboardTaskQueue continueExecutionOnMainThread] + 404 [ERROR] 22 UIKit 0x01d1c2df -[UIKeyboardTaskQueue addTask:] + 144 [ERROR] 23 UIKit 0x0170b362 -[UIKeyboardLayout touchUp:] + 294 [ERROR] 24 UIKit 0x0170bf1f -[UIKeyboardLayout touchesEnded:withEvent:] + 364 [ERROR] 25 UIKit 0x014f8aba -[UIWindow _sendTouchesForEvent:] + 874 [ERROR] 26 UIKit 0x014f9595 -[UIWindow sendEvent:] + 791 [ERROR] 27 UIKit 0x014beaa9 -[UIApplication sendEvent:] + 242 [ERROR] 28 UIKit 0x014ce8de _UIApplicationHandleEventFromQueueEvent + 20690 [ERROR] 29 UIKit 0x014a3079 _UIApplicationHandleEventQueue + 2206 [ERROR] 30 CoreFoundation 0x04adc7bf __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 15 [ERROR] 31 CoreFoundation 0x04ad22cd __CFRunLoopDoSources0 + 253 [ERROR] 32 CoreFoundation 0x04ad1828 __CFRunLoopRun + 952 [ERROR] 33 CoreFoundation 0x04ad11ab CFRunLoopRunSpecific + 443 [ERROR] 34 CoreFoundation 0x04ad0fdb CFRunLoopRunInMode + 123 [ERROR] 35 GraphicsServices 0x0518024f GSEventRunModal + 192 [ERROR] 36 GraphicsServices 0x0518008c GSEventRun + 104 [ERROR] 37 UIKit 0x014a6e16 UIApplicationMain + 1526 [ERROR] 38 sandbox 0x0004c538 main + 456 [ERROR] 39 libdyld.dylib 0x0546eac9 start + 1 [ERROR] [ERROR] 2014-10-16 13:51:17.859 sandbox[57460:416606] *** Terminating app due to uncaught exception 'NSRangeException', reason: '-[__NSCFString replaceCharactersInRange:withString:]: Range or index out of bounds' [ERROR] *** First throw call stack: [ERROR] ( [ERROR] 0 CoreFoundation 0x04bb8df6 __exceptionPreprocess + 182 [ERROR] 1 libobjc.A.dylib 0x0477ba97 objc_exception_throw + 44 [ERROR] 2 CoreFoundation 0x04bb8d1d +[NSException raise:format:] + 141 [ERROR] 3 CoreFoundation 0x04b855a3 mutateError + 259 [ERROR] 4 CoreFoundation 0x04ac84c8 -[__NSCFString replaceCharactersInRange:withString:] + 56 [ERROR] 5 Foundation 0x010c185f -[NSString stringByReplacingCharactersInRange:withString:] + 158 [ERROR] 6 sandbox 0x000c95ca -[TiUITextField textField:shouldChangeCharactersInRange:replacementString:] + 138 [ERROR] 7 UIKit 0x01cf37f3 -[UITextField fieldEditor:shouldInsertText:replacingRange:] + 113 [ERROR] 8 UIKit 0x015e3add -[UIFieldEditor textInput:shouldChangeCharactersInRange:replacementText:] + 70 [ERROR] 9 UIKit 0x01cfcae6 -[UITextInputController _delegateShouldChangeTextInRange:replacementText:] + 113 [ERROR] 10 UIKit 0x01d8a815 -[_UITextUndoOperationReplace undoRedo] + 260 [ERROR] 11 UIKit 0x01d8a381 -[NSTextStorage(UIKitUndoExtensions) _undoRedoTextOperation:] + 33 [ERROR] 12 Foundation 0x01188016 -[_NSUndoLightInvocation invoke] + 59 [ERROR] 13 Foundation 0x011885ff -[_NSUndoStack popAndInvoke] + 256 [ERROR] 14 Foundation 0x011877e4 -[NSUndoManager undoNestedGroup] + 547 [ERROR] 15 Foundation 0x011875b9 -[NSUndoManager undo] + 275 [ERROR] 16 UIKit 0x018c6055 -[UIKeyboardLayoutStar continueFromInternationalActionForTouchUp:withActions:timestamp:interval:didLongPress:prevActions:executionContext:] + 668 [ERROR] 17 UIKit 0x018c57fa -[UIKeyboardLayoutStar completeSendStringActionForTouchUp:withActions:timestamp:interval:didLongPress:prevActions:executionContext:] + 898 [ERROR] 18 UIKit 0x018c5092 -[UIKeyboardLayoutStar completeRetestForTouchUp:timestamp:interval:executionContext:] + 4415 [ERROR] 19 UIKit 0x018c343d -[UIKeyboardLayoutStar touchUp:executionContext:] + 174 [ERROR] 20 UIKit 0x0170b4d7 __28-[UIKeyboardLayout touchUp:]_block_invoke + 365 [ERROR] 21 UIKit 0x01d1bc22 -[UIKeyboardTaskQueue continueExecutionOnMainThread] + 404 [ERROR] 22 UIKit 0x01d1c2df -[UIKeyboardTaskQueue addTask:] + 144 [ERROR] 23 UIKit 0x0170b362 -[UIKeyboardLayout touchUp:] + 294 [ERROR] 24 UIKit 0x0170bf1f -[UIKeyboardLayout touchesEnded:withEvent:] + 364 [ERROR] 25 UIKit 0x014f8aba -[UIWindow _sendTouchesForEvent:] + 874 [ERROR] 26 UIKit 0x014f9595 -[UIWindow sendEvent:] + 791 [ERROR] 27 UIKit 0x014beaa9 -[UIApplication sendEvent:] + 242 [ERROR] 28 UIKit 0x014ce8de _UIApplicationHandleEventFromQueueEvent + 20690 [ERROR] 29 UIKit 0x014a3079 _UIApplicationHandleEventQueue + 2206 [ERROR] 30 CoreFoundation 0x04adc7bf __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 15 [ERROR] 31 CoreFoundation 0x04ad22cd __CFRunLoopDoSources0 + 253 [ERROR] 32 CoreFoundation 0x04ad1828 __CFRunLoopRun + 952 [ERROR] 33 CoreFoundation 0x04ad11ab CFRunLoopRunSpecific + 443 [ERROR] 34 CoreFoundation 0x04ad0fdb CFRunLoopRunInMode + 123 [ERROR] 35 GraphicsServices 0x0518024f GSEventRunModal + 192 [ERROR] 36 GraphicsServices 0x0518008c GSEventRun + 104 [ERROR] 37 UIKit 0x014a6e16 UIApplicationMain + 1526 [ERROR] 38 sandbox 0x0004c538 main + 456 [ERROR] 39 libdyld.dylib 0x0546eac9 start + 1 [ERROR] ) [ERROR] libc++abi.dylib: terminating with uncaught exception of type NSException -- End simulator log ---------------------------------------------------------