But the pod version works. So there's something I just can't figur eout. Any help would be gladly appreciated.
I've pasted my Package.d below. And the compiler error is:
error: unable to open dependencies file (/Users/aliak/Library/Developer/Xcode/DerivedData/Tasker-ccymmsbfnrczrcfuvnbmrlkjysbs/Build/Intermediates.noindex/Tasker.build/Debug/Tasker.build/Objects-normal/x86_64/task-PACKAGE:/Users/aliak/dev/Tasker::MAINGROUP::REF_1::REF_2.d)
When I open Package.swift
with xcode, and hit Build, it succeeds but shows that compiler error anyway. And when I hit test it goes:
2020-06-03 21:51:30.224832+0200 xctest[32817:992992] The bundle “TaskerTests.xctest” couldn’t be loaded because its executable couldn’t be located. Try reinstalling the bundle.
Program ended with exit code: 1
Has anyone seen this before or has any hints on how to go about fixing this?
I also have a github issue for it here: Swift package doesn't work · Issue #14 · aliak00/Tasker · GitHub
let package = Package(
name: "Tasker",
products: [
// Products define the executables and libraries produced by a package, and make them visible to other packages.
.library(
name: "Tasker",
targets: ["Tasker"]),
],
dependencies: [
// Dependencies declare other packages that this package depends on.
// .package(url: /* package url */, from: "1.0.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: "Tasker",
dependencies: [],
path: "Sources"),
.testTarget(
name: "TaskerTests",
dependencies: ["Tasker"],
path: "Tests"),
]
)