錯誤資訊:ld: library not found for -lstdc++.6
報錯原因:Xcode10移除了動态庫libstdc
修複方法:
需要将libstdc檔案複制到下述四個路徑下,才能保證模拟器和真機均能正常使用。
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/lib/
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/lib/
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/lib/
檔案下載下傳位址:
https://download.csdn.net/download/overstep1024/11193547