Closed nikitabobko closed 5 months ago
I just checked it on my other machine and, of course, it's not reproducible there
The problem is reproducible on my home machine M1 Pro. Sonoma 14.3.1
$ swift -v
Apple Swift version 5.9 (swiftlang-5.9.0.128.108 clang-1500.0.40.1)
Target: arm64-apple-macosx14.0
And it's not reproducible on my work machine M3 Max. Sonoma 14.3.1
$ swift -v
Apple Swift version 5.9.2 (swiftlang-5.9.2.2.56 clang-1500.1.0.2.5)
Target: arm64-apple-macosx14.0
Updating Xcode to 15.3 (15E204a) and consequently swift to 5.10 resolved the problem
Apple Swift version 5.10 (swiftlang-5.10.0.13 clang-1500.3.9.4)
Target: arm64-apple-macosx14.0
Linker fails in the hello world project
Full project:
Fails with (The full build log out.txt):
The project listing
import PackageDescription
let package = Package( name: "spm", products: [ // Products define the executables and libraries a package produces, making them visible to other packages. .library( name: "spm", targets: ["spm"] ), ], dependencies: [ .package( url: "https://github.com/kishikawakatsumi/swift-power-assert.git", from: "0.12.0" ), ], targets: [ // Targets are the basic building blocks of a package, defining a module or a test suite. // Targets can depend on other targets in this package and products from dependencies. .target( name: "spm" ), .testTarget( name: "spmTests", dependencies: [ "spm", .product(name: "PowerAssert", package: "swift-power-assert"), ] ), ] )
import XCTest import PowerAssert @testable import MyLibrary
final class MyLibraryTests: XCTestCase { func testExample() { let a = 7 let b = 4 let c = 12
} }