steventroughtonsmith / shortcuts-iosmac

Hacked-together implementation of Shortcuts for macOS Catalina using system frameworks
309 stars 27 forks source link

Why I can't run Shortcuts app from Xcode? #4

Open idkmyusername opened 3 years ago

idkmyusername commented 3 years ago

First I had an account problem with that project (but I fixed that), and now there's second that I don't know how to fix:

When I building Shortcuts app in Xcode, the build itself is successful, but app isn't launching. There's signal SIGABRT error in 0_ptread_kill, thread #1.

-> 0x7fff6ccb933a <+10>: jae 0x7fff6ccb9344 ; <+20> - there's somewhere an error.

Assertion failed: (platformBinary), function +[WFActionKitStaticInitializer load], file /AppleInternal/BuildRoot/Library/Caches/com.apple.xbs/Sources/Shortcuts_iosmac/Shortcuts-1050.23.1/ActionKit/ActionKit/ActionKit.m, line 44. - error that showing in Output Log.

libsystem_kernel.dylib`__pthread_kill: 0x7fff6ccb9330 <+0>: movl $0x2000148, %eax ; imm = 0x2000148 0x7fff6ccb9335 <+5>: movq %rcx, %r10 0x7fff6ccb9338 <+8>: syscall -> 0x7fff6ccb933a <+10>: jae 0x7fff6ccb9344 ; <+20> 0x7fff6ccb933c <+12>: movq %rax, %rdi 0x7fff6ccb933f <+15>: jmp 0x7fff6ccb3629 ; cerror_nocancel 0x7fff6ccb9344 <+20>: retq
0x7fff6ccb9345 <+21>: nop
0x7fff6ccb9346 <+22>: nop
0x7fff6ccb9347 <+23>: nop - full 0_ptread_kill file.

zacKolton commented 3 years ago

I got the same thing

y4rr commented 3 years ago

@idkmyusername @zacKolton Check your boot-args. Here's what I use. Maybe there's some extra arguments, I'm not sure, but everything works fine for me: sudo nvram boot-args="-v cs_enforcement_disable=1 amfi_allow_any_signature=1 amfi_unrestrict_task_for_pid=1 amfi_get_out_of_my_way=1"

zacKolton commented 3 years ago

Interesting - il check it out thanks