Package Manager with XCAssets


(Timothy Hosey) #1

Is it possible to create a new definitions in the Package Manager so it allows Pictures, images, and other graphics to be included in the package manager in Swift 4.2 and higher? Is the development gonna be for iOS Dev and OStv dev soon? Swift is still in its infancy of endless possibilities as newer technologies may rely on Swift.

(Jeremy David Giesbrecht) #2

The package manager does not have native handling of resources. It has been listed as a possible future direction from the beginning and is currently listed as an evolution idea. In the meantime, various workarounds exist out in the wild: Workspace, Mint, etc.

Source code targeting iOS, watchOS and tvOS can be handled by the package manager, but the Application at the top of the dependency tree must still be a separate Xcode project (though it can be left mostly empty). See here for instructions.

The situation has been steadily improving. For example, the recent acceptance of SE‐0236 provides the ability to declare platform version requirements in a manifest and it includes specifiers for iOS et. al.