一、刚升级Xcode10,首次运行报错如下:
解决:找到下图位置,删掉选中条目
二、运行工程出现错误提示:library not found for -lstdc++.6.0.9
解决办法
1.拷贝旧Xcode
中的库。没有的可以直接去这里下载地址GitHub
- 真机路径
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOSxxx.sdk/usr/lib
2.添加至Xcode10.0
中。
- 模拟器路径
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulatorxxx.sdk/usr/lib
- 真机路径
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.0.sdk/usr/lib
- 模拟器路径
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/usr/lib