Skip to content

Play your own Switch games on iPhone/iPad — one-click macOS app, no terminal. | 把 Switch 游戏装进 iPhone:图形界面一键构建,不用命令行。Bring your own game.

1.8 KB
Raw Blame
name: ShellDemo
options:
  bundleIdPrefix: dev.shellui
  deploymentTarget:
    iOS: '26.0'
packages:
  ShellUI:
    path: ..
settings:
  base:
    SWIFT_VERSION: '6.0'
    CODE_SIGNING_ALLOWED: NO
    GENERATE_INFOPLIST_FILE: YES
    TARGETED_DEVICE_FAMILY: '1,2'
    SUPPORTS_MACCATALYST: NO
    INFOPLIST_KEY_UILaunchScreen_Generation: YES
    INFOPLIST_KEY_UIApplicationSceneManifest_Generation: YES
    INFOPLIST_KEY_UISupportedInterfaceOrientations: 'UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight UIInterfaceOrientationPortraitUpsideDown'
    INFOPLIST_KEY_UIUserInterfaceStyle: Dark
    INFOPLIST_KEY_CFBundleDisplayName: Shell Demo
    ASSETCATALOG_COMPILER_APPICON_NAME: AppIcon
    SWIFT_EMIT_LOC_STRINGS: YES
targets:
  ShellDemoApp:
    type: application
    platform: iOS
    sources:
      - ../Sources/ShellDemo
      # The fixture bundles for --host, copied into the app as its Games folder. No game data, no pictures.
      - path: ../Tests/ShellHostTests/Fixtures/Games
        type: folder
        buildPhase: resources
      - path: ../AppIcon.icon   # the app icon, shared with the shell app (dm/ios/project-shell.yml)
    info:
      path: Gen/Info.plist
      properties:
        CFBundleLocalizations: [en, de, fr, it, sv, zh-Hans]   # every file of frontend/l10n (tools/l10n_shell_catalogs.py), so iOS offers them to the package bundles
    dependencies:
      - package: ShellUI
        product: ShellUI
      - package: ShellUI
        product: ShellControllers
      - package: ShellUI
        product: ShellHost
  ShellDemoUITests:
    type: bundle.ui-testing
    platform: iOS
    sources:
      - ../UITests
    dependencies:
      - target: ShellDemoApp
schemes:
  ShellDemo:
    build:
      targets:
        ShellDemoApp: all
    test:
      targets:
        - ShellDemoUITests