Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why Isn't watchOS a Supported Destination? #1441

Closed
VaslD opened this issue Jan 26, 2024 · 2 comments
Closed

Why Isn't watchOS a Supported Destination? #1441

VaslD opened this issue Jan 26, 2024 · 2 comments

Comments

@VaslD
Copy link

VaslD commented Jan 26, 2024

According to the Project Spec, valid platforms are:

  • iOS
  • tvOS
  • macOS
  • watchOS
  • visionOS

But valid supportedDestinations are:

  • iOS
  • tvOS
  • macOS
  • macCatalyst
  • visionOS

Which means the following project definition generates a multiplatform (Xcode 14+) ArgumentParser.framework available to all Apple platforms except watchOS:

targets:
  ArgumentParser:
    type: framework
    # platform: auto (implicit)
    supportedDestinations:
      - iOS
      - macOS
      - tvOS
      - watchOS # unrecognized
      - visionOS
    sources:
      - path: "ArgumentParser/Sources/ArgumentParser"
        includes:
          - "**/*.swift"
    settings:
      BUILD_LIBRARY_FOR_DISTRIBUTION: YES
      SKIP_INSTALL: NO
      MAKETING_VERSION: "1.3.0"

I don't understand why watchOS was left unsupported. If I first generated a project without watchOS support, and then added watchOS destination in the Xcode project editor, the only changes appeared on Git were:

-                SUPPORTED_PLATFORMS = "appletvos appletvsimulator iphoneos iphonesimulator macosx xros xrsimulator";
+                SUPPORTED_PLATFORMS = "appletvos appletvsimulator iphoneos iphonesimulator macosx watchos watchsimulator xros xrsimulator";
-                TARGETED_DEVICE_FAMILY = "1,2,3,7";
+                TARGETED_DEVICE_FAMILY = "1,2,3,4,7";

It didn't seem like there would be a technically restriction, or even too much work, on adding watchOS as a supportedDestinations.

@giginet
Copy link
Collaborator

giginet commented Jan 29, 2024

This will be resolved by #1438

@zewuchen
Copy link

This issue was fixed in Release 2.41.0. Can you close?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants