iOS Xcode升級到10 遇見的問題
阿新 • • 發佈:2018-12-10
error: Multiple commands produce '/Users/wangrui/Library/Developer/Xcode/DerivedData/MOORs-cwmdhdlecxsfkccngftjrzrauguv/Build/Products/Debug-iphonesimulator/MOORs.app/README.md': 1) Target 'MOORs' (project 'MOORs') has copy command from '/Users/wangrui/Desktop/MOORs/MOORs/MOORs/3rd/TZImagePickerController/README.md' to '/Users/wangrui/Library/Developer/Xcode/DerivedData/MOORs-cwmdhdlecxsfkccngftjrzrauguv/Build/Products/Debug-iphonesimulator/MOORs.app/README.md' 2) Target 'MOORs' (project 'MOORs') has copy command from '/Users/wangrui/Desktop/MOORs/MOORs/MOORs/3rd/ZFPlayer/README.md' to '/Users/wangrui/Library/Developer/Xcode/DerivedData/MOORs-cwmdhdlecxsfkccngftjrzrauguv/Build/Products/Debug-iphonesimulator/MOORs.app/README.md'
昨天下班後電腦在公司升級Xcode,早上執行發現報錯,後來網上查了下資料,是由於CocoaPods版本的問題或者Xcode10的構建問題,主要解決如下:
-
In Xcode, go to File->Project/Workspace settings.
-
Change the build system to Legacy Build system.