Recently I run my project that is made on swift and for macos platform is show error releated to invalid code signature when i run my project it build successfully but while running it got crashed i am new to macos programming. I have no clue why it is happening can any one please help me out.
I gave crash log of my project below.
Incident Identifier: 910AC258-2D42-49BF-97A8-4BE12DCC6966 CrashReporter Key: 1227636F-8AF2-2CE1-49D8-7EDF3AC89311 Hardware Model: MacBookAir10,1 Process: PinStation [6093] Path: /Users/USER/Library/Developer/Xcode/DerivedData/PinStation-fpatihoffhnjvuevcbfrmchdzigk/Build/Products/Debug/PinStation.app/Contents/MacOS/PinStation Identifier: app.pinstation.pinstationapp Version: 1 Code Type: X86-64 (Native) Role: Default Parent Process: launchd [1] Coalition: app.pinstation.pinstationapp [1681]
Date/Time: 2022-01-20 17:39:27.2638 +0530 Launch Time: 2022-01-20 17:39:26.8987 +0530 OS Version: macOS 12.0.1 (21A559) Release Type: User Report Version: 104
Exception Type: EXC_CRASH (SIGKILL (Code Signature Invalid)) Exception Codes: 0x0000000000000000, 0x0000000000000000 Exception Note: EXC_CORPSE_NOTIFY Termination Reason: CODESIGNING 1
Triggered by Thread: 0
Thread 0 Crashed: 0 0x7ff7ffd55a2c 0x7ff7ffd52000 + 14892
Thread 0 crashed with ARM Thread State (64-bit): x0: 0x0000000000000000 x1: 0x0000000000000000 x2: 0x0000000000000000 x3: 0x0000000000000000 x4: 0x0000000000000000 x5: 0x0000000000000000 x6: 0x0000000000000000 x7: 0x0000000000000000 x8: 0x0000000000000000 x9: 0x0000000000000000 x10: 0x0000000000000000 x11: 0x0000000000000000 x12: 0x0000000000000000 x13: 0x0000000000000000 x14: 0x0000000000000000 x15: 0x0000000000000000 x16: 0x0000000000000000 x17: 0x0000000000000000 x18: 0x0000000000000000 x19: 0x0000000000000000 x20: 0x0000000000000000 x21: 0x0000000000000000 x22: 0x0000000000000000 x23: 0x0000000000000000 x24: 0x0000000000000000 x25: 0x0000000000000000 x26: 0x0000000000000000 x27: 0x0000000000000000 x28: 0x0000000000000000 fp: 0x0000000000000000 lr: 0x0000000000000000 sp: 0x000000030523f3f0 pc: 0x00007ff7ffd55a2c cpsr: 0x00000000 far: 0x0000000000000000 esr: 0x00000000 Address size fault
Binary Images: 0x7ff7ffd52000 - 0x7ff7ffd81fff (*) <9f5d65be-d8d0-3979-bb05-e651a67e785c> ???
Error Formulating Crash Report: dyld_process_snapshot_get_shared_cache failed
EOF
Full Report
{"app_name":"PinStation","timestamp":"2022-01-20 17:39:27.00 +0530","app_version":"","slice_uuid":"4075aed2-cd46-353e-9feb-2a81fba44668","build_version":"1","platform":0,"bundleID":"app.pinstation.pinstationapp","share_with_app_devs":1,"is_first_party":0,"bug_type":"309","os_version":"macOS 12.0.1 (21A559)","incident_id":"910AC258-2D42-49BF-97A8-4BE12DCC6966","name":"PinStation"} { "uptime" : 2900, "procLaunch" : "2022-01-20 17:39:26.8987 +0530", "procRole" : "Default", "version" : 2, "userID" : 501, "deployVersion" : 210, "modelCode" : "MacBookAir10,1", "procStartAbsTime" : 70751832064, "coalitionID" : 1681, "osVersion" : { "train" : "macOS 12.0.1", "build" : "21A559", "releaseType" : "User" }, "captureTime" : "2022-01-20 17:39:27.2638 +0530", "incident" : "910AC258-2D42-49BF-97A8-4BE12DCC6966", "bug_type" : "309", "pid" : 6093, "procExitAbsTime" : 70757534356, "translated" : true, "cpuType" : "X86-64", "procName" : "PinStation", "procPath" : "/Users/USER/Library/Developer/Xcode/DerivedData/PinStation-fpatihoffhnjvuevcbfrmchdzigk/Build/Products/Debug/PinStation.app/Contents/MacOS/PinStation", "bundleInfo" : {"CFBundleVersion":"1","CFBundleIdentifier":"app.pinstation.pinstationapp"}, "storeInfo" : {"deviceIdentifierForVendor":"C8C9F935-B8DD-58EF-969E-4FFF48F19894","thirdParty":true}, "parentProc" : "launchd", "parentPid" : 1, "coalitionName" : "app.pinstation.pinstationapp", "crashReporterKey" : "1227636F-8AF2-2CE1-49D8-7EDF3AC89311", "sip" : "enabled", "isCorpse" : 1, "exception" : {"codes":"0x0000000000000000, 0x0000000000000000","rawCodes":[0,0],"type":"EXC_CRASH","signal":"SIGKILL (Code Signature Invalid)"}, "termination" : {"namespace":"CODESIGNING","flags":66,"code":1}, "extMods" : {"caller":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"system":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"targeted":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"warnings":0}, "faultingThread" : 0, "threads" : [{"triggered":true,"id":52441,"threadState":{"x":[{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0}],"flavor":"ARM_THREAD_STATE64","lr":{"value":0},"cpsr":{"value":0},"fp":{"value":0},"sp":{"value":12971144176},"esr":{"value":0,"description":" Address size fault"},"pc":{"value":140703125821996,"matchesCrashFrame":1},"far":{"value":0}},"frames":[{"imageOffset":14892,"imageIndex":0}]}], "usedImages" : [ { "source" : "P", "arch" : "arm64", "base" : 140703125807104, "size" : 196608, "uuid" : "9f5d65be-d8d0-3979-bb05-e651a67e785c", "name" : "" } ],
"reportNotes" : [ "dyld_process_snapshot_get_shared_cache failed" ] }