Skip to content

fix: Xcode 26 extension init compilation errors#92

Open
tosh7 wants to merge 3 commits intochore/setup-cifrom
fix/test-compilation-xcode26
Open

fix: Xcode 26 extension init compilation errors#92
tosh7 wants to merge 3 commits intochore/setup-cifrom
fix/test-compilation-xcode26

Conversation

@tosh7
Copy link
Copy Markdown
Owner

@tosh7 tosh7 commented Feb 27, 2026

Summary

  • Fix compilation errors in Xcode 26 (Swift 6) where let properties with default values cannot be directly assigned in extension initializers
  • Use self.init(...) delegation to memberwise initializers in DeliveryItem, DeliveryStatus, and TnekoClient
  • Replace test helper extensions with factory functions in BlackCatTests

Changed files

  • BlackCat/Models/DeliveryItem.swift — delegate extension inits via self.init(...)
  • BlackCat/Models/DeliveryStatus.swift — delegate extension inits via self.init(...)
  • BlackCat/Models/TnekoClient.swift — delegate extension init via self.init(...)
  • BlackCatTests/BlackCatTests.swift — replace extension inits with makeDeliveryItem/makeTnekoClient factory functions

Test plan

  • CI passes on macos-26 with Xcode 26.2

Xcode 26 (Swift 6) no longer allows directly initializing `let`
properties with default values in extension initializers.
Use self.init(...) delegation to the memberwise initializer instead.
@tosh7 tosh7 changed the base branch from develop to chore/setup-ci February 28, 2026 08:43
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

Successfully merging this pull request may close these issues.

1 participant