XCTAssertTrue with UIPasteboard.general.string not working with iOS 16

Hello there,

With iOS 16 and Xcode 14 (all RC), my UnitTest stop working.

I'll appreciate some help!

Citan

The code that get the error: XCTAssertTrue(UIPasteboard.general.string == someString)

Error: Thread 8: signal SIGABRT

libsystem_kernel.dylib`:

    0x106628e58 <+0>:  mov    x16, #0x148

    0x106628e5c <+4>:  svc    #0x80

->  0x106628e60 <+8>:  b.lo   0x106628e7c               ; <+36>

    0x106628e64 <+12>: stp    x29, x30, [sp, #-0x10]!

    0x106628e68 <+16>: mov    x29, sp

    0x106628e6c <+20>: bl     0x106621b10               ; cerror_nocancel

    0x106628e70 <+24>: mov    sp, x29

    0x106628e74 <+28>: ldp    x29, x30, [sp], #0x10

    0x106628e78 <+32>: ret    

    0x106628e7c <+36>: ret