Skip to content

Conversation

@vince-hz
Copy link
Contributor

@vince-hz vince-hz commented Jan 3, 2026

Summary

  • Added resources: [.process("Resources")] to the AlertController target in Package.swift
  • This fixes the build error where Bundle.module is undefined because SPM wasn't aware of the Resources directory
  • The AlertControllerConfiguration.swift uses Bundle.module for localization support, which requires this declaration

Test plan

  • Verified build succeeds with xcodebuild -scheme AlertController -destination 'platform=iOS Simulator,...'

🤖 Generated with Claude Code

The AlertControllerConfiguration.swift uses Bundle.module for localization,
but the target was missing the resources declaration, causing build failures.

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@vince-hz vince-hz closed this Jan 3, 2026
@vince-hz vince-hz deleted the vince/lusaka branch January 3, 2026 08:25
@Lakr233
Copy link
Owner

Lakr233 commented Jan 4, 2026

why closing it? Haven't have time to review yet.

@vince-hz vince-hz restored the vince/lusaka branch January 4, 2026 06:29
@vince-hz vince-hz reopened this Jan 4, 2026
@vince-hz
Copy link
Contributor Author

vince-hz commented Jan 4, 2026

I encounterred an error when I integrate this project with tuist.
Since tuist dependencies won't use swift package manager, Bundle.module declaration will be a error.

Tuist will generate the Bundle.module extension automatically when it found there are .resource(xxx) declaration in Package.swift. I asked claude to fix it for me.

It's not a feature or fix but only for tuist.

@Lakr233 Lakr233 merged commit 9bda418 into Lakr233:main Jan 4, 2026
@Lakr233
Copy link
Owner

Lakr233 commented Jan 4, 2026

Thanks.

@vince-hz vince-hz deleted the vince/lusaka branch January 4, 2026 09:47
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.

2 participants