yonaskolb / XcodeGen

A Swift command line tool for generating your Xcode project
MIT License
7.01k stars 818 forks source link

Add support for visionOS #1379

Closed shiba1014 closed 1 year ago

shiba1014 commented 1 year ago

This PR adds a support for visionOS. Resolves #1369.

You can create visionOS project by following yml:

name: MyProject
targets:
  MyApp:
    type: application
    platform: visionOS
    deploymentTarget: "1.0"
    sources: [MyApp]
    settings:
      base:
        PRODUCT_BUNDLE_IDENTIFIER: "$(APP_IDENTIFIER).VisionApp"
freddi-kit commented 1 year ago

Please update https://github.com/yonaskolb/XcodeGen/blob/master/CHANGELOG.md

Dahlgren commented 1 year ago

The SettingsPresets for visionOS are missing which is causing this warning to be printed: No "visionOS" settings found

There needs to be a visionOS.yml in SettingPresets/Platforms or the the Xcode target will fallback to macOS SDK

SDKROOT: xros
TARGETED_DEVICE_FAMILY: 7

https://github.com/yonaskolb/XcodeGen/tree/master/SettingPresets/Platforms

Likely application_visionOS.yml will also be required in SettingPresets/Product_Platform with icon settings https://github.com/yonaskolb/XcodeGen/tree/master/SettingPresets/Product_Platform

shiba1014 commented 1 year ago

@Dahlgren Thank you, I fixed it: 24ae6c6