简体   繁体   中英

Xcode 10 multiple commands build error for Pods dependency

Multiple commands produce '/Users/abc/Library/Developer/Xcode/DerivedData/MyProject-cworwzaxajsmfkcfvourofovbggd/Build/Products/QA-iphonesimulator/MyProject.app':

1) Target 'MyProject' has create directory command with output '/Users/abc/Library/Developer/Xcode/DerivedData/MyProject-cworwzaxajsmfkcfvourofovbggd/Build/Products/QA-iphonesimulator/MyProject.app'

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

It seems like a script in Copy pods resources is conflicting with the normal build command. I have tried all the available solutions

  1. Removing redundant files from copy bundle resources .
  2. Updating cocoapods.
  3. Changing product module name under Build settings to a unique one.
  4. Removed info.Plist from Copy Bundle Resources

Temporary Fix : Xcode > File > Workspace Settings > Build System > Choose "Legacy Build System"

Attaching my Copy Pods Resources screenshot 在此输入图像描述

Please try sudo gem update cocoapods and update your cocoapods version. that solved in my case.

@birdcage - Update CocoaPods> Terminal

sudo gem update cocoapods

Then Delete Pods folder, .xcworkspace then delete Podfile.lock

then reinstall all library.

pod install

Changing build systems to Legacy Build System works for me.

Xcode => File => Workspace Settings => Build System => Change to "Legacy Build System"

只需从项目目标中删除[CP] Copy Pods Resources。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM