最近在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