I've created the PrivacyInfo.xcprivacy file at:
/Users/jaidenhenley/Desktop/SwiftStudentChallenge/QuickStudy/QuickStudy/PrivacyInfo.xcprivacy
To add it to your Xcode project:
- Open
QuickStudy.xcodeprojin Xcode - In the Project Navigator (left sidebar), right-click on the
QuickStudyfolder (the one with your Swift files) - Select "Add Files to 'QuickStudy'..."
- Navigate to and select
PrivacyInfo.xcprivacy - Make sure "Copy items if needed" is checked
- Make sure "QuickStudy" target is checked
- Click "Add"
The file should now appear in your project and will be included in your app bundle.
You need to add the missing NSPhotoLibraryUsageDescription privacy key.
In Xcode:
- Select your project in the Project Navigator (top-level "QuickStudy")
- Select the "QuickStudy" target
- Go to the "Info" tab
- Look for "Custom iOS Target Properties" section
- Click the "+" button to add a new key
- Type:
NSPhotoLibraryUsageDescription(or select "Privacy - Photo Library Usage Description" from the dropdown) - For the value, enter: "We use your photos to create study flashcards from images."
Alternative method (Build Settings):
- Select your project → QuickStudy target
- Go to "Build Settings" tab
- Search for "photo"
- Find "Photo Library Usage Description" or search for
INFOPLIST_KEY_NSPhotoLibraryUsageDescription - Set value to: "We use your photos to create study flashcards from images."
Your PrivacyInfo.xcprivacy declares:
- Photos/Videos: Used for app functionality only (OCR processing)
- Not linked to user identity
- Not used for tracking
- File Timestamp API (C617.1): Used for accessing file modification dates when saving study sets
- UserDefaults API (CA92.1): Used for storing user preferences (demo mode, settings)
- No tracking: Your app doesn't track users
- No tracking domains: No third-party analytics or advertising
This manifest meets Apple's privacy requirements for iOS 17+.
After adding these:
- Build your project (⌘B)
- Check for any warnings related to privacy
- The Privacy Manifest will be automatically included in your app bundle
- You can verify in App Store Connect after upload
- Required by Apple (as of May 2024) for apps using camera/photos
- Prevents App Store rejection for missing privacy declarations
- Builds user trust by being transparent about data usage
- Required for TestFlight and App Store submission