# iOS Setup Instructions
## For macOS Users (Full Setup)
### 1. Run the Setup Script
```bash
./scripts/setup-ios.sh
```
This will:
- Install iOS targets
- Build the Rust library
- Generate Swift bindings
- Create XCFramework
- Set up Xcode project
### 2. Open in Xcode
```bash
cd ios-example
open ProofModeExample.xcodeproj
```
### 3. Configure and Run
- Select your development team
- Update bundle identifier if needed
- Build and run (⌘+R)
## For Non-macOS Users (Preparation Only)
### 1. Run Setup Script
```bash
./scripts/setup-ios.sh
```
This will create mock bindings and prepare project structure.
### 2. Review Generated Files
- Check `ios-example/` for complete Xcode project
- Review `bindings/ios/ProofMode.swift` for API structure
- Read `ios-example/README.md` for detailed instructions
### 3. When You Have Access to macOS
- Transfer the entire project directory
- Run `./scripts/setup-ios.sh` again on macOS
- Follow the Xcode setup instructions
## Next Steps
1. **Review the Code**: Examine the example app structure
2. **Understand the API**: Look at the generated Swift bindings
3. **Plan Integration**: Decide how to integrate ProofMode into your app
4. **Test Thoroughly**: Use both simulator and device testing
The iOS example app provides a complete working implementation that you can use as a reference or starting point for your own iOS integration.