27
14

More than 5 years have passed since last update.

Xcode10アップデート後にreact-nativeのiOSビルドが通らなくなった人向けの記事

Last updated at Posted at 2018-09-20

xcode10アップデート後にreact-nativeのiOSビルドが通らなくなったので対処方法を記載

エラーパターン1: error: Build input file cannot be found: '/react-native/third-party'

スクリーンショット 2018-09-21 03.04.41.png

他にも、 'config.h' file not foundが表示されるパターンもあったが、同じ対処方法で解消できた

対処方法

$ cd node_modules/react-native/third-party/glog-0.3.4/
$ ../../scripts/ios-configure-glog.sh
$ cd ../../../../
$ react-native run-ios

これで上記のエラーは解消されるはず

エラーパターン2: error: Build input file cannot be found: '/libfishhook.a'

スクリーンショット 2018-09-21 03.15.56.png

対処方法

xcodeを開く

$ open ios/[プロジェクト名].xcodeproj

xcodeで以下を操作

  1. 画像の順番でクリックしていく
    スクリーンショット 2018-09-21 03.20.34.png

  2. libfishhook.aを選択して「-」をクリック
    スクリーンショット 2018-09-21 03.25.49.png

  3. 「+」をクリックして、libfishhook.aを選択してAddをクリックスクリーンショット 2018-09-21 03.26.57.png

  4. libfishhook.aが追加される
    スクリーンショット 2018-09-21 03.27.45.png

コマンドライン

$ react-native run-ios

スクリーンショット 2018-09-21 03.30.51.png

ビルドが通るようになった

27
14
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
27
14