Skip to content

Fix resource path structure for proper SPM support#6

Open
tolulawson wants to merge 1 commit into
mlalma:mainfrom
tolulawson:fix/resource-path-structure
Open

Fix resource path structure for proper SPM support#6
tolulawson wants to merge 1 commit into
mlalma:mainfrom
tolulawson:fix/resource-path-structure

Conversation

@tolulawson
Copy link
Copy Markdown

Summary

  • Move Resources folder from package root to Sources/MisakiSwift/Resources
  • Update Package.swift to use conventional relative path (.copy("Resources") instead of .copy("../../Resources/"))

Problem

The unconventional ../../Resources/ path in Package.swift causes Xcode to display "unhandled resource" warnings when the package is used as a dependency.

Solution

Restructure resources to follow Swift Package Manager conventions:

MisakiSwift/
├── Sources/
│   └── MisakiSwift/
│       └── Resources/    <-- resources now here
└── Package.swift

Build verified successfully after changes.

Move Resources folder from package root to Sources/MisakiSwift/Resources
and update Package.swift to use conventional relative path. This fixes
the 'unhandled resource' warning in Xcode caused by the unconventional
../../Resources/ path reference.
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