MailCore / mailcore2

MailCore 2 provide a simple and asynchronous API to work with e-mail protocols IMAP, POP and SMTP. The API has been redesigned from ground up.
Other
2.6k stars 624 forks source link

swift package from master branch is crashing #1987

Open tathagatac opened 1 year ago

tathagatac commented 1 year ago

Linked my mailkit extension with swift package version following instructions in read me page https://github.com/MailCore/mailcore2/blob/master/build-mac/README.md . It crashes at launch. Below is parts of crash log showing symbol missing.

Process: Mail [52132] Path: /System/Applications/Mail.app/Contents/MacOS/Mail Identifier: com.apple.mail Version: 16.0 (3696.120.41.1.4) Build Info: Mail_App-3696120041001004~50 Code Type: X86-64 (Native) Parent Process: launchd [1] User ID: 503

Date/Time: 2023-09-15 12:28:01.4458 +0530 OS Version: macOS 12.7 (21G813) Report Version: 12 Bridge OS Version: 8.0 (21P50364a) Anonymous UUID: 417680B3-199B-5639-DAF0-0B2B7D3FAC5B

Sleep/Wake UUID: 092738BB-EB95-4505-A7EB-0837C09F5AD8

Time Awake Since Boot: 150000 seconds Time Since Wake: 6525 seconds

System Integrity Protection: disabled

Crashed Thread: 0

Exception Type: EXC_CRASH (SIGABRT) Exception Codes: 0x0000000000000000, 0x0000000000000000 Exception Note: EXC_CORPSE_NOTIFY

Termination Reason: Namespace DYLD, Code 4 Symbol missing Symbol not found: (_MCArchiveNameMailDropImages) Referenced from: '/System/Applications/Mail.app/Contents/MacOS/Mail' Expected in: '/Users/USER/Library/Developer/Xcode/DerivedData/MailExtensions-gzmfxknjiqysszcodsejmjjsvmeb/Build/Products/Debug/MailCore.framework/Versions/A/MailCore' (terminated at launch; ignore backtrace)

Thread 0 Crashed: 0 dyld 0x106b9a98e __abort_with_payload + 10 1 dyld 0x106bb0a72 abort_with_payload_wrapper_internal + 80 2 dyld 0x106bb0aa4 abort_with_payload + 9 3 dyld 0x106b5e699 dyld4::halt(char const) + 615 4 dyld 0x106b5a5b5 dyld4::prepare(dyld4::APIs&, dyld3::MachOAnalyzer const) + 3995 5 dyld 0x106b594e4 start + 388

Thread 0 crashed with X86 Thread State (64-bit): rax: 0x0000000002000209 rbx: 0x0000000000000000 rcx: 0x00007ff7bef397b8 rdx: 0x00007ff7bef39c20 rdi: 0x0000000000000006 rsi: 0x0000000000000004 rbp: 0x00007ff7bef39800 rsp: 0x00007ff7bef397b8 r8: 0x00007ff7bef39820 r9: 0x0000000000000000 r10: 0x0000000000000103 r11: 0x0000000000000246 r12: 0x0000000000000103 r13: 0x00007ff7bef39c20 r14: 0x0000000000000004 r15: 0x0000000000000006 rip: 0x0000000106b9a98e rfl: 0x0000000000000246 cr2: 0x0000000106bb40f2

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

Binary Images: 0x106b54000 - 0x106bbffff dyld (*) <65540238-1367-3f2e-978b-3278e73c124b> /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: 38 thread_create: 0 thread_set_state: 1426

VM Region Summary:

martinskou commented 11 months ago

Add:

    session.isVoIPEnabled = false

Fixed the issue for me.