Skip to content

Commit

Permalink
#6040 #6041 - Fix xcode 14.x is not compatible with 13.4.1 build, due…
Browse files Browse the repository at this point in the history
… to FailedChecks not conforming to CaseIterable
  • Loading branch information
Mario Sepulveda committed Jun 30, 2023
1 parent 5d8d949 commit 319e9a0
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions IOSSecuritySuite/FailedChecks.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,33 @@
// Created by im on 06/02/23.
// Copyright © 2023 wregula. All rights reserved.
//
// swiftlint:disable trailing_whitespace

import Foundation

public typealias FailedCheckType = (check: FailedCheck, failMessage: String)

public enum FailedCheck: CaseIterable {

/**
Need to implement allCases to conform to CaseIterable when built by
Xcode 13.4.1, in order to be compatible with Xcode 14.x
*/
public static var allCases: [FailedCheck] {
return [
.urlSchemes,
.existenceOfSuspiciousFiles,
.suspiciousFilesCanBeOpened,
.restrictedDirectoriesWriteable,
.fork,
.symbolicLinks,
.dyld,
.openedPorts,
.pSelectFlag,
.suspiciousObjCClasses
]
}

case urlSchemes
case existenceOfSuspiciousFiles
case suspiciousFilesCanBeOpened
Expand Down

0 comments on commit 319e9a0

Please sign in to comment.