Everything works fine till I build my cordova application with Xcode 7.3.0 but it started crashing only on iOS 10 devices after building the same application with Xcode 8 wh
Xcode 11.5 introduced a new invalid capability: [textField resignFirstResponder]
with the incomprehensible addition "Unable to insert COPY_SEND"
On a iPad with iOS 9.3.6:
2020-05-23 20:35:01.576 _BSMachError: (os/kern) invalid capability (20)
2020-05-23 20:35:01.580 _BSMachError: (os/kern) invalid name (15)
On a iPad with iPadOS 13.5:
2020-05-23 20:38:49 [Common] _BSMachError: port 12f0f; (os/kern) invalid capability (0x14) "Unable to insert COPY_SEND"
On a iPhone with iOS 13.5:
2020-05-23 20:43:34 [Common] _BSMachError: port d503; (os/kern) invalid capability (0x14) "Unable to insert COPY_SEND"
[textField resignFirstResponder]
cannot be used anymore. See How to resign first responder from text field when user tap elsewhere? for alternatives.
Turns out - the app will crash if you call EventKit, ContactsKit, Microphone, Camera, etc that require permissions without Info.plist keys like
Privacy - Location When In Use Usage Description
Privacy - Media Library Usage Description
I got this answer from https://forums.developer.apple.com/thread/48959 thread
also, check whether you forgot to disable zombies.
I had a similar problem (check out my question on SO) and found out that my UI had created another instance of itself, presenting both at the same time.
If you have not found a solution to your problem yet I advice you to use the Debug View Hierarchy-tool... maybe you have got the same kind of problem as I had.
Good luck!
For me was the translations on my plist. Double check that if your plist is localized has the proper privacy texts translated.
Took me hours until found it... I Was getting a SFSafariView layout issue all the time.
I was getting the "invalid capability (0x14) "Unable to insert COPY_SEND" message in the debugger which would prevent the app from launching for about 10 seconds.
I had breakpoints set in files that I had since removed from the project but were still showing up in the Breakpoint navigator (file names in red).
I removed ALL breakpoints and haven't seen the error message since.