iOS12 &Xcode 10运行项目报错

一、错误信息

Multiple commands produce '/Users/owen/Library/Developer/Xcode/DerivedData/xxx-fzmysjhnekbqquhezppemxwljxrn/Build/Products/Debug-iphoneos/xxx.app/Info.plist':

1) Target 'xxx' (project 'xxx') has copy command from '/Users/owen/Desktop/xxx/Info.plist' to '/Users/owen/Library/Developer/Xcode/DerivedData/xxx-fzmysjhnekbqquhezppemxwljxrn/Build/Products/Debug-iphoneos/xxx.app/Info.plist'

2) Target 'xxx' (project 'xxx') has process command with output '/Users/owen/Library/Developer/Xcode/DerivedData/xxx-fzmysjhnekbqquhezppemxwljxrn/Build/Products/Debug-iphoneos/xxx.app/Info.plist'

二、解决办法

1. 不使用New Build System

In Xcode, go to File -> Project/Workspace settings.

把 build system 修改为: Legacy Build system

iOS12 &Xcode 10运行项目报错_第1张图片
iOS12 &Xcode 10运行项目报错_第2张图片

2. TARGETS-> Build Phases > Copy Bundle Resources,找到info.plist并移除


iOS12 &Xcode 10运行项目报错_第3张图片

你可能感兴趣的:(iOS12 &Xcode 10运行项目报错)