蘋果早在?Xcode 8中 就廢棄了libstdc++, 給了開發(fā)者兩年時間過渡, 如今在Xcode 10 &?Xcode 11中已不再支持. 在Build Phases > Link Binary With Libraries?中已經搜不到libstdc++的庫了
真機路徑:
libstdc++.6.0.9.tbd
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.0.sdk/usr/lib
模擬器編譯路徑:
libstdc++.6.0.9.tbd
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/usr/lib
模擬器編運行徑:
Xcode 10
libstdc++.6.0.9.dylib
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/
Xcode 11
libstdc++.6.0.9.dylib
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib
鏈接: https://pan.baidu.com/s/1uMLmbzrc0Osc3T19Gubd_Q 提取碼: q58g?