react-native入門できなかった
インストールまではいいんだけどどうしてもreact-native runがうまくいかない
本に書いてあったとおりにinitして、runこんな感じでやっていった
$ react-native init --version="0.54.2" NewProject $ cd NewProject $react-native run-ios
エラーしちゃう
Installing build/Build/Products/Debug-iphonesimulator/NewProject.app An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=22): Failed to install the requested application The bundle identifier of the application could not be determined. Ensure that the application's Info.plist contains a value for CFBundleIdentifier. Print: Entry, ":CFBundleIdentifier", Does Not Exist Command failed: /usr/libexec/PlistBuddy -c Print:CFBundleIdentifier build/Build/Products/Debug-iphonesimulator/NewProject.app/Info.plist Print: Entry, ":CFBundleIdentifier", Does Not Exist
- React Nativeでrun-iosした時にPrint: Entry, ":CFBundleIdentifier", Does Not Existになってしまう問題 - パパエンジニアのアウトプット帳
- Latest react-native app doesn't work ":CFBundleIdentifier", Does Not Exist · Issue #7308 · facebook/react-native · GitHub
- 新規React-nativeプロジェクトのビルドが失敗した時の対処法 - Qiita
だいたい試してみたけどダメだった。xcodeちょっと古いからかなーって思うけどそもそもMacOSがまだMojaveでないので最新のxcodeインストールできなかったと気づいて、ここで心折れた。。
それ以前にiosシミュレーター起動しなくてこれらも対処してた。
- React Native開発環境をセットアップした話とか - kdnakt blog
- javascript - Error Running React Native App From Terminal (iOS) - Stack Overflow
- XCode 9.1 にアップグレードしてから React Native で iOS のシミュレータが起動しなくなった - Qiita
というかやっぱもうMacが限界なんだよなあ古すぎて。買いたいけどお金ないし困る・・