Post

Replies

Boosts

Views

Activity

Reply to iOS14, UIPasteboard new api, detectPatternsForPatterns:completionHandler:, why not support Regular Expressions
My app needs to check UIPasteboard to make sure there's no any unsupported character before user paste it. After then we need to apply text color for it, but the background color with a line-break messed up the whole UITextView. So we have to split it to make sure the background color works better. But there's no paste event in iOS, so I have to check UIPasteboard every time in shouldChangeTextIn delegate. So the users will see this prompt while they're typing. It's annoying and making some of my users misunderstood the purpose of accessing UIPasteboard. Apple should add something like Privacy - Photo Library Additions Usage Description so we can explain why we need it. Don't just prompt a warning and make users thinking we're like a fraud or something.
Jul ’20
Reply to Crashes "[RenderBox] RB::Animation::size(RB::Animation::TermOrArg const*, unsigned long) EXC_BAD_ACCESS" on iOS 17
Not quite the same but there are many mach_vm_allocate_kernel failed within call to vm_map_enter in my crash report too. OS Version: iPhone OS 17.0 (21A5291j) Release Type: Beta Baseband Version: 2.06.01 Report Version: 104 Exception Type: EXC_CRASH (SIGKILL) Exception Codes: 0x0000000000000000, 0x0000000000000000 Termination Reason: RUNNINGBOARD 0xd00d2bad Triggered by Thread: 0 Kernel Triage: VM - (arg = 0x3) mach_vm_allocate_kernel failed within call to vm_map_enter VM - (arg = 0x3) mach_vm_allocate_kernel failed within call to vm_map_enter VM - (arg = 0x3) mach_vm_allocate_kernel failed within call to vm_map_enter VM - (arg = 0x3) mach_vm_allocate_kernel failed within call to vm_map_enter VM - (arg = 0x3) mach_vm_allocate_kernel failed within call to vm_map_enter Thread 0 name: Thread 0 Crashed: 0 UIKitCore 0x00000001a3314d28 -[UIKBInputDelegateManager setAttributedMarkedText:selectedRange:] + 0 (UIKBInputDelegateManager.m:533) 1 UIKitCore 0x00000001a35eb124 -[UIKeyboardImpl _setAttributedMarkedText:selectedRange:inputString:lastInputString:searchString:compareAttributes:] + 720 (UIKeyboardImpl.m:11050) 2 UIKitCore 0x00000001a35ea920 -[UIKeyboardImpl setMarkedText:selectedRange:inputString:lastInputString:searchString:candidateOffset:liveConversionSegments:highlighSegmentIndex:] + 552 (UIKeyboardImpl.m:10958) 3 UIKitCore 0x00000001a3609558 -[UIKeyboardImpl assertIntermediateText:] + 280 (UIKeyboardImpl.m:18680) 4 UIKitCore 0x00000001a35edc80 -[UIKeyboardImpl syncKeyboardToConfiguration:] + 116 (UIKeyboardImpl.m:11718) 5 UIKitCore 0x00000001a35eeab0 __55-[UIKeyboardImpl handleKeyboardInput:executionContext:]_block_invoke_2 + 932 (UIKeyboardImpl.m:11871) 6 UIKitCore 0x00000001a2cfc8f8 -[UIKeyboardTaskEntry execute:] + 208 (UIKeyboardTaskQueue.m:869) 7 UIKitCore 0x00000001a2cfc7dc -[UIKeyboardTaskQueue continueExecutionOnMainThread] + 324 (UIKeyboardTaskQueue.m:447) 8 Foundation 0x000000019f86a47c __NSThreadPerformPerform + 264 (NSThread.m:1074) 9 CoreFoundation 0x00000001a08066cc __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 28 (CFRunLoop.c:1957) 10 CoreFoundation 0x00000001a0805960 __CFRunLoopDoSource0 + 176 (CFRunLoop.c:2001) 11 CoreFoundation 0x00000001a0804124 __CFRunLoopDoSources0 + 244 (CFRunLoop.c:2038) 12 CoreFoundation 0x00000001a0802e60 __CFRunLoopRun + 828 (CFRunLoop.c:2955) 13 CoreFoundation 0x00000001a0802a40 CFRunLoopRunSpecific + 600 (CFRunLoop.c:3420) 14 GraphicsServices 0x00000001e2d4b5ec GSEventRunModal + 164 (GSEvent.c:2196) 15 UIKitCore 0x00000001a2c19ba0 -[UIApplication _run] + 888 (UIApplication.m:3669) 16 UIKitCore 0x00000001a2c191dc UIApplicationMain + 340 (UIApplication.m:5255) 17 myappname 0x0000000102c4beb0 main + 68 (AppDelegate.swift:51) 18 dyld 0x00000001c38a4d44 start + 2104 (dyldMain.cpp:1269) Thread 0 crashed with ARM Thread State (64-bit): x0: 0x00000002816d7d80 x1: 0x000000019ac213fc x2: 0x0000000280acf7a0 x3: 0x0000000000000004 x4: 0x0000000000000000 x5: 0x0000000000003120 x6: 0x3127310a311f3107 x7: 0x0000000000000000 x8: 0x00000001f2014de0 x9: 0x0000000000000042 x10: 0x00000001fe88b380 x11: 0x000000000000007f x12: 0x0000000000426b00 x13: 0x00000000000007fd x14: 0x02000001f208464d x15: 0x00000001f2084648 x16: 0x00000001f2084648 x17: 0x00000001a3314d28 x18: 0x0000000000000000 x19: 0x0000000000000004 x20: 0x00000002816d7d80 x21: 0x00000000000002a2 x22: 0x00000002817c6d40 x23: 0x000000010a10fa00 x24: 0x00000002800f7b40 x25: 0x0000000280acf7a0 x26: 0x0000000280ada100 x27: 0x0000000000000000 x28: 0x0000000280ada100 fp: 0x000000016d1ba520 lr: 0x00000001a35eb124 sp: 0x000000016d1ba460 pc: 0x00000001a3314d28 cpsr: 0x60001400 esr: 0x56000080 Address size fault
Aug ’23