升级Xcode10 运行报错library not found for -lstdc++

问题1 报文件重复

error: Multiple commands produce '/Users/ios_/Library/Developer/Xcode/DerivedData/MeteorDog-dqnxjkvsmbcjyleypexhqyyrlijo/Build/Products/Debug-iphoneos/MeteorDog.app/Info.plist':
1) Target 'MeteorDog' (project 'MeteorDog') has copy command from '/Users/ios_/Desktop/iOS/MeteorDog/MeteorDog/libsAndThirdPart/Core/Info.plist' to '/Users/ios_/Library/Developer/Xcode/DerivedData/MeteorDog-dqnxjkvsmbcjyleypexhqyyrlijo/Build/Products/Debug-iphoneos/MeteorDog.app/Info.plist'
2) Target 'MeteorDog' (project 'MeteorDog') has process command with output '/Users/ios_/Library/Developer/Xcode/DerivedData/MeteorDog-dqnxjkvsmbcjyleypexhqyyrlijo/Build/Products/Debug-iphoneos/MeteorDog.app/Info.plist'

image.png

解决办法

File--> Workspace Settings --> Build System 修改为Legacy Build System (默认是New Build System)


升级Xcode10 运行报错library not found for -lstdc++_第1张图片
image.png

问题2 找不到libstdc++.6.0.9 (ibstdc++.6)库

升级Xcode10 运行报错library not found for -lstdc++_第2张图片
image.png

升级到Xcode10,由于iOS12移除了libstdc++.6.0.9,所以好的办法就是把这个库用libc++替换掉。但是项目中有的第三方的静态库里面使用到了,并且还没来得及修复这个问题,实在是没得什么好办法,所以就暂时把Xcode9中的libstdc++移动到了Xcode10对应目录下,之后再处理了。具体路径-->
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/lib/libstdc++.* /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/lib/
升级Xcode10 运行报错library not found for -lstdc++_第3张图片
image.png

链接: 如果大家找不到Xcode9的库了可以点击下载----提取码: 2hxp

mark

不过,模拟器会在运行时报以下错误,暂时没有找到解决办法。如果想适配iPhone XS Max,看下效果,可以通过移除掉libstdc++.6.0.9,然后看哪些三方库报错,暂时移除这些三方库,就可以了。

你可能感兴趣的:(升级Xcode10 运行报错library not found for -lstdc++)