Grader Labs
← All samples

Configure a new iOS app in Xcode

DevelopmentmacOS3m187 stepsXcode

Configured a fresh SwiftUI iOS app end to end in Xcode — created the project, set the iOS 17.6 deployment target, added the App Groups capability and a camera-usage privacy string, defined a BrandBlue sRGB color set in the asset catalog, and added an API_URL environment variable to the run scheme.

current trajectory frame

Current operation

Task

Configure a new iOS app in Xcode

Create and configure a new iOS application project. Do everything through the Xcode GUI.

  1. Create a new project: iOS ▸ App, Product Name Demo, Organization Identifier com.graderlabs, Interface SwiftUI, Language Swift. Save it at ~/Desktop/xcode/Demo.
  2. Set the app target's iOS deployment target to 17.6 (target ▸ General ▸ Minimum Deployments).
  3. Add the App Groups capability to the app target (target ▸ Signing & Capabilities ▸ + Capability).
  4. In the target's Info settings, add Privacy - Camera Usage Description with the value Demo uses the camera to scan documents.
  5. In the asset catalog, add a Color Set named BrandBlue with sRGB components R 0 / G 102 / B 255.
  6. Edit the scheme (Product ▸ Scheme ▸ Edit Scheme ▸ Run ▸ Arguments) and add an environment variable API_URL = https://staging.graderlabs.com.
  7. Save (⌘S).

How it's graded

The recorded output is auto-graded against these criteria.