XCode9升级XCode10问题

问题一:正式版Xcode10运行libstdc++报错处理

需要将Xcode9的文件拷入到相应的Xcode10中

复制到下述四个路径下,才能保证模拟器和真机均好用

拷贝文件夹1:

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/

拷贝文件夹2:

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

拷贝文件夹3:

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

拷贝文件夹4:

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


问题二:正式版Xcode10运行找不到C++头文件报错处理

需要将Xcode9的文件拷入到相应的Xcode10中

复制到下述两个路径下,才能保证模拟器和真机均好用

真机

拷贝文件夹5:

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/include/c++

模拟器:    

拷贝文件夹6:

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/include/c++

附:上述文件下载地址

链接:https://pan.baidu.com/s/1uYkkPm91j7RoWcInEIFM0Q 提取码:l8bf

猜你喜欢

转载自blog.csdn.net/qq_15807761/article/details/86549570