まず結論から
違うエラーの記事ですが、Qiitaのこの記事の直し方の手順で直るのではないかと思います。
詳細
正しいエラーメッセージ
エラーメッセージが省略されているようですが、output: の続きがあるかと思います。以下のような感じでしたでしょうか。
error: terminated(72): xcrun --sdk macosx --find xctest output:
xcrun: error: unable to find utility "xctest", not a developer tool or in PATH
この場合、ターミナルでxcodeを正しく実行するための設定ができていない状況と思われます。
どういうことか
xcodeはアプリなので、違うバージョンを複数入れることができます。ターミナルから実行するときに、どのxcodeを使うかを指定することができるようになっていますが、xcodeが一つしかなくても指定する必要があります。
これが正しくされていない状態です。
それをxcodeから行うのが、上記で紹介した記事の操作です。
xcode-selectの説明
xcode-selectは、紹介した設定を、ターミナルから行うためのコマンドです。
xcode-selectのヘルプをみると、私の環境では以下のように表示されました。
$ xcode-select --help
Usage: xcode-select [options]
Print or change the path to the active developer directory. This directory
controls which tools are used for the Xcode command line tools (for example,
xcodebuild) as well as the BSD development commands (such as cc and make).
Options:
-h, --help print this help message and exit
-p, --print-path print the path of the active developer directory
-s <path>, --switch <path> set the path for the active developer directory
--install open a dialog for installation of the command line developer tools
-v, --version print the xcode-select version
-r, --reset reset to the default command line tools path
-s オプションは開発ディレクトリを指定するコマンドとあります。どのXcodeを使うかを指定します。
sudo xcode-select -s /Applications/Xcode.app/Contents/Developer
は、/Applications/Xcode.app を使うように指定しています。(Contents/Developerはアプリバンドルの中のパスです。この部分も必要です)
xcode-select -p
とすると、現在の設定が表示されます。
これを行うと、Dandelion-mmさんの環境で発生している問題がこのせいかどうかを、確認できると思います。
(表示だけで設定を変えないので、実行しても安全です。)
sudo xcode-select --reset
もうひとつ、 --reset (-rでも同じ)も使えるようです。
ターミナルで修正するなら、まずこちらをやってみるのが良いかなと思います。
同じことをXcodeから実行するのが最初に紹介した方法です。GUIで選ぶだけなので簡単かと思います。
開発への影響
普段の開発に影響がないかというと、Xcodeからビルドをする作業は大丈夫だと思います。
コマンドラインの実行環境は、この設定の影響をうけますが、今、使えないのが使えるようになるという影響の筈なので、心配ないのではないかと思います。
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。