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

后端 未结 11 1362
无人及你
无人及你 2020-12-04 13:56

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

11条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-04 14:21

    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.


    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.

    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

提交回复
热议问题