[英]Maps custom Xcode configuration to NativeBuildType in Kotlin Multi-platform
I am reading cocoapods and I see this two lines in gradle file.我正在阅读cocoapods ,我在 gradle 文件中看到这两行。 Can someone explain me in details.
有人可以详细解释一下吗? What is the purpose of this lines?
这条线的目的是什么?
xcodeConfigurationToNativeBuildType["CUSTOM_DEBUG"] = NativeBuildType.DEBUG
xcodeConfigurationToNativeBuildType["CUSTOM_RELEASE"] = NativeBuildType.RELEASE
By default, the iOS app has two configurations: debug and release.默认情况下,iOS 应用程序有两种配置:调试和发布。
You can add more configurations as shown here .您可以添加更多配置,如此处所示。 Using different configurations, you can create different versions of your app: each build parameter in Xcode can have different values depending on the configuration, including user-defined .
使用不同的配置,您可以创建不同版本的应用程序:Xcode 中的每个构建参数都可以根据配置具有不同的值,包括用户定义的。
For example, it is useful to have an AppStore configuration and a release configuration for local testing, which can use different endpoints, api keys, etc.例如,具有用于本地测试的 AppStore 配置和发布配置很有用,它们可以使用不同的端点、api 密钥等。
xcodeConfigurationToNativeBuildType
lets the multiplatform kotlin plugin know which build type a particular custom configuration should be built with - the debug configuration is slower, but gives more debugging options. xcodeConfigurationToNativeBuildType
让多平台 kotlin 插件知道应该使用哪种构建类型来构建特定的自定义配置——调试配置速度较慢,但提供了更多的调试选项。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.