Skip to content

Conversation

@pepicrft
Copy link
Contributor

@pepicrft pepicrft commented Oct 4, 2025

Summary

Changes

  • Added defaultIsolation case to SettingName enum
  • Added defaultIsolation case to private Kind enum for Xcode 14 format
  • Updated init(from:) decoder to handle defaultIsolation settings
  • Updated encode(to:) encoder to handle defaultIsolation settings

Context

The defaultIsolation setting allows Swift packages to specify actor isolation requirements for their targets (e.g., .defaultIsolation(nil) for nonisolated or .defaultIsolation(MainActor.self) for MainActor isolated).

Without this support, Tuist fails to parse PackageInfo JSON when packages use this setting, causing project generation to fail with a decoding error.

Test Plan

  • Verified that PackageInfo can now decode defaultIsolation settings without errors
  • The setting is properly ignored during project generation (handled in tuist/tuist repository)

🤖 Generated with Claude Code

This commit adds support for the defaultIsolation Swift Package Manager
setting introduced in PackageDescription 6.2. The defaultIsolation setting
allows packages to specify actor isolation requirements for their targets.

Changes:
- Added defaultIsolation case to SettingName enum
- Added defaultIsolation case to Kind enum for Xcode 14 format
- Updated init(from:) to decode defaultIsolation settings
- Updated encode(to:) to encode defaultIsolation settings

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@dosubot dosubot bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label Oct 4, 2025
@dosubot dosubot bot added the enhancement New feature or request label Oct 4, 2025
@pepicrft pepicrft self-assigned this Oct 4, 2025
@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Oct 6, 2025
@pepicrft pepicrft merged commit 1f5240d into main Oct 7, 2025
7 checks passed
@pepicrft pepicrft deleted the fix/package-info-default-isolation branch October 7, 2025 08:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request lgtm This PR has been approved by a maintainer size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Tuist generate fails due PackageInfo setting parsing issue for defaultIsolation setting

3 participants