Skip to content

Commit

Permalink
Merge pull request #155 from pgorrindo/coretelephony-visionos
Browse files Browse the repository at this point in the history
Fix: unblock building for VisionOS Simulator
  • Loading branch information
AvdLee authored Sep 18, 2023
2 parents 8800be6 + cced7c2 commit 7f65bd4
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Sources/DiagnosticsReport.swift
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public extension DiagnosticsReport {
try? FileManager.default.createDirectory(atPath: folderPath, withIntermediateDirectories: true, attributes: nil)
let filePath = folderPath + filename
save(to: filePath)
#else
#elseif os(OSX)
let folderPath = "/\(userPath)/Desktop/"
saveUsingPanel(initialDirectoryPath: folderPath, filename: filename)
#endif
Expand Down
5 changes: 4 additions & 1 deletion Sources/Reporters/AppSystemMetadataReporter.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@
// Copyright © 2019 WeTransfer. All rights reserved.
//

import CoreTelephony
#if canImport(CoreTelephony)
import CoreTelephony
#endif

import Foundation

/// Reports App and System specific metadata like OS and App version.
Expand Down
6 changes: 4 additions & 2 deletions Sources/SmartInsights/CellularAllowedInsight.swift
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
//
// CellularAllowedInsight.swift
//
//
//
// Created by Antoine van der Lee on 27/07/2022.
//

import CoreTelephony
#if canImport(CoreTelephony)
import CoreTelephony
#endif
import Foundation

#if os(iOS) && !targetEnvironment(macCatalyst)
Expand Down

0 comments on commit 7f65bd4

Please sign in to comment.