我有一个项目需要上传到我的私人豆荚中。因为它取决于其他人,所以会出现错误:产生多个命令。我将xcode设置为:文件-workapce-构建系统-旧版构建系统。它可以在xcode成功的基础上运行。
但是当我执行命令时:pod repo push XXX XXX。 Podspec-sources ='xxx,https://github.com/CocoaPods/Specs'--verbose --allow-warnings --use-libraries。错误反复出现:
Build system information
error: Multiple commands produce '/Users/joker/Library/Developer/Xcode/DerivedData/App-fdhxxtrwyvhdkcapwibarbetxoyu/Build/Products/Release-iphonesimulator/App.app/Info.plist':
1) That command depends on command in Target 'App' (project 'App'): script phase “[CP] Copy Pods Resources”
2) Target 'App' (project 'App') has process command with output '/Users/joker/Library/Developer/Xcode/DerivedData/App-fdhxxtrwyvhdkcapwibarbetxoyu/Build/Products/Release-iphonesimulator/App.app/Info.plist'
** BUILD FAILED **
Testing with `xcodebuild`.
-> XXX (89)
- WARN | url: The URL (https://gitee.com/Becent/BCStarRocket) is not reachable.
- ERROR | [iOS] xcodebuild: Returned an unsuccessful exit code.
- NOTE | xcodebuild: note: Using new build system
- NOTE | [iOS] xcodebuild: note: Planning build
- NOTE | [iOS] xcodebuild: note: Constructing build description
使用xcodebuild
,xcodebuild进行测试:注意是使用新的构建系统,而不是传统的构建系统。
答案 0 :(得分:0)
该问题可能是由于App中有多个Plist或其他文件引起的-
解决方案->打开目标->构建阶段>复制捆绑资源,然后从此处删除info.plist。