Info.plist 文件重复问题

3,254 阅读1分钟
Showing All Messages
Unexpected duplicate tasks:
1) Target 'HuAliYunKit' (project 'Pods') has copy command from '/Users/huanghaipo/Desktop/317hu_iOS_zhongwei/Pods/HuAliYunKit/HuAliYunKit/Classes/AliyunLogObjc/Info.plist' to '/Users/huanghaipo/Library/Developer/Xcode/DerivedData/317hu-dcvtjrdosnpviyharllwqrceqtfr/Build/Products/Debug-SIT-iphonesimulator/HuAliYunKit/Info.plist'
2) Target 'HuAliYunKit' (project 'Pods') has copy command from '/Users/huanghaipo/Desktop/317hu_iOS_zhongwei/Pods/HuAliYunKit/HuAliYunKit/Classes/AliyunLogObjc/Info.plist' to '/Users/huanghaipo/Library/Developer/Xcode/DerivedData/317hu-dcvtjrdosnpviyharllwqrceqtfr/Build/Products/Debug-SIT-iphonesimulator/HuAliYunKit/Info.plist'

原因:由于重复文件是其他库有依赖,所以修改了xcode的配置暂时解决了编译报错的问题。

解决办法一:菜单栏点击 File —> Workspace Settings —> Build System 选择 legacy Build System

网上还有一种解决办法。根据报错搜索重复的文件,找到后删除就行,但是我这边没有搜索到报错的文件,就直接修改了编译系统。