【Xcode】Xcode 9 升级到 Xcode10 时遇到的问题

1,报文件重复

Xcode File--> Workspace Settings --> Build System 修改为Legacy Build System (默认是New Build System)

【Xcode】Xcode 9 升级到 Xcode10 时遇到的问题_第1张图片

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/

Put tdb copy to the path:

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/lib/

 

你可能感兴趣的:(Mac,OS,iOS/Swift,React,Native)