kstenerud / KSCrash

The Ultimate iOS Crash Reporter
MIT License
4.23k stars 706 forks source link

Fix SPM resources #484

Closed GLinnik21 closed 4 months ago

GLinnik21 commented 4 months ago

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