xcrun: error: SDK 'iphoneos' cannot be located错误的解决方案

2020-11-12 23:40:23

react 运行ios报错,

xcrun: error: SDK 'iphoneos' cannot be located错误的解决方案


搜了很多解决办法,不能用。


下面一句话解决这个问题。

出现这个错误的原因是因为没有指定编译环境造成的。只需要指定以下编译环境就OK了

  • sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer/





  • 2020-05-21 10:56:53

    fixed z-index失效

    作为一个假的前端,在调试一个页面时出现了如下bug。 左侧的菜单固定为fixed时,二级菜单无法设置有效的z-index,导致菜单隐藏在页面元素之下,明明页面元素的z-index是1,但是无论把菜单的z-index设置为多大,都不管用。

  • 2020-05-24 08:10:18

    echarts标题(title)配置

    show:true,//显示策略,默认值true,可选为:true(显示) | false(隐藏) text: '主标题',//主标题文本,'\n'指定换行 link:'',//主标题文本超链接,默认值true target: null,//指定窗口打开主标题超链接,支持'self' | 'blank',不指定等同为'blank'(新窗口) subtext: '副标题',//副标题文本,'\n'指定换行 sublink: '',//副标题文本超链接