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 5 years have passed since last update.

reactnativeダウングレードでビルド時にエラーになったときの対処

0
Posted at

問題

reactnativeが0.5で不具合があったので0.47にダウングレードした。
その後、ビルドが動かなくなってしまった。

以下エラーが出た。

ld: library not found for -lRCTBlob
clang: error: linker command failed with exit code 1 (use -v to see invocation)

どうも、ビルド時に<アプリ名>.xcodeproj/project.pbxprojの中身が書き換えられていて、
RCTBlobのライブラリを持ってくるように言っているようだ。

RCTBlobはreact-native0.50.2には入っているが、0.47では存在しないので、「ライブラリが見つからない」と言うエラーになった。

解決

projectt.pbxprojを0.47仕様に戻そうにも、そもそも最初のinit時から0.50.2で生成したものなので、戻せない。
仕方なくreact-native init --version "0.47.0" としてプロジェクトを作り直した。

もっと良い解決方法はないものか。。。

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?