/

Quick Start - Monitor for iOS

Get ByteHide Monitor protecting your iOS application in under 5 minutes using cloud zero-config setup.


Prerequisites


Step 1: Install Monitor

Add to your Podfile:

Ruby
platform :ios, '12.0'

target 'YourApp' do
  use_frameworks!
  pod 'ByteHideMonitor', '~> 1.0.0'
end

Then run:

Bash
pod install

Using Swift Package Manager

  1. In Xcode, go to File > Add Package Dependencies...
  2. Enter URL: https://github.com/bytehide/bytehide-monitor
  3. Set version to 1.0.0 or later
  4. Add to your target

Step 2: Set Your Token

Configure the BYTEHIDE_TOKEN environment variable in your Xcode scheme:

  1. Edit Scheme > Run > Arguments > Environment Variables
  2. Add: BYTEHIDE_TOKEN = your-project-token

Step 3: Build and Run

Build your project in Xcode.

Bash
xcodebuild -workspace YourApp.xcworkspace -scheme YourApp -configuration Release

Auto-Initialization

Monitor for iOS auto-initializes using the Objective-C +load() method, which executes before main(). This means protection is active from the earliest point of your app's execution. No code changes required in cloud configuration mode.


What Happens at Runtime

  1. During build, the token is validated and configuration is embedded in the app bundle
  2. At runtime, Monitor auto-initializes before main() via +load()
  3. Validates the app signature and activates configured protections
  4. Syncs with the ByteHide dashboard for configuration updates

Next Steps

Previous
Introduction