更新Xcode10后出现的问题及解决方案

升级xcode 10.0之后项目出了许多的红色错误

报这个错误就是去tagets  里Build Phases下 [CP]copy pods Resources 删除下面

更新Xcode10后出现的问题及解决方案_第1张图片

然后又会报错 ld: library not found for -lstdc++.6.0.9(xcode升级之后这些库不存在,项目里添加的这库要移除)

1>在TARGETS  ---->General ------>Linked Frameworks and Libraries 下移除libstdc++.6.0.9.tdb库

2>在TARGETS  ---->Build Settings ------>Other Linker Flages 下移除libstdc++.6.0.9.tdb这个库的标识链接

如果依赖c++6.0.9的SDK是第三方SDK,需要联系第三方,等待第三方更新

如果是自己的文件引用了c++,请替换对c++库的使用,重新编译。


同时还会出现其他的问题,仅供参考

升级完Xcode,编辑运行的时候发现报了一些错误(如下):

问题如下:Showing Recent Messages

:-1: Multiple commands produce '/Users/xx/Library/Developer/Xcode/DerivedData/xxx-enekjocpeavqtedhdmtdevxeaemj/Build/Products/Debug-iphonesimulator/xxx.app':

1) Target 'xxx' has create directory command with output '/Users/xx/Library/Developer/Xcode/DerivedData/xxx-enekjocpeavqtedhdmtdevxeaemj/Build/Products/Debug-iphonesimulator/xxx.app'

2) That command depends on command in Target 'xxx': script phase “[CP] Copy Pods Resources”

解决方法:按照下面的解决步骤一步一步来。

问题一:Showing Recent Messages

:-1: Multiple commands produce '/Users/xx/Library/Developer/Xcode/DerivedData/xxx-dnzktflfdnohzveyiyzjeqhgewlh/Build/Products/Debug-iphonesimulator/xxx.app/README.md':

1) Target 'xxx' (project 'xxx') has copy command from '/Users/xx/xxx/xxx/Classes/Other/Lib/YYCache/README.md' to '/Users/xx/Library/Developer/Xcode/DerivedData/xxx-dnzktflfdnohzveyiyzjeqhgewlh/Build/Products/Debug-iphonesimulator/xxx.app/README.md'

2) Target 'xxx' (project 'xxx') has copy command from '/Users/xx/xx/xxx/Classes/Other/Lib/YYImage/README.md' to '/Users/xx/Library/Developer/Xcode/DerivedData/xxx-dnzktflfdnohzveyiyzjeqhgewlh/Build/Products/Debug-iphonesimulator/xxx.app/README.md'

3) Target 'xxx' (project 'xxx') has copy command from '/Users/xx/xx/xxx/Classes/Other/Lib/YYWebImage/README.md' to '/Users/xx/Library/Developer/Xcode/DerivedData/xxx-dnzktflfdnohzveyiyzjeqhgewlh/Build/Products/Debug-iphonesimulator/xxx.app/README.md'

解决方法:Bulid Phases —> Copy Bundle Reasources 然后找到 “YYCache/README.md”、“YYImage/README.md”和“YYWebImage/README.md”,将他们删掉就行了。

问题二:Showing Recent Messages

:-1: Multiple commands produce '/Users/xx/Library/Developer/Xcode/DerivedData/xxx-dnzktflfdnohzveyiyzjeqhgewlh/Build/Products/Debug-iphonesimulator/xxx.app/Info.plist':

1) Target 'xxx' (project 'xxx') has copy command from '/Users/xx/xx/xxx/Classes/Other/Lib/MDSocketRocket/Resources/Info.plist' to '/Users/xx/x/Developer/Xcode/DerivedData/xxx-dnzktflfdnohzveyiyzjeqhgewlh/Build/Products/Debug-iphonesimulator/xxx.app/Info.plist'

2) Target 'xxx' (project 'xxx') has process command with output '/Users/xx/Library/Developer/Xcode/DerivedData/xxx-dnzktflfdnohzveyiyzjeqhgewlh/Build/Products/Debug-iphonesimulator/xxx.app/Info.plist'

问题三:Showing Recent Messages

:-1: Multiple commands produce '/Users/xx/Library/Developer/Xcode/DerivedData/xxx-dnzktflfdnohzveyiyzjeqhgewlh/Build/Products/Debug-iphonesimulator/xxx.app/LICENSE':

1) Target 'xxx' (project 'xxx') has copy command from '/Users/xx/xx/RZSJApp/Classes/Other/Lib/YYCache/LICENSE' to '/Users/xx/Library/Developer/Xcode/DerivedData/xxx-dnzktflfdnohzveyiyzjeqhgewlh/Build/Products/Debug-iphonesimulator/xxx.app/LICENSE'

2) Target 'xxx' (project 'xxx') has copy command from '/Users/xx/xx/xxx/Classes/Other/Lib/YYImage/LICENSE' to '/Users/xx/Library/Developer/Xcode/DerivedData/xxx-dnzktflfdnohzveyiyzjeqhgewlh/Build/Products/Debug-iphonesimulator/xxx.app/LICENSE'

3) Target 'xxx' (project 'xxx') has copy command from '/Users/xx/xx/xxx/Classes/Other/Lib/YYWebImage/LICENSE' to '/Users/xx/Library/Developer/Xcode/DerivedData/xxx-dnzktflfdnohzveyiyzjeqhgewlh/Build/Products/Debug-iphonesimulator/xxx.app/LICENSE'

解决方法:Bulid Phases —> Copy Bundle Reasources 然后找到 “YYCache/LICENSE”、“YYImage/LICENSE”和“YYWebImage/LICENSE”,将他们删掉就行了。

你可能感兴趣的:(更新Xcode10后出现的问题及解决方案)