Funny linking error while compiling for Swift 5 with some construct for 6

When I compile my app I receive no errors, but for a final linking error hampering the installation I have no cue about: this is the log file around the log:

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