2015-02-05 13 views
0

MyApp는 Files & Folders에 대한 서비스 기능이있는 sondboxed 응용 프로그램입니다. 내가 일반적으로 그것을 시작하지만이 서비스에 의해 호출 될 때 몇 초 동안 응답의 Finder 일종의을 할 때 응용 프로그램은 잘 작동하고 이상이OSX 코드 서명 서비스에서 시작할 때 잘못된 예외가 발생했습니다

콘솔 로그가 명확하게 가지고 다음 상태 충돌

Process:    MyApp [4453] 
Path:     /Users/USER/Library/Developer/Xcode/Archives/2015-02-02/MyApp 02-02-2015 6.02 pm.xcarchive/Products/Applications/MyApp.app/Contents/MacOS/MyApp 
Identifier:   com.Company.MyApp 
Version:    ??? 
Code Type:    X86-64 (Native) 
Parent Process:  ??? [1] 
Responsible:   MyApp [4453] 
User ID:    501 

Date/Time:    2015-02-05 11:06:20.391 +0500 
OS Version:   Mac OS X 10.10.2 (14C109) 
Report Version:  11 
Anonymous UUID:  2B8F252E-AA04-6181-CCE8-379AB367F5EE 


Time Awake Since Boot: 3600 seconds 

Crashed Thread:  0 

Exception Type:  EXC_CRASH (Code Signature Invalid) 
Exception Codes:  0x0000000000000000, 0x0000000000000000 

kernel messages: 

VM Regions Near 0x7fff799630a8 (cr2): 
    __LINKEDIT    00007fff63e95000-00007fff63ea9000 [ 80K] r--/rwx SM=COW /usr/lib/dyld 
--> Submap     00007fff70000000-00007fff80000000 [256.0M] r--/rwx SM=PRV process-only VM submap 
    unused shlib __DATA 00007fff775f9000-00007fff79b9c000 [ 37.6M] rw-/rw- SM=COW system shared lib __DATA not used by this process 

Thread 0 Crashed: 
0 dyld       0x00007fff63e26000 _dyld_start + 0 

Thread 0 crashed with X86 Thread State (64-bit): 
    rax: 0x000000000000000d rbx: 0x0000000000000000 rcx: 0x0000000000000000 rdx: 0x0000000000000000 
    rdi: 0x0000000000000000 rsi: 0x0000000000000000 rbp: 0x0000000000000000 rsp: 0x00007fff586a1aa8 
    r8: 0x0000000000000000 r9: 0x0000000000000000 r10: 0x0000000000000000 r11: 0x0000000000000000 
    r12: 0x0000000000000000 r13: 0x0000000000000000 r14: 0x0000000000000000 r15: 0x0000000000000000 
    rip: 0x00007fff63e26000 rfl: 0x0000000000000201 cr2: 0x00007fff799630a8 

Logical CPU:  0 
Error Code:  0x020000f4 
Trap Number:  133 


Binary Images: 
    0x7fff63e25000 -  0x7fff63e5b837 dyld (???) <65DCCB06-339C-3E25-9702-600A28291D0E> /usr/lib/dyld 

External Modification Summary: 
    Calls made by other processes targeting this process: 
    task_for_pid: 0 
    thread_create: 0 
    thread_set_state: 0 
    Calls made by this process: 
    task_for_pid: 0 
    thread_create: 0 
    thread_set_state: 0 
    Calls made by all processes on this machine: 
    task_for_pid: 5435 
    thread_create: 0 
    thread_set_state: 93 

VM Region Summary: 
ReadOnly portion of Libraries: Total=300K resident=300K(100%) swapped_out_or_unallocated=0K(0%) 
Writable regions: Total=8416K written=0K(0%) resident=12K(0%) swapped_out=0K(0%) unallocated=8404K(100%) 

REGION TYPE      VIRTUAL 
===========      ======= 
STACK GUARD      56.0M 
Stack        8192K 
VM_ALLOCATE       8K 
__DATA        228K 
__LINKEDIT       80K 
__TEXT        220K 
mapped file       872K 
shared memory       4K 
===========      ======= 
TOTAL        65.4M 

을 제공 충돌 일부 코드 서명 문제

예외 유형 : EXC_CRASH (코드 서명 무효)

,691,363 내가 spctl를 사용하므로210

다음 자연적인 단계는 서명을 확인하는 것 그리고 내가 여기없는 것을 아무 생각

$ sudo spctl --assess --verbose=4 /Applications/MyApp.app 
/Applications/MyApp.app: accepted 
source=Developer ID 

반환합니다.


업데이트 내 컴퓨터에 새로운 계정을 생성하고 응용 프로그램을 실행 및 통합 설계 오류/예외를하지 않았다.

그래서 사용자 계정 상태 또는 OSX 버그 일 가능성이 있습니다.

답변

2

귀하의 서비스가 개발 디렉토리 내에있는 귀하의 앱의 서명되지 않은 복사본을 시작한 것으로 의심됩니다. 당신이 게시

/Users/USER/Library/Developer/Xcode/Archives/2015-02-02/MyApp 02-02-2015 6.02 pm.xcarchive/Products/Applications/MyApp.app/Contents/MacOS/MyApp 

spctl 명령에 서명을 확인 :

첫 번째 충돌이 경로는 것을 지적이있을 수 있습니다

/Applications/MyApp.app. 

당신은 개발자 계정으로 로그인 할 때 서비스는 Xcode/Archive 디렉토리 안의 서명되지 않은 앱을 가져 와서 실패합니다./Applications에 설치된 버전을 수동으로 실행하거나 해당 버전에 대한 spctl 검사가 모두 성공합니다. 이 서비스는 다른 사용자 계정을 사용할 때/Applications에있는 버전을 찾을 수 있습니다.