Hi, How can I maps custom Xcode configuration to N...
# multiplatform
y
Hi, How can I maps custom Xcode configuration to NativeBuildType without using cocoapods ?
Copy code
ios {
    binaries {
        framework {
            baseName = "shared"
        }
    }
}
j
Are you searching for this
y
yes, but it is available just in cocoapods block
j
then what do you need?
y
I want to achieve the same result without using cocoapods, so in this case, maps custom Xcode configuration to NativeBuildType
j
it is not possible. You need to configure scheme in xcode and then map the configuration in cocoapod plugin in shared module
I'm doing it like this and i don't need to use pod install command while building for ios
Copy code
androidTarget()

    iosX64()
    iosArm64()
    iosSimulatorArm64()

    cocoapods {
        version = "1.0"
        ios.deploymentTarget = "11.0"
        framework {
            isStatic = true
            baseName = "shared"
        }

        xcodeConfigurationToNativeBuildType["Debug-Staging"] =
            NativeBuildType.DEBUG
        xcodeConfigurationToNativeBuildType["Debug-Production"] =
            NativeBuildType.DEBUG
        xcodeConfigurationToNativeBuildType["Release-Staging"] =
            NativeBuildType.RELEASE
        xcodeConfigurationToNativeBuildType["Release-Production"] =
            NativeBuildType.RELEASE
    }