Avatar
norio_nomura 3/31/2025 3:32 AM
メモ: macOSのswift replimport Testingを使う(動かないけど)には-Fをつける $ swift repl -F $(xcrun --show-sdk-platform-path)/Developer/Library/Frameworks Welcome to Apple Swift version 6.1 (swiftlang-6.1.0.110.21 clang-1700.0.13.3). Type :help for assistance. 1> import Testing 2> @Test func helloWorld() { 3. let greeting = "Hello, world!" 4. #expect(greeting == "Hello") // Expectation failed: (greeting → "Hello, world!") == "Hello" 5. } 6> await Testing.__swiftPMEntryPoint() as CInt 􀟈 Test run started. 􀄵 Testing Library Version: 124 􀄵 Target Platform: arm64e-apple-macos14.0 􁁛 Test run with 0 tests passed after 0.001 seconds. REPL requires a running target process. error: REPL process is no longer alive, exiting REPL (edited)