Skip to content

Commit

Permalink
Check ‘Pods/Target Support Files’ existence
Browse files Browse the repository at this point in the history
  • Loading branch information
mono0926 committed May 3, 2017
1 parent ff07954 commit cd86a25
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Sources/LicensePlistCore/LicensePlist.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cd86a25

Please sign in to comment.