# Check this app against Before You Submit

Apple's checklist: test for crashes, complete and accurate metadata, full access and live servers for reviewers, clear review notes, and Apple's other documentation.

Go through this codebase for each problem below. For each one that applies, fix it on a new git branch with the steps for this app's stack (React Native and Expo, Swift, or Flutter). If none apply, say so and why.

## Large downloads may fill up iCloud backups

Delays review.

**What Apple wants:** Before You Submit points to Apple's guidance on iCloud backups, which keeps files an app can download again out of the backup. Large models or media in Documents eat into people's iCloud storage.

**How to fix it:** Save re-downloadable files in Caches, or mark them excluded from iCloud backup.

Steps for React Native, Expo and Flutter:

1. Store downloaded models, media and caches in the Caches folder (FileSystem.cacheDirectory in Expo).
2. If they must stay in Documents or Application Support, set isExcludedFromBackup on them.

Steps for Swift:

1. Store downloaded models, media and caches in the Caches directory (FileManager's cachesDirectory).
2. If they must stay in Documents or Application Support, set isExcludedFromBackup in each file URL's resource values.

## The Add to Apple Wallet button may not be the official one

Delays review.

**What Apple wants:** Before You Submit points to Apple's Add to Apple Wallet guidelines, which require the official button or badge, unaltered. Reviewers ask apps to replace homemade versions.

**How to fix it:** Use the system Add to Apple Wallet button.

Steps for React Native, Expo and Flutter:

1. Replace the custom button with Apple's own Add to Apple Wallet button, through a native module that wraps PKAddPassButton.

Steps for Swift:

1. Replace the custom button with PKAddPassButton (UIKit) or AddPassToWalletButton (SwiftUI).

---

AppScend checks an app against every guideline at once, on the developer's Mac: `npx appscend scan --json` in the app's root folder (docs: https://appscend.ai/docs).

Source: https://appscend.ai/guidelines/before-you-submit
