Skip to content

Use NSMetadataQuery to discover local .xip files #10

Open

Description

@xcodereleases

Spotlight can readily find .xip files downloaded on your system. It would be really nice if XcodesKit could discover these and use them as the install source instead of downloading the file from Apple's server.

A simple predicate of "kMDItemContentType = 'com.apple.xip-archive'" is sufficient to locate .xip files in all of Spotlight's indexed locations.

From there, .xip files can be matched to their remote equivalent by comparing their respective shasum values to the values listed in the XcodeReleases json data.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions