diff --git a/plugins/package-managers/cocoapods/src/main/kotlin/CocoaPods.kt b/plugins/package-managers/cocoapods/src/main/kotlin/CocoaPods.kt index 9c6945a561e0a..5d7d9789a0926 100644 --- a/plugins/package-managers/cocoapods/src/main/kotlin/CocoaPods.kt +++ b/plugins/package-managers/cocoapods/src/main/kotlin/CocoaPods.kt @@ -102,7 +102,7 @@ class CocoaPods( override fun beforeResolution(definitionFiles: List) = checkVersion() override fun resolveDependencies(definitionFile: File, labels: Map): List { - return stashDirectories(File("~/.cocoapods/repos")).use { + return stashDirectories(Os.userHomeDirectory.resolve(".cocoapods/repos")).use { // Ensure to use the CDN instead of the monolithic specs repo. run("repo", "add-cdn", "trunk", "https://cdn.cocoapods.org", "--allow-root")