When I build my app in XCode 12.4 target device iOS 13.3, it will crash at launch with error message below. But works fine target device simulator.
dyld: Symbol not found: ___darwin_check_fd_set_overflow Referenced from: /private/var/containers/Bundle/Application/EBA2D824-6239-4E6A-BD10-1A3F945AECA3/MyAPP.app/MyAPP Expected in: /usr/lib/libSystem.B.dylib in /private/var/containers/Bundle/Application/EBA2D824-6239-4E6A-BD10-1A3F945AECA3/MyAPP.app/MyAPP dyld: launch, loading dependent libraries DYLD_LIBRARY_PATH=/usr/lib/system/introspection DYLD_INSERT_LIBRARIES=/Developer/usr/lib/libBacktraceRecording.dylib:/Developer/usr/lib/libMainThreadChecker.dylib:/Developer/Library/PrivateFrameworks/DTDDISupport.framework/libViewDebuggerSupport.dylib:/Developer/Library/PrivateFrameworks/GPUTools.framework/libglInterpose.dylib:/usr/lib/libMTLCapture.dylib
The crash can be solved by weak linking to libSystem.B.dylib, but I just wonder why this happen. Any clue is appreciated