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?

React NativeアプリをMacのios シミュレータで動かす

Last updated at Posted at 2024-08-21

Xcodeを起動

React Native CLIを使ってプロジェクトを作成

npm install -g @react-native-community/cli@latest
npx @react-native-community/cli init YourProjectName
cd YourProjectName

パッケージをインストール

YourProjectNameディレクトリ直下に空のyarn.lockファイルを作成し、パッケージをインストール

yarn

CocoaPodのインストール

cd ios
pod install #初回は時間がかかる

※npmやyarnでJavaScriptパッケージを追加する度に、cd ios && pod installでios用のパッケージもインストールする。

iosシミュレータでアプリを起動

npx react-native run-ios
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?