[Gradle, Cocoapods] Fixed bug in scheme name for pods

This commit is contained in:
Yaroslav Chernyshev
2020-07-13 16:36:46 +03:00
parent 67e58ff152
commit 07e3dd9ec7
@@ -233,6 +233,9 @@ open class PodBuildTask : CocoapodsWithSyntheticTask() {
@get:OutputDirectory @get:OutputDirectory
internal var buildDirProvider: Provider<File>? = null internal var buildDirProvider: Provider<File>? = null
private val CocoapodsExtension.CocoapodsDependency.schemeName: String
get() = name.split("/")[0]
@TaskAction @TaskAction
fun buildDependencies() { fun buildDependencies() {
val podBuildSettings = PodBuildSettingsProperties.readSettingsFromStream( val podBuildSettings = PodBuildSettingsProperties.readSettingsFromStream(
@@ -246,7 +249,7 @@ open class PodBuildTask : CocoapodsWithSyntheticTask() {
val podXcodeBuildCommand = listOf( val podXcodeBuildCommand = listOf(
"xcodebuild", "xcodebuild",
"-project", podsXcodeProjDir.name, "-project", podsXcodeProjDir.name,
"-scheme", it.moduleName, "-scheme", it.schemeName,
"-sdk", kotlinNativeTarget.toValidSDK, "-sdk", kotlinNativeTarget.toValidSDK,
"-configuration", podBuildSettings.configuration "-configuration", podBuildSettings.configuration
) )