Xcode 项目抱错,无法运, 持续更新中

在工程运行中, 总是会遇到各种稀奇古怪的问题, 然后各种google.但是以前从来没有想过要进行整理, 今天打开以前的老项目的时候,突然工程爆红,不能用了, 所以想了想,有必要整理下,方便自己和其他遇到同样类型问题的码农们

1. oc项目中, 引入Moya 抱错. 语言版本错误

抱错信息  The “Swift Language Version” (SWIFT_VERSION) build setting must be set to a supported value for targets which use Swift. Supported values are: 3.0, 4.0, 4.2. This setting can be set in the build settings editor.

解决办法, 修改pod库中指定版本Xcode 项目抱错,无法运, 持续更新中_第1张图片

 

1.  Xcode升级导致 打开旧项目报错Multiple commands produce定位到Info.plist解决方

今晚无事打开很久以前的项目, 发现突然无法使用:具体抱错信息如下

:-1: Multiple commands produce '/Users/fangcengceng/Library/Developer/Xcode/DerivedData/xxxxx-cceblkldzicavucbqbgkletyrjcp/Build/Products/Debug-iphonesimulator/xxxx.app/Info.plist':
1) Target 'xxxxx' (project 'xxxx') has copy command from '/Users/fangcengceng/Desktop/xxxx/Masonry/Info.plist' to '/Users/fangcengceng/Library/Developer/Xcode/DerivedData/xxxx-cceblkldzicavucbqbgkletyrjcp/Build/Products/Debug-iphonesimulator/xxxx.app/Info.plist'
2) Target 'xxxx' (project 'xxxx') has process command with output '/Users/fangcengceng/Library/Developer/Xcode/DerivedData/xxxx-cceblkldzicavucbqbgkletyrjcp/Build/Products/Debug-iphonesimulator/xxxx.app/Info.plist'

解决办法: xcode-file-project setting中解决

Xcode 项目抱错,无法运, 持续更新中_第2张图片

你可能感兴趣的:(iOS,开发)