Skip to content
This repository was archived by the owner on Jun 1, 2023. It is now read-only.

Commit 02240c5

Browse files
committed
Fix: 'error: ProcessInfo initializer is inaccessible due to internal protection level'
1 parent 74f7ea3 commit 02240c5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Tests/SwiftDocTests/Helpers/temporaryFile.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import Foundation
22

33
func temporaryFile(path: String? = nil, contents: String) throws -> URL {
4-
let temporaryDirectoryURL = URL(fileURLWithPath: NSTemporaryDirectory()).appendingPathComponent(ProcessInfo().globallyUniqueString)
4+
let temporaryDirectoryURL = URL(fileURLWithPath: NSTemporaryDirectory()).appendingPathComponent(ProcessInfo.processInfo.globallyUniqueString)
55
try FileManager.default.createDirectory(at: temporaryDirectoryURL, withIntermediateDirectories: true, attributes: [.posixPermissions: 0o766])
66

7-
let path = path ?? ProcessInfo().globallyUniqueString
7+
let path = path ?? ProcessInfo.processInfo.globallyUniqueString
88
let temporaryFileURL = temporaryDirectoryURL.appendingPathComponent(path)
99

1010
try contents.data(using: .utf8)?.write(to: temporaryFileURL)

0 commit comments

Comments
 (0)