0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

Carthageでxcrun: error: unable to find utility "xcodebuild", not a developer tool or in PATH解決

Last updated at Posted at 2023-03-18

始めに

自分のメモ、備忘録です。
Carthageでプロジェクトにライブラリを導入する時に詰まったのでメモ。

xcrun: error: unable to find utility "xcodebuild", not a developer tool or in PATH

というエラーがターミナルででました。

解決方法

XcodeのPreferencesを開きLocationsを選択、Command Line Tools:から使用するXcodeのバージョンを選択してやり直したらエラー解消しました。
スクリーンショット 2023-03-18 0.24.55.png
ここをいじったことなかったので「Command Line Tools:」のとこが空白でした、Xcodeのバージョンを選択しました。
スクリーンショット 2023-03-18 0.23.49.png

終わりに

Carthageでのライブラリ導入方法はこの記事の情報が新しくとても参考になりました!!
https://qiita.com/KaitoMuraoka/items/4904f67c58d93c677667
Xcode12以降からはcarthage update --platform iOSでなく

carthage update --use-xcframeworks

実行で.xcframeworkを作成し
GeneralからFrameworks, Libraries, and Embedded Contentセクションに、.xcframeworkを追加するだけになってます。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?