1,报文件重复
Xcode File--> Workspace Settings --> Build System 修改为Legacy Build System (默认是New Build System)
2,找不到库
苹果在XCode10和iOS12中移除了libstdc++库,而使用libc++库;
临时解决方案:拷贝缺失的 libstdc++、libstdc++.6、libstdc++6.0.9到对应目录即可;
For Device
Put tbd copy to the path:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/lib/
For Simulator
Put dylib copy to the path:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/
注意,此处有变动:
Xcdoe11及以上:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/
Xcdoe11以下:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/
Put tdb copy to the path:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/lib/