Closed xiote closed 4 years ago
import XMLCoder
issue
build/x86_64-apple-macosx/debug/XMLCoder.build/module.modulemap:2:12: error: header '.build/x86_64-apple-macosx/debug/XMLCoder.build/XMLCoder-Swift.h' not found
header ".build/x86_64-apple-macosx/debug/XMLCoder.build/XMLCoder-Swift.h"
^
main.swift:32:8: error: could not build Objective-C module 'XMLCoder'
import XMLCoder
// swift-tools-version:5.2
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription
let package = Package( name: "XMLCoderExample", products: [ // Products define the executables and libraries produced by a package, and make them visible to other packages. .library( name: "XMLCoderExample", targets: ["XMLCoderExample"] ), ], dependencies: [ // Dependencies declare other packages that this package depends on. // .package(url: / package url /, from: "1.0.0"), .package(url: "https://github.com/MaxDesiatov/XMLCoder.git", from: "0.10.0"), ], targets: [ // Targets are the basic building blocks of a package. A target can define a module or a test suite. // Targets can depend on other targets in this package, and on products in packages which this package depends on. .target( name: "XMLCoderExample", dependencies: ["XMLCoder"] ), .testTarget( name: "XMLCoderExampleTests", dependencies: ["XMLCoderExample"] ), ] )
import PackageDescription
let package = Package( name: "XMLCoderExample", products: [ // Products define the executables and libraries produced by a package, and make them visible to other packages. .library( name: "XMLCoderExample", targets: ["XMLCoderExample"] ), ], dependencies: [ // Dependencies declare other packages that this package depends on. // .package(url: / package url /, from: "1.0.0"), .package(url: "https://github.com/MaxDesiatov/XMLCoder.git", from: "0.10.0"), ], targets: [ // Targets are the basic building blocks of a package. A target can define a module or a test suite. // Targets can depend on other targets in this package, and on products in packages which this package depends on. .target( name: "XMLCoderExample", dependencies: [] ), .testTarget( name: "XMLCoderExampleTests", dependencies: ["XMLCoderExample"] ), ] )