Overview
Tareas uses Capacitor to package the web application as a native iOS app. This guide covers building and deploying to iOS devices, simulators, and the App Store.Prerequisites
Required Software
- macOS 12.0 or later
- Xcode 14.0 or later (latest stable version recommended)
- Node.js 18+ and npm 9+
- CocoaPods - Dependency manager for iOS
- Apple Developer Account (for physical device testing and App Store deployment)
Install Xcode
Download Xcode
Install Xcode from the Mac App Store:
- Open the App Store app
- Search for “Xcode”
- Click Install
Install CocoaPods
CocoaPods manages iOS dependencies:Initial Capacitor Setup
Add iOS platform
Add the iOS platform to your Capacitor project:This creates an
ios/ directory with the native iOS project.Building for iOS
Development Build
Configure signing
In Xcode:
- Select the App target in the project navigator
- Go to Signing & Capabilities tab
- Select your Team (Apple Developer account)
- Xcode will automatically manage signing certificates
Alternative: Using Ionic CLI
Running on Simulator
Using Xcode
Select simulator
In Xcode, click the device dropdown and select a simulator:
- iPhone 15 Pro
- iPhone 15
- iPad Pro (12.9-inch)
- etc.
Using Command Line
List available simulators:Running on Physical Device
Trust your computer
On your iOS device:
- A prompt will appear asking to “Trust This Computer?”
- Tap Trust and enter your device passcode
Configure signing
In Xcode:
- Select the App target
- Go to Signing & Capabilities
- Check Automatically manage signing
- Select your Team
Build and run
Click Run (▶️) or press Cmd + R.Xcode will:
- Build the app
- Install it on your device
- Launch the app automatically
Complete Workflow
Typical development workflow:Troubleshooting
CocoaPods Installation Issues
If CocoaPods fails to install or update:Signing Errors
Device Not Recognized
If your device doesn’t appear in Xcode:- Unlock your device
- Disconnect and reconnect the USB cable
- Trust the computer again if prompted
- Restart Xcode
- Check cable (try a different USB port or cable)
Build Fails After Dependency Updates
Clean and rebuild:Simulator Not Launching
Reset the simulator:App Crashes on Launch
View logs in Xcode:- Open Window > Devices and Simulators
- Select your device
- View console logs in the lower panel
- Open Console.app on macOS
- Filter by your app name or “Capacitor”
App Store Deployment
Prepare for Release
Update app configuration
In Xcode, update:
- Version (e.g., 1.0.0)
- Build number (increment for each submission)
- App Icons (all required sizes)
- Launch Screen
Create App Store Connect record
- Go to App Store Connect
- Click My Apps > +
- Create a new app
- Fill in app information
Archive the app
In Xcode:
- Select Any iOS Device (arm64) as the destination
- Go to Product > Archive
- Wait for the archive to complete
Upload to App Store Connect
When the archive finishes:
- The Organizer window opens automatically
- Select your archive
- Click Distribute App
- Choose App Store Connect
- Follow the wizard to upload
Apple’s review process typically takes 24-48 hours. Ensure your app complies with the App Store Review Guidelines.
TestFlight Beta Testing
Before public release, test with TestFlight:- After uploading to App Store Connect, the build appears in TestFlight
- Add internal testers (up to 100)
- Add external testers (requires beta app review)
- Testers receive an invitation email
- They install via the TestFlight app
Configuration Files
Update Bundle Identifier
Incapacitor.config.json:
Update App Icons
Place app icons in:Update Launch Screen
Edit the storyboard:Live Reload on Device
For faster development, use live reload:Next Steps
Android Deployment
Build and deploy to Android devices
Web Build
Deploy as a web application