When debugging a tvOS application that calls
Data(contentsOf: URL)
I get an error:
nw_protocol_get_quic_image_block_invoke dlopen libquic failed: dlopen(/usr/lib/libquic.dylib, 0x0005): tried: [...a number of folders it tried to find the file in...]
.
I found similar problems here (https://developer.apple.com/forums/thread/693245), but it is not equal, nor does it have a solution.
Any suggestions on how to fix this? I also tried to copy a libquic.tbd
file present in other simulators to one of the paths it looks for (a suggestion somewhere on StackOverflow), but it does not help unfortunately.