diff --git a/Sources/LicensePlistCore/LicensePlist.swift b/Sources/LicensePlistCore/LicensePlist.swift index 12e905f2..78f8106a 100644 --- a/Sources/LicensePlistCore/LicensePlist.swift +++ b/Sources/LicensePlistCore/LicensePlist.swift @@ -108,6 +108,10 @@ public final class LicensePlist { } let path = (path ?? URL(fileURLWithPath: podsDirectoryName)).appendingPathComponent("Target Support Files") let fm = FileManager.default + if !fm.fileExists(atPath: path.path) { + Log.warning("not found: \(path)") + return [] + } let urls = (try! fm.contentsOfDirectory(at: path, includingPropertiesForKeys: nil, options: [])) .filter { var isDirectory: ObjCBool = false