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

 

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章