iOS Development Setup
Set up your development environment to build and run React Native applications on iOS devices and simulators.Prerequisites
Before you begin, ensure you have:- macOS computer (required for iOS development)
- Node.js (^20.19.4 || ^22.13.0 || ^24.3.0 || >= 25.0.0)
- Xcode 14 or newer
- CocoaPods or use built-in CocoaPods
- Command Line Tools for Xcode
Installing Xcode
Download Xcode
Install Xcode from the Mac App Store or Apple Developer Downloads.
Installing CocoaPods
CocoaPods manages iOS dependencies for React Native:Podfile Configuration
Yourios/Podfile defines the native dependencies:
React-Core Podspec
The main React Native pod is defined inReact-Core.podspec. Key configurations:
AppDelegate Setup
ImplementRCTAppDelegate in your AppDelegate:
Installing Dependencies
Running on iOS
Building for Physical Device
Configure signing
- Go to Signing & Capabilities
- Select your development team
- Xcode will automatically create a provisioning profile
Common iOS Issues
Pod Install Fails
Ifpod install fails, try:
Module Not Found
Clear the build folder:Metro Bundler Issues
Reset Metro cache:Xcode Build Settings
Key build settings for React Native projects:- Deployment Target: iOS 13.4 or higher
- Swift Language Version: Swift 5.0+
- C++ Language Dialect: C++20
- Bitcode: Disabled (required for React Native)
Framework Search Paths
Ensure your framework search paths include:Next Steps
- Learn about integrating React Native into existing apps
- Configure out-of-tree platforms
- Explore performance optimization