打开eclipse时提示报错信息应用程序”Eclipse.app”无法打开(这里忘了截图就不上图了)。
点击 “好” 的按钮后会弹出发送报告的弹窗,这里不要着急关闭弹窗,点开显示详细信息,查看一下异常退出原因。以下是我遇到的问题时的报告详情:Process: eclipse [2154]
Path: /Applications/Eclipse.app/Contents/MacOS/eclipse
Identifier: org.eclipse.platform.ide
Version: ???
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: eclipse [2154]
User ID: 501
Date/Time: 2021-11-15 10:13:17.251 +0800
OS Version: Mac OS X 10.15.5 (19F96)
Report Version: 12
Anonymous UUID: E0D919E5-E42C-F4A5-EEB1-651A6B2C547D
Time Awake Since Boot: 1700 seconds
System Integrity Protection: enabled
Crashed Thread: 0
Exception Type: EXC_CRASH (Code Signature Invalid)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Termination Reason: Namespace CODESIGNING, Code 0x1
kernel messages:
VM Regions Near 0 (cr2):
-->
__TEXT 000000000b937000-000000000b93b000 [ 16K] r-x/r-x SM=COW
Thread 0 Crashed:
0 ??? 0x000000000c963000 _dyld_start + 0
Thread 0 crashed with X86 Thread State (64-bit):
rax: 0x0000000000000000 rbx: 0x0000000000000000 rcx: 0x0000000000000000 rdx: 0x0000000000000000
rdi: 0x0000000000000000 rsi: 0x0000000000000000 rbp: 0x0000000000000000 rsp: 0x00007ffee42ccc50
r8: 0x0000000000000000 r9: 0x0000000000000000 r10: 0x0000000000000000 r11: 0x0000000000000000
r12: 0x0000000000000000 r13: 0x0000000000000000 r14: 0x0000000000000000 r15: 0x0000000000000000
rip: 0x000000000c963000 rfl: 0x0000000000000200 cr2: 0x0000000000000000
Logical CPU: 0
Error Code: 0x00000000
Trap Number: 0
Binary Images:
0xb937000 - 0xb93aff7 +??? (0) <BF0BAA93-FE7A-3039-AC22-E0007DC821F4> (null)
0xc962000 - 0xc9f3eff +??? (750.5) <26346F4C-B18E-31A1-9964-30736214F1BF> (null)
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: 78635
thread_create: 0
thread_set_state: 0
VM Region Summary:
ReadOnly portion of Libraries: Total=852K resident=0K(0%) swapped_out_or_unallocated=852K(100%)
Writable regions: Total=8404K written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=8404K(100%)
VIRTUAL REGION
REGION TYPE SIZE COUNT (non-coalesced)
=========== ======= =======
STACK GUARD 56.0M 1
Stack 8192K 1
__DATA 232K 3
__DATA_CONST 20K 1
__LINKEDIT 252K 2
__TEXT 600K 2
shared memory 8K 2
=========== ======= =======
TOTAL 65.1M 12
Model: MacBookPro14,1, BootROM 428.0.0.0.0, 2 processors, Dual-Core Intel Core i7, 2.5 GHz, 16 GB, SMC 2.43f10
Graphics: kHW_IntelIrisGraphics640Item, Intel Iris Plus Graphics 640, spdisplays_builtin
Memory Module: BANK 0/DIMM0, 8 GB, LPDDR3, 2133 MHz, 0x802C, 0x4D5435324C31473332443450472D30393320
Memory Module: BANK 1/DIMM0, 8 GB, LPDDR3, 2133 MHz, 0x802C, 0x4D5435324C31473332443450472D30393320
AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0x170), Broadcom BCM43xx 1.0 (7.77.111.1 AirPortDriverBrcmNIC-1610.1)
Bluetooth: Version 7.0.5f6, 3 services, 27 devices, 1 incoming serial ports
Network Service: Wi-Fi, AirPort, en0
USB Device: USB 3.0 Bus
Thunderbolt Bus: MacBook Pro, Apple Inc., 41.4
该问题是权限不足问题
使用如下命令进行修复:sudo codesign --force --deep --sign - /Applications/Eclipse.app