Xcode 11報錯 library not found for -libstdc++.6.0.9

1.真機

將libstdc++.6.0.9.tbd文件拷貝到以下路徑:

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/lib

2.模擬器

將libstdc++.6.0.9.tbd文件拷貝到以下路徑:

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneOS.sdk/usr/lib

完成上述操作,真機可以運行,但是模擬器還會報錯:

Reason:no suitable image found. Did find: /usr/lib/libstdc++.6.dylib : mach-o, but not builtforiOS simulator

====================模擬器還需添加以下文件=====================

將libstdc++.6.0.9.dylib,libstdc++.6.dylib,libstdc++.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/1evpM29cusH5KwWecwE1I8g 密碼:r445

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章