【问题标题】:React Native or Xcode: unable to find utility "instruments", not a developer tool or in PATHReact Native 或 Xcode:无法找到实用程序“工具”,而不是开发人员工具或 PATH
【发布时间】:2021-08-23 17:13:45
【问题描述】:
xcrun: error: sh -c '/Applications/Xcode-beta.app/Contents/Developer/usr/bin/xcodebuild -sdk /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -find instruments 2> /dev/null' failed with exit code 17664: (null) (errno=No such file or directory)
xcrun: error: unable to find utility "instruments", not a developer tool or in PATH

发布这个是因为我在蒙特雷 Beta 的 M1 上花了一些时间把头撞到墙上……不过我找到了解决方法

【问题讨论】:

    标签: xcode react-native command-line


    【解决方案1】:
    sudo xcode-select -r
    

    我不得不运行 reset command line tools 命令,这是我搞砸的一个简单的解决方案。

    【讨论】:

      【解决方案2】:

      在运行react-native run ios 时,我遇到了与 react-native 类似的问题。

      我刚刚在应用程序目录中重命名了我的 Xcode 应用程序:

      Xcode-13.1.0.app --> Xcode.app

      【讨论】:

        猜你喜欢
        • 2014-07-13
        • 2019-05-09
        • 2020-08-13
        • 1970-01-01
        • 2014-04-18
        • 1970-01-01
        • 2017-08-21
        • 2020-06-07
        • 1970-01-01
        相关资源
        最近更新 更多