[Tests] Try to make CocoaPods installation more robust
This commit is contained in:
committed by
Space Team
parent
00fd0a421f
commit
2abe04132b
+7
-2
@@ -165,8 +165,13 @@ fun ensureCocoapodsInstalled() {
|
|||||||
val installDir = cocoapodsInstallationRoot.absolutePathString()
|
val installDir = cocoapodsInstallationRoot.absolutePathString()
|
||||||
println("Installing CocoaPods...")
|
println("Installing CocoaPods...")
|
||||||
|
|
||||||
//https://github.com/ffi/ffi/issues/864#issuecomment-875242776
|
try {
|
||||||
gem("install", "--install-dir", installDir, "ffi", "-v", "1.15.5", "--", "--enable-libffi-alloc")
|
//https://github.com/ffi/ffi/issues/864#issuecomment-875242776
|
||||||
|
gem("install", "--install-dir", installDir, "ffi", "-v", "1.15.5", "--", "--enable-libffi-alloc")
|
||||||
|
} catch (e: Exception) {
|
||||||
|
System.err.println("ffi installation with '--enable-libffi-alloc' has failed but we'll try to continue with a default ffi")
|
||||||
|
System.err.println(e.toString())
|
||||||
|
}
|
||||||
|
|
||||||
gem("install", "--install-dir", installDir, "cocoapods", "-v", TestVersions.COCOAPODS.VERSION)
|
gem("install", "--install-dir", installDir, "cocoapods", "-v", TestVersions.COCOAPODS.VERSION)
|
||||||
} else if (!isCocoapodsInstalled()) {
|
} else if (!isCocoapodsInstalled()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user