bagsy/docs/iOS_SIDELOADING_GUIDE.md

4.9 KiB

iOS Sideloading Guide for Bagsy

Overview

You have 3 methods to distribute your app to family without paying for a developer account:

  1. TestFlight (Easiest) - Free, no Mac needed, automatic updates
  2. Ad-hoc Distribution - Slightly complex, no automatic updates
  3. Building with Xcode - Requires Mac, full control

Pros

  • ✅ Up to 100 external testers
  • ✅ Automatic app updates
  • ✅ Easy invite via link or email
  • ✅ Free (just need Apple ID)
  • ✅ No development account required
  • ✅ Works on any iOS device

Cons

  • ❌ Requires Apple ID (not paid account)
  • ❌ 30-day expiration per build (easy to refresh)

Steps

  1. Create Free Apple ID (if you don't have one)

    • Visit appleid.apple.com
    • Create account with your email
    • Done!
  2. Build IPA File

    cd apps/mobile
    bun run build:ios
    
    • Generates .ipa file
  3. Get to App Store Connect

    • Go to appstoreconnect.apple.com
    • Sign in with Apple ID
    • Click "My Apps"
    • Click "+" → "New App"
    • Fill in:
      • Platform: iOS
      • Name: Bagsy
      • Primary Language: English
      • Bundle ID: com.shoplist.app (you choose this)
      • SKU: shoplist-001
    • Click "Create"
  4. Upload Build to TestFlight

    • In your app page, click "TestFlight"
    • Click "iOS Builds"
    • Click "+" to add a build
    • Select your .ipa file or use Xcode to upload
    • Wait ~5-10 minutes for Apple to process
  5. Invite Testers

    • In TestFlight tab, click "Create a Group" or use default
    • Click "+ Add Testers"
    • Enter family members' email addresses
    • Send invites
    • They'll get an email with link to install
  6. Family Members Install

    • Click link from invite email
    • Opens App Store → Shows "Open" button (not download)
    • Click "Open" → redirects to TestFlight app
    • Tap "Install"
    • Done!

Update App (When You Change Code)

# Make changes
bun run build:ios
# Upload new IPA to TestFlight
# Testers get automatic notification to update

Method 2: Ad-hoc Distribution (Manual but Works)

Pros

  • ✅ No TestFlight, direct installation
  • ✅ Full control over who gets it
  • ✅ Works offline

Cons

  • ❌ Manual device registration (UDID)
  • ❌ Manual .ipa distribution
  • ❌ No automatic updates
  • ❌ Max 100 devices per year
  • ❌ Requires provisioning profiles

Steps

  1. Get Family Member UDIDs (Device IDs)

    • On each iPhone: Settings → General → About
    • Scroll to "UDID" or use Apple Configurator 2
    • Send you the 40-character code
  2. Register Devices

    • Go to developer.apple.com
    • Click "Account"
    • Select "Devices"
    • Add each UDID
    • Wait ~10 minutes
  3. Create Ad-hoc Provisioning Profile

    • In Account, select "Provisioning Profiles"
    • Click "+" → "Ad Hoc"
    • Select your app Bundle ID
    • Select registered devices
    • Generate profile
    • Download .mobileprovision file
  4. Build and Sign IPA

    cd apps/mobile
    # Export with provisioning profile
    bun run build:ios --provisioning-profile=/path/to/profile
    
  5. Distribute IPA File

    • Email the .ipa file to family
    • They drag-drop into Finder (Mac) or iTunes (PC)
    • Or use Diawi.com to generate install link

Update Process

  • Repeat build and send new .ipa file

Method 3: Xcode Build & Run (Need Mac)

Pros

  • ✅ Direct to device debugging
  • ✅ Most control

Cons

  • ❌ Requires Mac
  • ❌ Manual for each device
  • ❌ Only you or developers can do this

Steps (for your own development)

cd apps/mobile
bun run ios --device
# Connect iPhone via USB
# Xcode will build, sign, and install directly

My Recommendation for Your Family

Use TestFlight because:

  1. Easiest for family to install (just click a link)
  2. Automatic updates when you deploy new versions
  3. Free and doesn't require paid account
  4. No complicated UDID collection
  5. Built into iOS (TestFlight app)

Troubleshooting

"Build Expired" on TestFlight

  • TestFlight builds expire after 30 days
  • Just upload a new build (even if code unchanged)
  • Free to re-upload

"Requires newer iOS version"

  • Your app targets iOS 14+
  • Family members need iOS 14 or later
  • Check their Settings → General → Software Update

"Cannot Install - Not Trusted"

  • For ad-hoc: Settings → General → VPN & Device Management
  • Select profile → Tap "Trust"

Testers Don't Get Update Notification

  • Builds must be incremented (version 1.0 → 1.1)
  • Update CFBundleVersion in app.json

One-Time Setup Checklist

  • Create Apple ID (free)
  • Go to appstoreconnect.apple.com
  • Create app in App Store Connect
  • Build IPA: bun run build:ios
  • Upload to TestFlight
  • Invite family via email
  • They install via TestFlight app

Then every update is just: build → upload → they get notified automatically! 🎉