The location of the package, specifically the last path component of your package’s URL. This is often the repo name, for example swift-protobuf in https://github.com/apple/swift-protobuf.
The name of the package. This is defined in the name field of the package’s Package.swift file. For example, swift-async-algorithms here
A single package can have multiple product names. For example, when you add the swift-nio package to your Xcode project, Xcode pops this modal:
Of these, product names have the most consensus on style: they should be PascalCase. Location and package name do not have an agreed upon style (you’ll find many variations by browsing a community package list).
The package location is used in Xcode’s File > Add Package Dependencies flow in two ways, one expected and one unexpected.
Users find your package by searching for its full URL. Once found, Xcode uses the last path component as the identifier in the recently used packages view. This is a potential confusion point for your customers: