[swift-users] error: the package has an unsupported layout, unexpected source file(s) found: /Users/maximveksler/Project/Org/Collection/Sources/main.swift

Maxim Veksler maxim at vekslers.org
Tue Jan 24 13:57:50 CST 2017


The most recent change I've done is add the Sources/extensions/Jay.swift,
now I'm unable to build the project.

No idea what could have gone wrong, feedback?


➜  Collection git:(master) ✗ find Sources
Sources
Sources/extensions
Sources/extensions/Jay.swift
Sources/main.swift

➜  Collection git:(master) ✗ cat Package.swift
import PackageDescription

let package = Package(
    name: "Collection",
    dependencies: [
      .Package(url: "https://github.com/GraphQLSwift/GraphQL.git",
majorVersion: 0),
      .Package(url: "https://github.com/czechboy0/Jay.git", majorVersion: 1)
    ]
)

➜  Collection git:(master) ✗ swift build
error: the package has an unsupported layout, unexpected source file(s)
found: /Users/maximveksler/Project/Org/Collection/Sources/main.swift
fix: move the file(s) inside a module
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-users/attachments/20170124/1981d01b/attachment.html>


More information about the swift-users mailing list