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のエラー「null is not an object ( evaluating 'NativeUnimoduleProxy.viewMnagersNames')」の対処(iOSのみ)

Posted at

ReactNativeでtensorflowを動かそうとした時のエラー対処のメモ

ReactNativeでクラス分類のアプリを作りたかったので、tensorflowをここのREADME通りにnpmインストールをして、簡単にtensorflowを起動しようとしたが、
null is not an object ( evaluating 'NativeUnimoduleProxy.viewMnagersNames')
上記のエラーが発生したので、解決方法をメモしようと思う。iOSのみです。

解決方法

react-native-unimodulesのnode moduleに関するエラーで、解決方法はREADMEのConfigure iOSに書いてある通りに直せば、解決しました。

  1. pod fileの修正
  2. 再 pod install
  3. AppDelegate.h と AppDelegate.mの修正

1はreact-nativeのバージョンが0.60以上ならここreact-nativeのバージョンが0.59以下ならここを参考に修正してください。
2は再インストールしてください。
3はxcodeで2つのファイルを参考にして修正してください。
それぞれの2つのファイルをコピペして変更すれば、動くようになると思います。AppDelegate.m__YOUR_APP_NAME_HERE__部分には自分のアプリ名を忘れずに入力する必要があります。

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?