Code Signature Invalid- When installing mac app development build on registered mac system

Hello guys,


Actually, i'm working on mac app development. and, recently I distributed the test build for my team. But, they're faced the issue /can't lunch that app & shared the crash reports.


I followed this link to generated the development build: https://help.apple.com/xcode/mac/current/#/dev295cc0fae

step1: Created the development provisioning profile & added the team members mac UDID's

step2: Used that profile & Archived the app

step3: Exporting the app by choosing Development option.


Please help me to resolve this issue.


Crash Report:

Process: App name [16208]

Path: /private/var/folders/*/app name.app/Contents/MacOS/app name

Identifier: com.***.***

Version: ???

Code Type: X86-64 (Native)

Parent Process: ??? [1]

Responsible: App name [16208]

User ID: 501


Date/Time: 2020-04-09 18:30:41.151 +0530

OS Version: Mac OS X 10.14.6 (18G3020)

Report Version: 12

Bridge OS Version: 3.0 (14Y906)

Anonymous UUID: 52961C2C-2495-A33F-F689-6312276F01B3


Sleep/Wake UUID: 100B784F-FF52-4E3A-AFC7-7D48B4F9A031


Time Awake Since Boot: 240000 seconds

Time Since Wake: 28000 seconds


System Integrity Protection: enabled


Notes: Translocated Process


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 0000000101f2d000-000000010201c000 [ 956K] r-x/r-x SM=COW


Thread 0 Crashed:

0 0x000000010f22c000 _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: 0x00007ffeedcd2af0

r8: 0x0000000000000000 r9: 0x0000000000000000 r10: 0x0000000000000000 r11: 0x0000000000000000

r12: 0x0000000000000000 r13: 0x0000000000000000 r14: 0x0000000000000000 r15: 0x0000000000000000

rip: 0x000000010f22c000 rfl: 0x0000000000000200 cr2: 0x0000000000000000


Logical CPU: 0

Error Code: 0x00000000

Trap Number: 0



Binary Images:

0x101f2d000 - 0x10201bff7 + (0) <77D5DD68-AE24-3C76-A997-5643B25DCF56>

0x10f22b000 - 0x10f29570f + (655.1.1) <1605ACFC-49C3-33AF-B319-5BE41FC6E208>


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: 8019798

thread_create: 0

thread_set_state: 0


VM Region Summary:

ReadOnly portion of Libraries: Total=1660K resident=0K(0%) swapped_out_or_unallocated=1660K(100%)

Writable regions: Total=8400K written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=8400K(100%)


VIRTUAL REGION

REGION TYPE SIZE COUNT (non-coalesced)

=========== ======= =======

STACK GUARD 56.0M 1

Stack 8192K 1

__DATA 504K 3

__LINKEDIT 276K 2

__TEXT 1384K 2

shared memory 8K 2

=========== ======= =======

TOTAL 66.1M 11

Replies

You should dump the provisioning profile embedded within your app to see if it contains the expected UUIDs:

% security cms -D -i /path/to/your.app/Contents/embedded.provisionprofile

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"

I get the same error. Except my app works fine for a few days till it doesnt.