xcode11解决:xcode multiple commands produce .../xxx/Assets.car

最近在xcode 11上使用pod碰到一个问题,Assets.car被生成多次。

 

问题如下:

Multiple commands produce '/Users/luowei/Library/Developer/Xcode/DerivedData/LWAudioPlayer-ebxyxcdiplyaeucipfqphpogtkzh/Build/Products/Debug-iphonesimulator/LWAudioPlayer_Example.app/Assets.car':

1) Target 'LWAudioPlayer_Example' (project 'LWAudioPlayer') has compile command with input '/Users/luowei/projects/libs/mybinlibs/LWAudioPlayer/Example/LWAudioPlayer/Images.xcassets'

2) That command depends on command in Target 'LWAudioPlayer_Example' (project 'LWAudioPlayer'): script phase “[CP] Copy Pods Resources”

 

解决方法如下:

在Podfile文件中最前面添加以下代码解决:

install! 'cocoapods', :disable_input_output_paths => true

 

 

你可能感兴趣的:(开发,xcode,iOS)