iOS 13.6, DYLD, symbol not found,expected in '/usr/lib/libc++.1.dylib',

hello,my app encounter a symbol not found problem that only occurs on iOS 14 and lower iOS version,the app just crash when launching, for iOS 15 and above iOS version, everything is ok. The app is built with XCode 15.2 and the min deployment target is iOS 12. The Crash report is here:

thanks in advance

the crash report text attachment is here

{"app_name":"player","timestamp":"2024-12-18 10:10:41.00 +0800","app_version":"1.20","slice_uuid":"b55ab02e-370f-390a-a0fe-427cad11fe68","adam_id":-2115407491,"build_version":"1.20","bundleID":"com.daxiang.listening","share_with_app_devs":1,"is_first_party":0,"bug_type":"109","os_version":"iPhone OS 13.6 (17G68)","incident_id":"585357ED-47EF-4864-BF32-AFBC639019A5","name":"player"}
Incident Identifier: 585357ED-47EF-4864-BF32-AFBC639019A5
CrashReporter Key:   11b55e981efb025697b3129430b651c5ee1f4caa
Hardware Model:      iPhone10,3
Process:             player [533]
Path:                /private/var/containers/Bundle/Application/19E029BB-47DC-47DD-B70E-75A653110E75/player.app/player
Identifier:          com.daxiang.listening
Version:             1.20 (1.20)
AppStoreTools:       16C5031b
AppVariant:          1:iPhone10,3:13
Code Type:           ARM-64 (Native)
Role:                Foreground
Parent Process:      launchd [1]
Coalition:           com.daxiang.listening [623]


Date/Time:           2024-12-18 10:10:41.8120 +0800
Launch Time:         2024-12-18 10:10:41.7620 +0800
OS Version:          iPhone OS 13.6 (17G68)
Release Type:        User
Baseband Version:    5.70.01
Report Version:      104

Exception Type:  EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note:  EXC_CORPSE_NOTIFY
Termination Description: DYLD, symbol '__ZTTNSt3__114basic_ifstreamIcNS_11char_traitsIcEEEE' not found, expected in '/usr/lib/libc++.1.dylib', needed by '/private/var/containers/Bundle/Application/19E029BB-47DC-47DD-B70E-75A653110E75/player.app/player'
Highlighted by Thread:  0

Backtrace not available

Unknown thread crashed with ARM Thread State (64-bit):
    x0: 0x0000000000000006   x1: 0x0000000000000004   x2: 0x000000016d209460   x3: 0x00000000000000c3
    x4: 0x000000016d209060   x5: 0x0000000000000000   x6: 0x0000000000000000   x7: 0x0000000000000000
    x8: 0x0000000000000020   x9: 0x0000000000000009  x10: 0x444437342d434437  x11: 0x35372d453037422d
   x12: 0x3131333536413537  x13: 0x616c702f35374530  x14: 0x2f7070612e726579  x15: 0x0027726579616c70
   x16: 0x0000000000000209  x17: 0x0000000105c2eeb8  x18: 0x0000000000000000  x19: 0x0000000000000000
   x20: 0x000000016d209060  x21: 0x00000000000000c3  x22: 0x000000016d209460  x23: 0x0000000000000004
   x24: 0x0000000000000006  x25: 0x0000000105c34000  x26: 0x0000000000000000  x27: 0x0000000105c34000
   x28: 0x0000000000000000   fp: 0x000000016d209030   lr: 0x0000000105c1bee8
    sp: 0x000000016d208ff0   pc: 0x0000000105c14f68 cpsr: 0x00000000
   esr: 0x00000000  Address size fault

Binary images description not available

Error Formulating Crash Report:
Failed to create CSSymbolicatorRef - corpse still valid ¯\_(ツ)_/¯

EOF

the problem is solved by checking build warning, one of the warning: ld: warning: object file (***.o)) was built for newer iOS version (18.0) than being linked (12.0); it indicates that a library written with c++ linked to the app is built for iOS 18.0; after rebuilding the library for iOS 12.0, everything is ok. one final confusion: the crash report seems not relevant to the cause of the problem.

iOS 13.6, DYLD, symbol not found,expected in '/usr/lib/libc++.1.dylib',
 
 
Q