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/