更新Xcode 10
问题:Multiple commands produce

Showing Recent Messages
Multiple commands produce '/Users/****/Library/Developer/Xcode/DerivedData/ztjyyd-gxgjinjfkvptpwhgnmwanynxykan/Build/Products/Debug-iphoneos/ztjyyd_test.app/Info.plist':
设置下
xcode--file--Workspace Settings--Build System--legacy Build System

缺少依赖库的问题
iOS 12也就是Xcode 10更新后移除了一些依赖库跟之前的Xcode大版本更新情况类似,只需要从旧的Xcode版本中拿到相应的依赖库导入项目就行了,举个例子:
报错如下:
library not found for -lstdc++.6.0.9

解决:
从旧版本的Xcode获取到
libstdc++.6.0.9.tbd
库,重新导入Xcode编译通过。
这样有个问题,运行模拟器的时候报错缺少
libstdc++.6.0.9.tbd
库。
So,直接把缺少的依赖库直接放到Xcode的库文件夹里面:
// 真机目录
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/lib
// 模拟器
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/lib

妈妈再也不担心缺少依赖库了...
总结
暂时就碰到这些问题,先处理了后续还有问题的话会持续更新哈。
网友评论