1react-native run-ios --device
2
3this is for connected devices
4
5
6react-native run-ios --simulator="simulator name"
7
8or
9
10react-native run-ios --simulator
11
1follow these steps its working for me
2
3The platform version in your PodFile
4
5should be more then 11.0
6
7
8and another main poin create a new file in your ios folder with any name
9
10my file rt.swift
11
12
13inside file
14//
15// rt.swift
16// AwesomeProject
17//
18// Created by Apple on 05/05/21.
19//
20
21import Foundation
22
23
24=================================================================
25after that remove pod folder and podfile.lock file from ios folder then
26
27RUN
28
29cd ios && pod install && cd .. && yarn ios
30
31