[swift-users] [package-mananger] Interdependent modules with system module

Max Howell max.howell at apple.com
Mon Jan 11 15:02:04 CST 2016


System-module-packages must be packages. They cannot be sub-modules of packages.

> Are interdependent modules not supported when they include system modules?
> 
> I have a setup with a single system module and a single, normal module:
> 
> % find .
> .
> ./Package.swift
> ./Sources
> ./Sources/CDispatch
> ./Sources/CDispatch/module.modulemap
> ./Sources/Hello
> ./Sources/Hello/main.swift
> 
> % cat Package.swift
> import PackageDescription
> let package = Package(
>  name: "Hello",
>  targets: [
>    Target(
>      name: "Hello",
>      dependencies: [.Target(name: "CDispatch")]),
>    Target(
>      name: "CDispatch")
>  ]
> )
> 
> But it fails to build:
> 
> % swift build 
> error: The manifest describes a target that cannot be found in your source tree: CDispatch
> 
> 
> /Danie



More information about the swift-users mailing list