IOS 超级无敌iOS 实际项目出现的问题

升级Xcode 10 Error: Multiple comma

2018-09-25  本文已影响1315人  江河_ios
屏幕快照 2018-09-25 上午9.54.32.png
error: Multiple commands produce '/Users/maxiansheng/Library/Developer/Xcode/DerivedData/PercussionProject-fwieirugahmmvdeljwhihsvrnmls/Build/Products/Debug-iphonesimulator/PercussionProject.app':
1) Target 'PercussionProject' has create directory command with output '/Users/maxiansheng/Library/Developer/Xcode/DerivedData/PercussionProject-fwieirugahmmvdeljwhihsvrnmls/Build/Products/Debug-iphonesimulator/PercussionProject.app'
2) That command depends on command in Target 'PercussionProject':          script phase “[CP] Copy Pods Resources”

分析error内容,错误发生在Copy Pods Resources,而且与output有关,应该是使用了cocoapods导致的,尝试删除该项目target-Copy Pods Resources-Output Files,成功解决问题。

解决步骤:

  选中项目target -> Build phase -> Copy Pods Resources -> Output Files -> 移除${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH} 重新运行即可。
屏幕快照 2018-09-25 上午9.58.49.png
 问题
       Showing Recent Messages:-1: 
Multiple commands produce'/Users/admxjx/Library/Developer/Xcode/DerivedData/*****-fiyqckrgqvolmlefumieigxfboco/Build/Products/Debug-iphonesimulator/*****.app/Info.plist':
1) Target '*****' (project '*****') has copy command from '/Users/admxjx/coin-iOS/coin-ios1.0/*****/Info.plist' to '/Users/admxjx/Library/Developer/Xcode/DerivedData/*****-fiyqckrgqvolmlefumieigxfboco/Build/Products/Debug-iphonesimulator/*****.app/Info.plist'
2) Target '*****' (project '*****') has process command with output '/Users/admxjx/Library/Developer/Xcode/DerivedData/*****-fiyqckrgqvolmlefumieigxfboco/Build/Products/Debug-iphonesimulator/*****.app/Info.plist'

解决1:删除重复的info.plist(删除前请备份好; 右键 show in Finder打开info.plist所在目录)

打开 target > Build pha
se > Copy Bundle Resource/Compile Sources > 删除 info.plist

上一篇下一篇

猜你喜欢

热点阅读