Error '_BSMachError: port 1607; (os/kern) invalid capability (0x14) "Unable to insert COPY_SEND" in Cordova app on iOS 10

Solution 1:

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.

Solution 2:

I ran into the same problem during iOS10.0 beta phases, and it seems to still be present in Xcode v11.

There are actually 2 separate errors :


1. First of all, as Avaan commented, you have to set all the privacy usage in the info.plist. I believe it is the cause of your crash.

Since iOS10.0, it is mandatory to explicitly tell the user what features of the phone you will use, and for what reasons.

Project Info


2. Regarding the error :

BSMachError: port 1607; (os/kern) invalid capability (0x14) "Unable to insert COPY_SEND"

I resolved the error with this little workaround :

  1. Go in Project Settings/General -> Deployment info, check all orientations.

General settings

  1. Build and run, the interface should rotate according to the device orientation.
  2. Undo what you just did (uncheck orientations you don't need). Build and run again, the errors should not appear anymore.

I hope this helped