美文网首页
xcode11中library not found for -l

xcode11中library not found for -l

作者: kendi_66 | 来源:发表于2020-03-09 16:08 被阅读0次

因为Xcode10开始已经libstdc++,再使用需要添加.dylib .tbd文件。

主要是4个文件夹。

1真机运行
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/lib
在这个文件夹下添加210kb的libstdc++.6.0.9.tbd libstdc++.6.tbd libstdc++.tbd

2模拟器运行
xcode11里
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib
在这个文件夹添加767kb的 libstdc++.6.0.9.dylib libstdc++.6.dylib libstdc++.dylib

xcode10里
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib
在这个文件夹添加767kb的 libstdc++.6.0.9.dylib libstdc++.6.dylib libstdc++.dylib

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/lib
在这个文件夹添加207kb的libstdc++.6.0.9.tbd libstdc++.6.tbd libstdc++.tbd

3macOS开发
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/lib
在这个文件夹添加207kb的libstdc++.6.0.9.tbd libstdc++.6.tbd libstdc++.tbd

如果没有对应文件夹 右键-显示包内容

参考文章https://www.jianshu.com/p/7f0af489a307

相关文章

网友评论

      本文标题:xcode11中library not found for -l

      本文链接:https://www.haomeiwen.com/subject/flupdhtx.html