iOS app with SwiftUI project structure

iOS app with SwiftUI project structure

Explorer

  • MyApp
  • MyAppApp.swift
  • ContentView.swift
  • Info.plistnew
  • MyApp.entitlementsnew
  • MyApp.xcodeproj
  • project.pbxproj
  • xcuserdata…, not committed
  • MyAppTests
  • MyAppTests.swift
  • OrdersModelTests.swiftnew
  • APIClientTests.swiftnew
  • MoneyFormattingTests.swiftnew
  • MyAppUITests
  • MyAppUITests.swift
  • MyAppUITestsLaunchTests.swift
  • scriptsnew
  • test.shnew
  • bootstrap.shnew
  • .gitignore
  • .swift-formatnew
  • .swiftlint.ymlnew
  • AGENTS.mdnew
  • CLAUDE.mdnew
  • MyApp.xctestplannew
  • Products.storekitnew
  • README.md
  1. # Install Xcode 27 from the Mac App Store (needs macOS 26.6 on Apple silicon)

    xcode-select --install && xcodebuild -version
  2. # Create the project: File > New > Project > iOS > App, Interface SwiftUI, Testing System Swift Testing with XCTest UI Tests

    open -a Xcode
  3. # Build and run the tests from the command line

    xcodebuild test -project MyApp.xcodeproj -scheme MyApp -destination 'platform=iOS Simulator,name=iPhone 17'
  4. # Format and lint with the swift-format that ships with Xcode

    swift format lint --recursive MyApp MyAppTests
  5. # Set up fastlane for releases

    bundle init && bundle add fastlane && bundle exec fastlane init