When I compile my app I get a funny link error on libsystem_kernel.dylib`__pthread_kill:

This is the full logging:

libsystem_kernel.dylib`__pthread_kill:
    0x2502f71c8 <+0>:  mov    x16, #0x148               ; =328 
    0x2502f71cc <+4>:  svc    #0x80
->  0x2502f71d0 <+8>:  b.lo   0x2502f71f0               ; <+40>
    0x2502f71d4 <+12>: pacibsp 
    0x2502f71d8 <+16>: stp    x29, x30, [sp, #-0x10]!
    0x2502f71dc <+20>: mov    x29, sp
    0x2502f71e0 <+24>: bl     0x2502f2900               ; cerror_nocancel
    0x2502f71e4 <+28>: mov    sp, x29
    0x2502f71e8 <+32>: ldp    x29, x30, [sp], #0x10
    0x2502f71ec <+36>: retab  
    0x2502f71f0 <+40>: ret 

What do you expect we could do with so limited information ?

You should read this: https://developer.apple.com/forums/thread/706527

and complete your post.

Have a good day.

Ok, I clarify myself a bit. There seems the code lacks an entry point, from another part of the crash log:

iPuja`abort_could_not_find_entry_point___debug_dylib:
    0x102ab1440 <+0>: stp    x29, x30, [sp, #-0x10]!
    0x102ab1444 <+4>: mov    x29, sp
    0x102ab1448 <+8>: bl     0x102ab1620               ; symbol stub for: abort

Then it seems it keeps on finding a entry point until it crashes.

iPuja`getDebugDylibEntryPoint:
    0x102ab05d4 <+0>:    sub    sp, sp, #0x70
    0x102ab05d8 <+4>:    stp    x26, x25, [sp, #0x20]
    0x102ab05dc <+8>:    stp    x24, x23, [sp, #0x30]
    0x102ab05e0 <+12>:   stp    x22, x21, [sp, #0x40]
    0x102ab05e4 <+16>:   stp    x20, x19, [sp, #0x50]
    0x102ab05e8 <+20>:   stp    x29, x30, [sp, #0x60]
    0x102ab05ec <+24>:   add    x29, sp, #0x60
    0x102ab05f0 <+28>:   adrp   x8, 8
    0x102ab05f4 <+32>:   ldr    x8, [x8, #0x8]
    0x102ab05f8 <+36>:   ldr    x8, [x8]
    0x102ab05fc <+40>:   str    x8, [sp, #0x18]
    0x102ab0600 <+44>:   adrp   x24, 12
    0x102ab0604 <+48>:   ldrb   w8, [x24]
    0x102ab0608 <+52>:   adrp   x23, 12
    0x102ab060c <+56>:   adrp   x19, 12
    0x102ab0610 <+60>:   add    x19, x19, #0x100          ; debugDylibEntryPointName
    0x102ab0614 <+64>:   tbnz   w8, #0x0, 0x102ab0834     ; <+608>
    0x102ab0618 <+68>:   bl     0x102ab14f8               ; OUTLINED_FUNCTION_6
    0x102ab061c <+72>:   cbz    w0, 0x102ab063c           ; <+104>
    0x102ab0620 <+76>:   bl     0x102ab1564               ; OUTLINED_FUNCTION_15

Of course I may not be so much clearer than that, because if I knew what was the cause for the linking error I could fix it by myself...

In brief, how do I replace the entry point, and where that is located?

Moreover I have:

Undefined base symbol '_main' for alias '___debug_main_executable_dylib_entry_point'

and

-ld_classic is deprecated and will be removed in a future release

I added @main to the AppDelegate and the situation changed; now I have:

libswiftCore.dylib`swift_willThrow:
->  0x181cb27ec <+0>:  pacibsp 
    0x181cb27f0 <+4>:  str    x19, [sp, #-0x20]!
    0x181cb27f4 <+8>:  stp    x29, x30, [sp, #0x10]
    0x181cb27f8 <+12>: add    x29, sp, #0x10
    0x181cb27fc <+16>: adrp   x8, 429908
    0x181cb2800 <+20>: add    x8, x8, #0x660            ; _swift_willThrow
    0x181cb2804 <+24>: ldapr  x8, [x8]
    0x181cb2808 <+28>: cbnz   x8, 0x181cb2818           ; <+44>
    0x181cb280c <+32>: ldp    x29, x30, [sp, #0x10]
    0x181cb2810 <+36>: ldr    x19, [sp], #0x20
    0x181cb2814 <+40>: retab  
    0x181cb2818 <+44>: mov    x0, x21
    0x181cb281c <+48>: mov    x19, x21
    0x181cb2820 <+52>: blraaz x8
    0x181cb2824 <+56>: mov    x21, x19
    0x181cb2828 <+60>: b      0x181cb280c               ; <+32>
When I compile my app I get a funny link error on libsystem_kernel.dylib&#96;__pthread_kill:
 
 
Q