Xcode10项目报错
2018-09-19 本文已影响34人
骑马纵天下
- 升级到Xcode10,运行项目报错如下:
- 环境:Xcode版本是10.0,CocoaPods版本低于1.4.0。
Showing All Messages
:-1: Multiple commands produce '/Users/xxxxxx/Library/Developer/Xcode/DerivedData/xxxxxx-csqzgiubnpuytwbxdmhbkjmtihlx/Build/Products/Debug-DEV-iphonesimulator/xxxxxx.app':
1) Target 'xxxxxx' has create directory command with output '/Users/xxxxxx/Library/Developer/Xcode/DerivedData/317hu-csqzgiubnpuytwbxdmhbkjmtihlx/Build/Products/Debug-DEV-iphonesimulator/xxxxxx.app'
2) That command depends on command in Target 'xxxxxx': script phase “[CP] Copy Pods Resources”
Xcode 10项目报错
- 原因:Xcode10构建时无法从CocoaPods中加载到项目所导入的应用程序包。
- 解决:Xcode升级到10,CocoaPods版本也需要升级1.4.0及以上。如果项目中的CocoaPods版本>=1.4.0则不会有错。
CocoaPods GitHub项目问题地址 Xcode10 beta can't load bundles from CocoaPods
更新CocoaPods
$ sudo gem update cocoapods //update cocoapods
如有Ruby源有问题可以看下面那篇文章