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.

Xcode10.1 にしたら react-native のビルドがエラーになった

Posted at

10.0 にした時もなんかあったよねぇ。

エラーメッセージ

error: /Users/UserName/Projects/ProjectName/ios/build/Build/Products/Debug-appletvsimulator/libReact.a: No such file or directory


** BUILD FAILED **

TL;DR

直す

以下のコマンドを叩く

mkdir /Users/UserName/Projects/ProjectName/ios/build/Build/Products/Debug-appletvsimulator/
cp /Users/UserName/Projects/ProjectName/ios/build/Build/Products/Debug-iphonesimulator/libReact.a /Users/UserName/Projects/ProjectName/ios/build/Build/Products/Debug-appletvsimulator/

備考

/Users/UserName/Projects/ProjectName は ReactNative のソースを置いてあるところなので、自分の環境に合わせて適宜置き換えること。
どこに置いてあるかわからないなら pwd というコマンドを実行するとカレントディレクトリがわかります。

なんで?

よくわからないけど、ビルドに使うディレクトリが変わったっぽい?
ないと言われるディレクトリ: Debug-appletvsimulator
ビルド中にできてるディレクトリ: Debug-iphonesimulator

環境など

  • node: 10.11.0
  • react-native: 0.57.8
  • react: 16.6.3
  • Xcode: 10.1/10B61

react-native info

 React Native Environment Info:
    System:
      OS: macOS High Sierra 10.13.6
      CPU: (4) x64 Intel(R) Core(TM) M-5Y51 CPU @ 1.10GHz
      Memory: 75.34 MB / 8.00 GB
      Shell: 5.6.2 - /usr/local/bin/zsh
    Binaries:
      Node: 10.11.0 - ~/.ndenv/versions/v10.11.0/bin/node
      Yarn: 1.5.1 - /usr/local/bin/yarn
      npm: 6.4.1 - ~/.ndenv/versions/v10.11.0/bin/npm
      Watchman: 4.9.0 - /usr/local/bin/watchman
    SDKs:
      iOS SDK:
        Platforms: iOS 12.1, macOS 10.14, tvOS 12.1, watchOS 5.1
      Android SDK:
        API Levels: 23, 25, 26, 27, 28
        Build Tools: 23.0.1, 25.0.2, 25.0.3, 26.0.1, 26.0.2, 27.0.3, 28.0.3
        System Images: android-26 | Google APIs Intel x86 Atom_64, android-26 | Google Play Intel x86 Atom
    IDEs:
      Android Studio: 3.1 AI-173.4670197
      Xcode: 10.1/10B61 - /usr/bin/xcodebuild
    npmPackages:
      react: 16.6.3 => 16.6.3 
      react-native: 0.57.8 => 0.57.8 
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?