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/





  • 2021-04-25 09:53:18

    android debug速度特别慢有时候卡住

    一直提示定在 Starting LLDB server。可能的原因是 Android Studio编译速度太慢了,就会一直卡在Starting LLDB server。可以通过设置 Run/Debug Configurations ——> Debugger ——> Debug type 为 Java 跳过 C/C++的调试,起码实现对 Java 程序的调试

  • 2021-04-25 09:54:19

    sequelize 时区配置

    sequelize 默认情况下, 保存日期时会转换成 +00:00时区,