[Gradle, Cocoapods] Fixed bug in scheme name for pods
This commit is contained in:
+4
-1
@@ -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
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user