網(wǎng)上有很多類似的解決方法,但每個人的項目不同姓言,配置不同,因人而異蔗蹋。
搜索了一大堆還是未能解決自己的問題何荚,所以做出以下記錄,希望和我一樣的小白少走彎路猪杭!
桌面Command + Shift + G
前往.png
輸入下面三個路徑
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/
xcode11
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/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/
依次插入libstdc++文件,打開項目餐塘,真機模擬器都可以運行!