Xcode10填坑
升级Xcode10遇到的坑
1.libstdc++.6.0.9.tbd缺失
在Xcode10中取消了这个库,所以当第三库使用到的时候就会报错。
解决办法:
找一个Xcode10以下的版本,进入目录中,把libstdc++.6.0.9.tbd库拿出来放到Xcode10中对应的目录下。
真机目录:/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/
libstdc++.6.0.9.tbd百度云链接:链接:https://pan.baidu.com/s/1nT5mtt59Yi6CWpitaw3rHA 密码:ozot
2.info.plist编译报错
Showing Recent Messages
:-1: Multiple commands produce '/Users/mc/Library/Developer/Xcode/DerivedData/xxx-cjlewfnngpnmytdofopeeyggyikv/Build/Products/Debug-iphonesimulator/xxx.app/Info.plist':
- Target 'xxx' (project 'xxx') has copy command from 'xxx/Info.plist' to '/Users/mc/Library/Developer/Xcode/DerivedData/xxx/Build/Products/xxx.app/Info.plist'
-
Target 'xxx' (project xxx') has process command with output '/Users/mc/Library/Developer/Xcode/DerivedData/xxx/Build/Products/xxx.app/Info.plist'
这是因为项目中存在了多个info.plist文件导致报错
解决办法:
info.plist编译报错
把info.plist都删除掉即可
3.#import <>崩溃问题
更改编译方式Xcode --> File --> Workspace Setttings --> Build System --> Legacy Build System