Build notes

What it takes to make a camera roll useful to an app

A production feature has to keep up with a library that changes every day, run inside iOS's background limits and answer questions across years of photos. What that takes to build, and what the Rollup SDK does.

By Rollup

Analyzing one photo on an iPhone is a solved problem. Apple’s frameworks will classify it, read the text in it, find the faces and give you a feature print to compare it with another, all on the device, in a few lines. The hard part of a camera roll feature is everything around that one call: a library that changes every day, background time the system rations, a first pass over thousands of images that has to survive a force quit, retrieval that understands “ramen in Tokyo last spring”, answers that come with their evidence, and a privacy surface you have to disclose correctly. That is the work, and this piece lays it out so you can size it for your app.

The short version: if you need one signal from recent photos, build it yourself on Apple’s frameworks. If you need context across years of a library, with questions answered and fields filled with evidence, the scope is a product in itself, and that is what the Rollup SDK is. The sections below say where the line falls and what each side costs.

One photo is easy

Apple gives an iOS app good building blocks, and it is worth being precise about them. PhotoKit is the library: fetch assets by date and type, observe changes, load an image at the size you need, and respect the limited access mode in which the person has picked specific photos. Vision analyzes an image: classification, text recognition, face detection, and feature prints for similarity. On iPhones with Apple Intelligence, Apple’s on-device model can read entities out of a screenshot. BackgroundTasks lets work continue after the person leaves the app, within limits the system sets. The App Store’s privacy manifest and App Privacy details describe what you move and why.

With those, a weekend of work gets you a loop that walks the last few hundred photos and labels each one. For some features that is the whole job: whether the person has a pet, how often they photograph food, whether there are recent screenshots of a competitor. If that is your feature, stop reading and build it.

A library is a different problem

The feature changes character when the question is about the person rather than about a photo. “What does this person do on weekends?” needs the whole library, kept current, and a way to answer across it. Here is the shape of that, as the SDK does it, with what leaves the phone at each stage.

On the iPhone

01

The library

  • Changes every day, in both directions
  • Full or limited Photos access
  • Hidden photos are never indexed

Leaves the phoneNothing

02

The index

  • First run: about 165 MB of models, newest photos first
  • Continues off screen under iOS's rules
  • Adds new photos as they arrive, in the foreground and in background runs
  • A growing or sliding time window

Leaves the phoneNothing from the photos. A key check, run reports without photo content, and 1 km map cells when places are on

03

Retrieval

  • search reads dates, media and places from the query
  • Matches what photos show and the text in them
  • Runs on the device, with no network

Leaves the phoneNothing

04

Answers

  • query answers a question about the person's life
  • profile fills a JSON Schema, every field with the photos behind it
  • An agent on Rollup's server calls tools that run on the iPhone
  • Sensitive subjects refused, sensitive photos left out

Leaves the phoneThe question or schema, and the text the tools return: dates, places, labels, text read from images. Rollup stores none of it

Your app

Identifiers, fields and answers. Photos are loaded with PhotoKit, on the device, when you want to show one.

DiagramThe stages between a camera roll and an app, as the Rollup SDK runs them (0.3.3). The stage is the iPhone; the app sits outside it. The privacy guide has the full account of what leaves the phone.

Each stage hides a few months of engineering that a one-photo prototype never meets.

Access has modes

A person can grant full access, limited access to photos they pick, or nothing. Limited access changes over time as they add photos to the selection. Access can be revoked in Settings while your app is not running. Hidden photos should never be read. A production feature handles every one of those transitions, and deletes what it built when access goes away. The SDK indexes whatever the person allowed and deletes the index the next time the app runs after access is revoked.

The first pass is a long-running job on a phone

A library of a few thousand photos is a few thousand image loads and model passes, with iCloud originals that may not be on the device, under a memory ceiling that ends your process without warning. The order matters: newest first means the feature is useful before the job is done. Checkpoints matter: a force quit at photo 1,800 should cost you nothing. Models have to get onto the device: the SDK downloads about 165 MB on first run, and you would face the same choice between shipping models in the binary and downloading them. The SDK indexes newest photos first, answers searches as soon as the first slice is in, and picks up an interrupted run in the background the next time the app opens.

Background time is rationed

iOS gives you two kinds of background time. A processing task runs when the system decides, often hours later. From iOS 26, a continued processing task can carry on work the person started after they leave the app, with a system progress UI, and the system can end it, ask the person whether to continue, or stop it when the camera opens. Background work also runs several times slower than foreground work. The SDK uses both kinds: the first index continues as a continued processing task under the title you set, updates run as a processing task, and the indexing state tells you why a run stopped so your app can say “open the app to finish”.

Keeping current is the feature

A library gains photos every day and loses some. A time window has to be defined: does the index grow from the first run, or slide? What happens at a photo cap? A change in options should not mean a full rebuild. The SDK adds new photos while your app runs and in background runs, offers a growing or sliding window, and rebuilds only when you turn places, events or people on or off.

Retrieval is a query language

“Videos from the concert last Friday” is a date, a media type and a visual concept. “Ramen in Tokyo last spring” is a season, a city and a cuisine, which means venues, which means place data the phone does not have. A production search parses those parts, matches the rest against what photos show and say, groups duplicates, and explains why a result matched. The SDK’s search does this on the device with no network, and each result carries its labels, text, places and the reasons it matched.

Answers need evidence and refusals

Filling “favorite cuisine” for a person is a model task over the index, and a model that answers without evidence is a liability in a consumer app. It needs tools to read the index, a way to point each answer at the photos behind it, and rules about what it will never infer. The SDK’s query and profile run an agent on Rollup’s server whose tools run on the iPhone against the person’s index. Only the tools’ text results leave the phone. Each filled field comes with the PhotoKit identifiers behind it, fields about health, religion, sexuality, ethnicity or race, politics or children are refused, and photos of IDs, health documents and nudity are left out of answers.

Disclosure is part of the build

Anything you move off the phone has to appear in your App Privacy details, and App Review guideline 5.1.2(i) requires a clear disclosure and explicit permission before personal data is shared with a third party, including a third-party AI. An SDK you ship also needs its privacy manifest. The SDK ships its own manifest, and the docs list what to declare for each data type. The disclosure before the first query or profile is still yours to show.

The scope, side by side

The table is deliberately fair to the custom build. Apple’s frameworks can support every row; the middle column is what you would write on top of them.

What each concern takes to build on Apple's frameworks, and what the Rollup SDK does
ConcernApple’s frameworks give youWhat you build on themRollup SDK 0.3.3
AccessPhotoKit authorization, full or limitedBoth modes, a selection that changes, revocation while the app is closedIndexes what was allowed. Deletes the index after access is revoked
First passPer-image requestsA queue over thousands of images, newest first, memory limits, checkpoints, resume after a kill, model deliveryNewest first, searchable as it goes, resumes after a force quit. About 165 MB of models on first run
Background timeBGProcessingTask; BGContinuedProcessingTask on iOS 26Scheduling, chunking, progress UI, every way iOS ends a runThe first index continues off screen with system progress UI; updates in a processing task; the state says why a run stopped
Keeping currentChange observationDiffing inserts and deletions, a window policy, a cap, rebuild rulesAdds new photos in the foreground and in background runs. Growing or sliding windows, maxPhotos
PlacesCoordinates on each asset; reverse geocoding to an addressVisits, venue resolution, cuisines, a place data sourceVenues, cuisines, neighborhoods and cities per visit. Sends 1 km map cells to fetch place data; with places off, sends no location
ScreenshotsText recognition; entities with Apple IntelligenceEntity handling, and a filter for screenshots of IDs, payments, health and passwordsText read on the device, entities where Apple Intelligence is available, sensitive screenshots kept out of answers
RetrievalLabels and feature prints per imageAn index, query parsing for dates and places, ranking, duplicates, explanationsNatural-language search on the device: dates, media, places and text; results say why they matched; duplicates grouped
AnswersNothing across the libraryA model pipeline with tool access to the index, evidence per field, refusals, a serverquery and profile: an agent with on-device tools, evidence identifiers per field, sensitive fields refused
DisclosurePrivacy manifest format, App Privacy details, the Review guidelinesYour manifest and the copy for every data type you moveShips its manifest and lists what to declare. The 5.1.2(i) disclosure in your app is still yours

When to build it yourself

A focused custom build is the right call more often than an SDK vendor likes to admit. Build it when:

  • You need one signal from recent photos, and a Vision request over the last few hundred assets gives it to you.
  • Nothing needs to leave the phone and nothing needs a question answered. A fully on-device loop with no server is simpler to disclose and simpler to run.
  • You have to offer the feature itself on iPhones before iOS 26. The SDK runs on iOS 26 and later; your app can target iOS 16, but the feature appears only on 26.
  • You need the same feature on Android today. The SDK is iOS only.
  • Your team already runs a Vision pipeline and owns background scheduling, and the library in question is small or your own, such as an app’s own album.

Build it with your eyes open about the rows above. The access modes and the background rules are where prototypes go to die, and they are the rows that produce one-star reviews when they fail.

What the SDK costs you

Fairness cuts both ways. Choosing the SDK means accepting its constraints:

  • iPhone only, iOS 26 or later, and it does not run in the iOS Simulator. You test on a device.
  • An approved developer account and app, and the App Attest capability, which needs a paid Apple Developer Program membership.
  • About 165 MB of models downloaded on first run, over Wi-Fi only if you choose.
  • search works offline. query and profile need a network connection, take a few seconds to about 20 seconds, and send the question or schema and the text the index derived to Rollup and its model provider. Rollup stores none of it, and the model provider may keep a request for up to 30 days for abuse monitoring. Your app discloses this and gets permission before the first call.
  • Rate limits per device and per app, and a monthly token budget per app, with defaults in the limits guide.
  • Pricing based on usage and deployment size, by conversation while access is early.

How to run a fair evaluation

Whichever way you lean, the evaluation is the same, and it takes a day with a device.

  1. Use a phone with a large, real library, with the owner’s consent, and iCloud Photos on. Prototypes tested on a 200-photo test device pass everything.
  2. Time the first useful result and the full first pass, in the foreground and with the phone locked. Note what the system does when you open the camera.
  3. Grant limited access to a dozen photos, then add to the selection, then revoke access in Settings, and check what the index holds after each.
  4. Ask the three questions your feature actually needs, and check whether the answers point at photos you can show.
  5. Put the phone behind a proxy you control and read what leaves it at each stage. Compare it with the privacy policy, and write your App Privacy details from what you saw.

Sources

  1. Rollup docs: RequirementsiOS 26 or later on an iPhone, no Simulator, Xcode 27, a paid developer membership, supporting iOS 16 targets.
  2. Rollup docs: Background indexingThe first index, continued processing, background updates, what iOS controls, pausing.
  3. Rollup docs: Index optionsWindow, media types, places and the 1 km cells, events, people, maxPhotos, limited access, hidden photos.
  4. Rollup docs: SearchWhat a query can say, result fields, sensitive photos, duplicates.
  5. Rollup docs: Query and ProfileThe agent, on-device tools, evidence, refused fields, timing and limits.
  6. Rollup docs: Privacy and App ReviewWhat leaves the iPhone, the 5.1.2(i) disclosure, App Privacy details, the privacy manifest, deletion.
  7. Rollup docs: Limits and budgetsRate limits per device and app, the monthly token budget.
  8. Rollup docs: Changelog0.3.3, November 5, 2026.
  9. Rollup Privacy Policy, version 2.1The model provider’s 30-day abuse retention, effective October 24, 2026.
  10. Apple: PhotoKitFetching assets, change observation, loading images, limited library access.
  11. Apple: VisionImage classification, text recognition, face detection, feature prints.
  12. Apple: BackgroundTasksBGProcessingTask and BGContinuedProcessingTask.
  13. Apple: Privacy manifest files
  14. Apple: App Review Guidelines, 5.1.2
Read November 8, 2026.

Next step

Every public type and method, and the quickstart to run a first search on a device.