Program Tip

오류 '_BSMachError : 포트 1607;

programtip 2020. 11. 27. 21:10
반응형

오류 '_BSMachError : 포트 1607; (os / kern) 잘못된 기능 (0x14) iOS 10의 Cordova 앱에서 "COPY_SEND를 삽입 할 수 없음"


Xcode 7.3.0으로 cordova 애플리케이션을 빌드 할 때까지 모든 것이 잘 작동하지만 iOS에서 여전히 잘 작동 하는 방향을 세로 에서 가로변경할 때마다 Xcode 8로 동일한 애플리케이션을 빌드 한 후 iOS 10 장치에서만 충돌이 시작되었습니다. 9.3.1. 디버거에서 다음 로그가 표시됩니다.

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 클래스 정보를로드 할 수 없습니다. 이렇게하면 사용 가능한 유형 정보의 품질이 크게 저하됩니다.

* 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 아이폰 6

도와주세요.


디버거에서 "잘못된 기능 (0x14)"COPY_SEND를 삽입 할 수 없습니다 "라는 메시지가 표시되어 앱이 약 10 초 동안 실행되지 않습니다.

프로젝트에서 제거한 이후 파일에 중단 점이 설정되었지만 중단 점 탐색기에는 여전히 표시됩니다 (파일 이름은 빨간색).

모든 중단 점을 제거했고 그 이후로 오류 메시지를 보지 못했습니다.


iOS10.0 베타 단계에서 동일한 문제가 발생했으며 Xcode v8.1에 여전히 존재하는 것 같습니다.

실제로 2 개의 별도 오류가 있습니다.


1. 먼저 Avaan이 언급했듯이 info.plist에서 모든 개인 정보 사용을 설정해야합니다. 나는 그것이 당신의 충돌의 원인이라고 믿습니다.

iOS10.0부터는 사용할 전화기의 기능과 이유를 명시 적으로 사용자에게 알려야합니다.

프로젝트 정보


2. 오류 관련 :

BSMachError : 포트 1607; (os / kern) 잘못된 기능 (0x14) "COPY_SEND를 삽입 할 수 없음"

이 작은 해결 방법으로 오류를 해결했습니다.

  1. 프로젝트 설정 / 일반-> 배포 정보로 이동하여 모든 방향을 확인합니다.

일반 설정

  1. 빌드하고 실행하면 인터페이스가 기기 방향에 따라 회전해야합니다.
  2. 방금 한 작업을 실행 취소합니다 (필요하지 않은 방향은 선택 취소). 빌드하고 다시 실행하면 오류가 더 이상 나타나지 않습니다.

도움이 되었기를 바랍니다.


나를 위해 원인은 [myTextField becomeFirstResponder]; 초기 viewWillAppear 스레드가 종료 된 후에 배치됩니다.


I received precisely this error carrying out reset of Core Data but none of the above solutions worked or was relevant in my case. Turned out to be result of code taking place inside action of UIAlert which needed to be pushed into main thread. Solution found through here - Error _BSMachError: (os/kern) invalid capability (20) after receiving remote notification on CloudKit record addition - and updated below for Swift 4:

alert.addAction(UIAlertAction(title: "Reset Now", style: UIAlertAction.Style.default, handler: { action in
            DispatchQueue.main.async {
                // Core Data reset code goes here...
            }
}))

Turns out - the app will crash if you call EventKit, ContactsKit, Microphone, Camera etc etc that requires 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!


I got this when adding a Info.plist key without a matching string. In my instance I added NSLocationAlwaysAndWhenInUseUsageDescription without a description. Accessing the permission dialog cause this error to occur. Adding a string value resolved the issue. iOs11.


이 오류가 발생 하고이 스레드의 모든 솔루션을 시도했지만 아무것도 작동하지 않았습니다. 내가 수정 한 겉보기에 관련없는 UIColor (색상 범위를 벗어남) 오류가 발생했으며이 COPY_SEND 문제도 사라졌습니다.

특정 UIColor 오류는 UIColorBreakForOutOfRangeColorComponents입니다.


나를 위해 내 plist의 번역이었습니다. plist가 현지화 된 경우 적절한 개인 정보 텍스트가 번역되었는지 다시 확인하십시오.

그것을 찾을 때까지 몇 시간이 걸렸습니다. 항상 SFSafariView 레이아웃 문제가 발생했습니다.

참고 URL : https://stackoverflow.com/questions/39676762/error-bsmacherror-port-1607-os-kern-invalid-capability-0x14-unable-to-i

반응형