[英]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. 似乎
Copy pods resources
的脚本与正常的构建命令冲突。 I have tried all the available solutions 我已经尝试了所有可用的解决方案
copy bundle resources
. copy bundle resources
删除冗余文件。 product module
name under Build settings
to a unique one. Build settings
下的product module
名称更改为唯一的名称。 Copy Bundle Resources
Copy Bundle Resources
删除了info.Plist Temporary Fix : Xcode > File > Workspace Settings > Build System > Choose "Legacy Build System" 临时修复 :Xcode>文件>工作区设置>构建系统>选择“旧版构建系统”
Attaching my Copy Pods Resources
screenshot 附加我的
Copy Pods Resources
截图
Please try sudo gem update cocoapods
and update your cocoapods
version. 请尝试
sudo gem update cocoapods
并更新您的cocoapods
版本。 that solved in my case. 这解决了我的情况。
@birdcage - Update CocoaPods> Terminal @birdcage - 更新CocoaPods>终端
sudo gem update cocoapods
Then Delete Pods folder, .xcworkspace then delete Podfile.lock 然后删除Pods文件夹, .xcworkspace然后删除Podfile.lock
then reinstall all library. 然后重新安装所有库。
pod install
Changing build systems to Legacy Build System
works for me. 将构建系统更改为
Legacy Build System
对我有用。
Xcode => File => Workspace Settings => Build System => Change to "Legacy Build System"
Xcode => File => Workspace Settings => Build System =>更改为
"Legacy Build System"
只需从项目目标中删除[CP] Copy Pods Resources。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.