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

Commit d1694aa

Browse files
committed
Fix 'error: ProcessInfo initializer is inaccessible due to internal protection level'
1 parent a6befa6 commit d1694aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Tests/SwiftDocTests/Helpers/temporaryFile.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
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

77
let path = path ?? ProcessInfo().globallyUniqueString

0 commit comments

Comments
 (0)