Avatar
Avatar
417_72ki
arm64のDockerイメージ内でだけ Process.waitUntilExit() がハングするんですがそんなことってあります? import Foundation let process = Process() process.executableURL = URL(fileURLWithPath: "/bin/sh") process.arguments = ["-c", "echo 'Hello, World!'"] let stdout = Pipe() process.standardOutput = stdout try process.run() let stdoutData = stdout.fileHandleForReading.readDataToEndOfFile() let stdoutString = String(data: stdoutData, encoding: .utf8)! process.waitUntilExit() // <- ここで固まって先に進まない print(stdoutString) (edited)