报错1:
- :-1: Multiple commands produce '/Users/xxx/Library/Developer/Xcode/DerivedData/工程名-ersawahqakmztieocxvzbpithivc/Build/Products/Debug_UAT_F-iphoneos/工程名.app/文件名.html':
- Target '工程名' (project '工程名') has copy command from '/Users/xxx/Desktop/Task/bridge/mobile_app_ios/工程名/Main/Robot/AikfSdk/Classes/Lib/XMPP/Vendor/CocoaAsyncSocket/GCD/文件名.html' to '/Users/xxx/Library/Developer/Xcode/DerivedData/工程名-ersawahqakmztieocxvzbpithivc/Build/Products/Debug_UAT_F-iphoneos/工程名.app/文件名.html'
- Target '工程名' (project '工程名') has copy command from '/Users/xxx/Desktop/Task/bridge/mobile_app_ios/工程名/Main/Robot/AikfSdk/Classes/Lib/XMPP/Vendor/CocoaAsyncSocket/RunLoop/文件名.html' to '/Users/xxx/Library/Developer/Xcode/DerivedData/工程名-ersawahqakmztieocxvzbpithivc/Build/Products/Debug_UAT_F-iphoneos/工程名.app/文件名.html'
报错2:
- error: Multiple commands produce '/Users/xxx/Library/Developer/Xcode/DerivedData/工程名-ersawahqakmztieocxvzbpithivc/Build/Products/Debug_UAT_F-iphoneos/工程名.app/Info.plist':
- Target '工程名' (project '工程名') has copy command from '/Users/xxx/Desktop/Task/bridge/mobile_app_ios/工程名/Main/Robot/AikfSdk/Info.plist' to '/Users/xxx/Library/Developer/Xcode/DerivedData/工程名-ersawahqakmztieocxvzbpithivc/Build/Products/Debug_UAT_F-iphoneos/工程名.app/Info.plist'
- Target '工程名' (project '工程名') has process command with output '/Users/xxx/Library/Developer/Xcode/DerivedData/工程名-ersawahqakmztieocxvzbpithivc/Build/Products/Debug_UAT_F-iphoneos/工程名.app/Info.plist'
报错3:
[[self.circleSet lastObject] setState:state]报错
报错1、2都是文件重复的错误,xcode10不允许同名文件存在;对于错误1,框架里xmpp框架里的重名文件,xcode10之前一直没问题,说明xcode10比xcode9要严谨;错误2:不同的框架都存在info.plist;
解决方法:忽略重读文件xcode--file--Workspace Settings--Build System--legacy Build System
报错3:在代码声明circleSet属性如下:@property (nonatomic, strong) NSMutableArray *circleSet; circleSet数组元素是PCCircle类,上边方法直接拿数组元素(没有实例化实例)调用实例方法。
解决方法:将circleSet属性声明为泛型方式如下:@property (nonatomic, strong) NSMutableArray <PCCircle*>*circleSet;
再一次验证了xcode10的严谨性