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

Fix SPM resources #484

Merged
merged 1 commit into from
May 18, 2024
Merged

Fix SPM resources #484

merged 1 commit into from
May 18, 2024

Conversation

GLinnik21
Copy link
Collaborator

A quick test showed that resources specified as constants were for some reason not processed by SPM. This fix goes back to array literals.

swift package describe with literals:

    Name: KSCrashCore
    Type: library
    C99name: KSCrashCore
    Module type: ClangTarget
    Path: Sources/KSCrashCore
    Sources:
        NSError SimpleConstructor.m
    Resources:
        Rule:
            Copy:
        Path:
            /<path>/KSCrash/Sources/KSCrashCore/Resources/PrivacyInfo.xcprivacy
    Product memberships:
        Reporting
        Filters
        Sinks
        Installations
        Recording

without:

    Name: KSCrashCore
    Type: library
    C99name: KSCrashCore
    Module type: ClangTarget
    Path: Sources/KSCrashCore
    Sources:
        NSError SimpleConstructor.m
    Product memberships:
        Reporting
        Filters
        Sinks
        Installations
        Recording

@GLinnik21 GLinnik21 merged commit c16cd6c into master May 18, 2024
19 checks passed
@GLinnik21 GLinnik21 deleted the fix-spm-resources branch May 18, 2024 16:33
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.

None yet

1 participant