Xcode10正式版出来了...

升级完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'

解决方法:Bulid Phases —> Copy Bundle Reasources 然后找到 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正式版出来了...)