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?

React Nativeでasdfを使った環境でのiOSのビルドエラーになる問題の対処法

Posted at

こんにちは。virapture株式会社でCEOしながらラグナロク株式会社でもCKOとして働いている@mogmetです。

本日はReact Nativeで発生したトラブルシュート記事です。

問題

Xcodeを開いてビルドすると、hermes-engine.buildのビルドで下記のようなエラーが出ました。

Node found at: /Users/mogmet/.asdf/shims/node
/Users/mogmet/.asdf/shims/node: line 9: exec: asdf: not found
Command PhaseScriptExecution failed with a nonzero exit code

Node found at: /Users/mogmet/.asdf/shims/node

/Users/mogmet/.asdf/shims/node: line 9: exec: asdf: not found

Command PhaseScriptExecution failed with a nonzero exit code


asdfなんぞしらんと言われてしまいました。

解決法

ピュアなシェルでビルドを実行しているようなので、下記コマンドでasdfを認識させることで解決しました。

$ sudo ln -s /opt/homebrew/bin/asdf /usr/local/bin/asdf

まとめ

asdfを認識しないときは無理やりPATHを通すことで解決!

最後に、viraptureでは、チームビルディングや技術顧問、Firebaseの設計やアドバイスといったお話を受け付けてますので御用の方は弊社までお問い合わせください。

お手軽に設計相談などしたいなら下記からでも可能です。

ラグナロクでもエンジニアやデザイナーのメンバーを募集しています!!楽しくぶち上げたい人はぜひお話ししましょう!!

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?