Код IT
← Каталог

Жизненный цикл приложения на Swift — Схемы сборки (Schemes)

Фрагмент из «Жизненный цикл приложения на Swift»: Схемы сборки (Schemes).

XML / XAML main.xml
<!-- Пример конфигурации схемы в .xcscheme -->
<LaunchAction
    buildConfiguration = "Debug"
    selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
    selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
    language = "ru"
    region = "RU">
    <EnvironmentVariables>
        <EnvironmentVariable
            key = "API_BASE_URL"
            value = "https://api.Разработка.com"
            isEnabled = "YES">
        </EnvironmentVariable>
    </EnvironmentVariables>
</LaunchAction>
<!-- Пример конфигурации схемы в .xcscheme -->
<LaunchAction
    buildConfiguration = "Debug"
    selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
    selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
    language = "ru"
    region = "RU">
    <EnvironmentVariables>
        <EnvironmentVariable
            key = "API_BASE_URL"
            value = "https://api.Разработка.com"
            isEnabled = "YES">
        </EnvironmentVariable>
    </EnvironmentVariables>
</LaunchAction>