一个解决办法就是把之前版本的libstdc++copy到本版本、不过每次更新都需要重新copy一次、前提是得有旧版本、没有的话就去git上下载吧
需要copy的目录为
Xcode ▸ Contents ▸ Developer ▸ Platforms ▸ iPhoneOS.platform ▸ Developer ▸ Library ▸ CoreSimulator ▸ Profiles ▸ Runtimes ▸ iOS.simruntime ▸ Contents ▸ Resources ▸ RuntimeRoot ▸ usr ▸ lib
Xcode ▸ Contents ▸ Developer ▸ Platforms ▸ iPhoneOS.platform ▸ Developer ▸ SDKs ▸ iPhoneOS.sdk ▸ usr ▸ lib
Xcode ▸ Contents ▸ Developer ▸ Platforms ▸ iPhoneSimulator.platform ▸ Developer ▸ SDKs ▸ iPhoneSimulator.sdk ▸ usr ▸ lib
如果需要的话这个文件夹也添加进去
Xcode ▸ Contents ▸ Developer ▸ Platforms ▸ MacOSX.platform ▸ Developer ▸ SDKs ▸ MacOSX.sdk ▸ usr ▸ lib
如果是自己写的话、最好把库换成libc++
网友评论