问题描述
一切正常,直到我使用 Xcode 7.3.0 构建我的 Cordova 应用程序,但每当我从 Portrait 更改方向时,它在使用 Xcode 8 构建相同的应用程序后开始仅在 iOS 10 设备上崩溃横向,因为它在 iOS 9.3.1 上仍然可以正常工作.在调试器中,我收到以下日志:
2016-09-24 18:14:41.212470 MyApp[2542:1028606] [Common] _BSMachError: port 1607;(os/kern) 无效能力 (0x14) 无法插入 COPY_SEND"2016-09-24 18:14:41.613460 MyApp[2542:1028606] [常见]_BSMachError:端口 1607;(os/kern) 无效名称 (0xf) 无法插入 COPY_SEND"2016-09-24 18:14:41.613947 MyApp[2542:1028606] [常见]_BSMachError:端口 1607;(os/kern) 无效名称 (0xf) 无法插入 COPY_SEND"2016-09-24 18:14:41.614469 MyApp[2542:1028606] [常见]_BSMachError:端口 1607;(os/kern) 无效名称 (0xf) 无法解除分配发送权";来自调试器的消息:由于内存问题而终止
下面是堆栈跟踪
警告:无法从 dyld 共享缓存加载任何 Objective-C 类信息.这将显着降低可用类型信息的质量.
*线程#1:TID = 0xfc80c,0x00000001000cff00 MyApp`- [MainViewController didReceiveMemoryWarning](个体= 0x0000000119e0da60,_cmd = QUOT; didReceiveMemoryWarning")+ 40在MainViewController.m:59,停止原因= 7.1的断点* frame #0: 0x00000001000cff00 MyApp`-[MainViewController didReceiveMemoryWarning](self=0x0000000119e0da60, _cmd=didReceiveMemoryWarning") + 40 at MainViewController.m:59第 1 帧:0x0000000192e29964 UIKit`+[UIViewController _traverseViewControllerHierarchyWithDelayedRelease:] + 432第 2 帧:0x0000000192d5a0f4 UIKit`-[UIApplication _performMemoryWarning] + 232第 3 帧:0x0000000192d5a294 UIKit`-[UIApplication _receivedMemoryNotification] + 140帧 #4:0x0000000100a7d21c libdispatch.dylib`_dispatch_client_callout + 16第 5 帧:0x0000000100a893a8 libdispatch.dylib`_dispatch_continuation_pop + 708第 6 帧:0x0000000100a97fa8 libdispatch.dylib`_dispatch_source_latch_and_call + 204第 7 帧:0x0000000100a7f304 libdispatch.dylib`_dispatch_source_invoke + 836帧 #8:0x0000000100a82060 libdispatch.dylib`_dispatch_main_queue_callback_4CF + 652第 9 帧:0x000000018cc29f2c CoreFoundation`__CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 12第 10 帧:0x000000018cc27b18 CoreFoundation`__CFRunLoopRun + 1660第 11 帧:0x000000018cb56048 CoreFoundation`CFRunLoopRunSpecific + 444第 12 帧:0x000000018e5d9198 GraphicsServices`GSEventRunModal + 180第 13 帧:0x0000000192b2f818 UIKit`-[UIApplication _run] + 684第 14 帧:0x0000000192b2a550 UIKit`UIApplicationMain + 208第 15 帧:0x00000001000c7ecc MyApp`main(argc=1, argv=0x000000016fd3fab8) + 76 at main.m:32第 16 帧:0x000000018bb385b8 libdyld.dylib`start + 4
我在跑步
- Xcode 8
- Cordova 6.3.0 (iOS 4.1.0)
- iOS 10 iPhone 6
请帮忙.
我在调试器中收到无效功能 (0x14)"无法插入 COPY_SEND"消息,这会阻止应用启动大约 10 秒.
我在从项目中删除的文件中设置了断点,但仍然显示在断点导航器中(文件名以红色显示).
我删除了所有断点,此后再也没有看到错误消息.
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:
Below is the stack trace
I'm running
- Xcode 8
- Cordova 6.3.0 (iOS 4.1.0)
- iOS 10 iPhone 6
Please help.
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.
这篇关于错误 '_BSMachError: 端口 1607;(os/kern) 无效能力 (0x14) “无法插入 COPY_SEND"在 iOS 10 上的 Cordova 应用程序中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!