美文网首页
Xcode10适配

Xcode10适配

作者: iOS_Ru | 来源:发表于2019-01-21 17:35 被阅读0次

    1.Xcode10报错 中不能包含info.plist问题
    解决方法:选择File ---> workspace settings --->build system 改成legacy Build System 即可。

    1. 报错library not found for -libstdc++.6.0.9
      解决 拷贝旧的xcode的libstdc++.6.0.9库到新的xcode同样路径下
      真机路径:
      /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
      替换完成后在模拟器iOS10.0以上运行会出现一个错误:libc++问题
      这里还需要拷贝旧Xcode中的/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/libstdc++.6.0.9.dylib并改名为libstdc++.6.dylib后粘贴到新Xcode同样的位置。(注意在/Profiles/Runtimes/iOS.simruntime这里时需要右键显示包内容)。

    参考 https://www.jianshu.com/p/2cc3ab5091cf

    相关文章

      网友评论

          本文标题:Xcode10适配

          本文链接:https://www.haomeiwen.com/subject/ymxhjqtx.html