iOS13开发问题: library not found for -lstdc++.6.0.9(附下载地址)

这是之前iOS12时的解决方案
iOS13和iOS12的区别在于第一个文件的路径发生了改变
old:/Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/
new:/Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/
其他没有变化
libstdc-6.0.9下载地址放最前边

今天更新到iOS13 所碰到的问题,于是去Google了一下
下面是苹果的回答:

https://forums.developer.apple.com/message/314346#315386

Correct.  It is also not present in the iOS Simulator runtime.  If you want to hack around this, you will need to copy the libstdc++.*dylib from the iOS 11.4 simulator runtime to the iOS 12.0 simulator runtime in addition to copying the libstdc++.tbd between the SDKs.

 

Note that at some point the store will stop accepting apps linked against libstdc++, so it behouves you to actually update your project to use libc++ (which has been preferred for the past ~5 years or so).

大致意思就是这个库在Xcode10中被废弃.建议尽快进行更新.当前的解决方法是从Xcode9中将这个文件拷贝到Xcode10的对应目录下

Finder commond + shift + G 前往

操作方法:

libstdc++

Xcode10中删除的libstdc++

其中文件夹 1、2、3、4 中的文件分别对应复制到Xcode10中的以下4个目录中即可:

/Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/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://www.jianshu.com/p/8b55297dffe5

猜你喜欢

转载自blog.csdn.net/weixin_34236869/article/details/91065268