Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kingslay committed Nov 13, 2023
1 parent 69f7bdd commit 2cb03be
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ if !FileManager.default.fileExists(atPath: ffmpegKitPath), let url = URL(string:
// 解决用xcode引入spm的时候,依赖关系出错的问题
if !path.contains("/checkouts/") {
ffmpegKitPath = path + "/FFmpegKit"
if !FileManager.default.fileExists(atPath: ffmpegKitPath) {
ffmpegKitPath = path + "/KSPlayer/FFmpegKit"
}
}
}

Expand Down
3 changes: 3 additions & 0 deletions [email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ if !FileManager.default.fileExists(atPath: ffmpegKitPath), let url = URL(string:
// 解决用xcode引入spm的时候,依赖关系出错的问题
if !path.contains("/checkouts/") {
ffmpegKitPath = path + "/FFmpegKit"
if !FileManager.default.fileExists(atPath: ffmpegKitPath) {
ffmpegKitPath = path + "/KSPlayer/FFmpegKit"
}
}
}

Expand Down

0 comments on commit 2cb03be

Please sign in to comment.