react native build failing ios code example

Example: react native run ios not building

follow these steps its working for me

The platform version in your PodFile 

should be more then 11.0


and another main poin create a new file in your ios folder with any name 

my file rt.swift


inside file
//
//  rt.swift
//  AwesomeProject
//
//  Created by Apple on 05/05/21.
//

import Foundation


=================================================================
after that remove pod folder and podfile.lock file  from ios folder then

RUN 

cd ios && pod install && cd .. && yarn ios