[Gradle] Support configuration cache in Xcode/CocoaPods tasks with Gradle 8.1

This commit moves invocation of `xcodebuild` from configuration to execution time. This also fixes the problem with Xcode version being cached inside the daemon.

^KT-59252 Verification Pending
This commit is contained in:
Artem Daugel-Dauge
2023-06-11 21:00:20 +02:00
committed by Space Team
parent 78f4d399d4
commit b6847d0835
22 changed files with 316 additions and 211 deletions
@@ -80,7 +80,7 @@ object PlatformInfo {
&& properties.checkXcodeVersion
&& requiredMajorVersion != null
) {
val currentXcodeVersion = Xcode.findCurrent().version
val currentXcodeVersion = Xcode.findCurrent().version.toString()
val currentMajorVersion = currentXcodeVersion.splitToSequence('.').first()
if (currentMajorVersion != requiredMajorVersion) {
throw IllegalStateException(