[KT-54314] Cocoapods: disable signing for all pod dependencies in synthetic project

This commit is contained in:
konstantin.tskhovrebov
2022-10-10 14:33:41 +02:00
committed by Space Team
parent f4bdf54601
commit 5e96bf0795
2 changed files with 19 additions and 1 deletions
@@ -245,6 +245,9 @@ class CocoaPodsIT : BaseGradleIT() {
assertTrue(podfileText.contains("pod 'SSZipArchive'"))
assertTrue(podfileText.contains("pod 'AFNetworking', '~> 4.0.1'"))
assertTrue(podfileText.contains("pod 'Alamofire', :git => 'https://github.com/Alamofire/Alamofire.git', :tag => '5.6.1'"))
assertTrue(podfileText.contains("config.build_settings['EXPANDED_CODE_SIGN_IDENTITY'] = \"\""))
assertTrue(podfileText.contains("config.build_settings['CODE_SIGNING_REQUIRED'] = \"NO\""))
assertTrue(podfileText.contains("config.build_settings['CODE_SIGNING_ALLOWED'] = \"NO\""))
}
}
@@ -97,7 +97,8 @@ open class PodInstallTask : CocoapodsTask() {
returnCode,
output,
project,
frameworkName.get())
frameworkName.get()
)
},
exceptionHandler = { e: IOException ->
CocoapodsErrorHandlingUtil.handle(e, podInstallCommand)
@@ -236,6 +237,20 @@ open class PodGenTask : CocoapodsTask() {
}
}.forEach { appendLine("\t$it") }
appendLine("end\n")
//disable signing for all synthetic pods KT-54314
append(
"""
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['EXPANDED_CODE_SIGN_IDENTITY'] = ""
config.build_settings['CODE_SIGNING_REQUIRED'] = "NO"
config.build_settings['CODE_SIGNING_ALLOWED'] = "NO"
end
end
end
""".trimIndent()
)
}
}