错误'_BSMachError:端口1607; (os / kern)无效能力(0x14)“无法插入COPY_SEND”在iOS 10上的Cordova应用程序中 [英] Error '_BSMachError: port 1607; (os/kern) invalid capability (0x14) "Unable to insert COPY_SEND" in Cordova app on iOS 10

查看:13692
本文介绍了错误'_BSMachError:端口1607; (os / kern)无效能力(0x14)“无法插入COPY_SEND”在iOS 10上的Cordova应用程序中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

一切正常,直到我建立我的cordova应用程序与Xcode 7.3.0,但它开始崩溃只有在iOS 10设备构建相同的应用程序与Xcode 8后,当我改变方向从肖像横向,因为它在iOS 9.3.1上仍然正常工作。
在调试器中我得到以下日志:

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 whenever i'm changing the orientation from Portrait to Landscape where as it still working fine on iOS 9.3.1. In debugger i'm getting following logs:


2016-09-24 18:14:41.212470 MyApp[2542:1028606] [Common] _BSMachError: port 1607; (os/kern) invalid capability (0x14) "Unable to insert COPY_SEND"
2016-09-24 18:14:41.613460 MyApp[2542:1028606] [Common] _BSMachError: port 1607; (os/kern) invalid name (0xf) "Unable to insert COPY_SEND"
2016-09-24 18:14:41.613947 MyApp[2542:1028606] [Common] _BSMachError: port 1607; (os/kern) invalid name (0xf) "Unable to insert COPY_SEND"
2016-09-24 18:14:41.614469 MyApp[2542:1028606] [Common] _BSMachError: port 1607; (os/kern) invalid name (0xf) "Unable to deallocate send right"
Message from debugger: Terminated due to memory issue


下面是堆栈跟踪


警告:来自dyld共享缓存的Objective-C类信息。这将显着降低可用的类型信息的质量。

warning: could not load any Objective-C class information from the dyld shared cache. This will significantly reduce the quality of type information available.

* thread #1: tid = 0xfc80c, 0x00000001000cff00 MyApp`-[MainViewController didReceiveMemoryWarning](self=0x0000000119e0da60, _cmd="didReceiveMemoryWarning") + 40 at MainViewController.m:59, stop reason = breakpoint 7.1

  * frame #0: 0x00000001000cff00 MyApp`-[MainViewController didReceiveMemoryWarning](self=0x0000000119e0da60, _cmd="didReceiveMemoryWarning") + 40 at MainViewController.m:59
    frame #1: 0x0000000192e29964 UIKit`+[UIViewController _traverseViewControllerHierarchyWithDelayedRelease:] + 432
    frame #2: 0x0000000192d5a0f4 UIKit`-[UIApplication _performMemoryWarning] + 232
    frame #3: 0x0000000192d5a294 UIKit`-[UIApplication _receivedMemoryNotification] + 140
    frame #4: 0x0000000100a7d21c libdispatch.dylib`_dispatch_client_callout + 16
    frame #5: 0x0000000100a893a8 libdispatch.dylib`_dispatch_continuation_pop + 708
    frame #6: 0x0000000100a97fa8 libdispatch.dylib`_dispatch_source_latch_and_call + 204
    frame #7: 0x0000000100a7f304 libdispatch.dylib`_dispatch_source_invoke + 836
    frame #8: 0x0000000100a82060 libdispatch.dylib`_dispatch_main_queue_callback_4CF + 652
    frame #9: 0x000000018cc29f2c CoreFoundation`__CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 12
    frame #10: 0x000000018cc27b18 CoreFoundation`__CFRunLoopRun + 1660
    frame #11: 0x000000018cb56048 CoreFoundation`CFRunLoopRunSpecific + 444
    frame #12: 0x000000018e5d9198 GraphicsServices`GSEventRunModal + 180
    frame #13: 0x0000000192b2f818 UIKit`-[UIApplication _run] + 684
    frame #14: 0x0000000192b2a550 UIKit`UIApplicationMain + 208
    frame #15: 0x00000001000c7ecc MyApp`main(argc=1, argv=0x000000016fd3fab8) + 76 at main.m:32
    frame #16: 0x000000018bb385b8 libdyld.dylib`start + 4


我正在运行


  • Xcode 8

  • Cordova 6.3.0(iOS 4.1.0)

  • iOS 10 iPhone 6

请帮助。

推荐答案

我在iOS10.0 beta阶段遇到了同样的问题。

I ran into the same problem during iOS10.0 beta phases.

实际上有两个不同的错误:

There are actually 2 separate errors :

1。
首先,如Avaan所说,您必须在info.plist中设置所有隐私使用。我相信这是您的崩溃的原因。

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.

自iOS10.0以来,必须明确告诉用户您将使用的手机的功能,原因。

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

2。关于错误:


BSMachError:port 1607; (os / kern)无效能力(0x14)无法
插入COPY_SEND

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

解决方法:


  1. 前往专案设定/一般 - >部署资讯,检查所有方向。



  1. 撤消您刚才所做的操作(取消选中您不需要的方向)。再次构建并运行,错误不应再出现。

我希望这有帮助

这篇关于错误'_BSMachError:端口1607; (os / kern)无效能力(0x14)“无法插入COPY_SEND”在iOS 10上的Cordova应用程序中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆