fastlane SPACESHIPSKIP2FA_UPGRADE
- User
fastlane SPACESHIP_SKIP_2FA_UPGRADE
- Assistant
The
SPACESHIP_SKIP_2FA_UPGRADEenvironment variable is used within the Fastlane tool to skip the automatic upgrade of two-factor authentication on Apple Developer Portal. This can be helpful when there is a need to maintain the existing two-factor authentication system, and any upgrade can adversely affect the project's workflows.For instance, in some organizations, a specific version of two-factor authentication might be required by internal security policies, which cannot be upgraded without undergoing a strict review process. In such cases, the
SPACESHIP_SKIP_2FA_UPGRADEenvironment variable can be used to skip the automatic upgrade of two-factor authentication.Here is an example of how to use this environment variable in Fastlane:
fastlane build_app spaceship_skip_2fa_upgrade:trueBy setting
spaceship_skip_2fa_upgradetotrue, the automatic upgrade of two-factor authentication will be skipped during the build process. - User
FASTLANE_APPLE_APPLICATION_SPECIFIC_PASSWORD Azuredevops
- Assistant
The
FASTLANE_APPLE_APPLICATION_SPECIFIC_PASSWORDenvironment variable is used in Fastlane to provide the application-specific password for Apple Developer Portal authentication. Since Apple Developer Portal supports two-factor authentication, an application-specific password is required to authenticate Fastlane with Apple's servers. This ensures a secure and reliable connection between Fastlane and Apple's services. - User
用中文
- Assistant
FASTLANE_APPLE_APPLICATION_SPECIFIC_PASSWORD环境变量用于在 Fastlane 中提供 Apple Developer Portal 认证的应用程序特定密码。由于 Apple Developer Portal 支持两步验证,因此需要应用程序特定密码来验证 Fastlane 与苹果服务器的连接,以确保安全和可靠的连接。Azuredevops可能被用在该变量名称中,表示该变量可以在 Azure DevOps 中设置。Azure DevOps 是一种常用的云服务,提供各种软件开发和部署工具。Azure DevOps 可以作为环境变量存储和管理密码等机密信息,在部署过程中进行访问和配置。以下是在 Azure DevOps 流水线中使用此环境变量的示例:
-
在 Azure DevOps 项目设置中设置
FASTLANE_APPLE_APPLICATION_SPECIFIC_PASSWORD环境变量。这可以通过导航到项目设置并选择 "Pipelines" > "Library" > "Add Variable Group" > "Add variable" 来完成。输入环境变量的名称和值,以及选择适用范围。 -
在定义 Azure DevOps 流水线的 YAML 文件中,添加一个步骤以设置
FASTLANE_APPLE_APPLICATION_SPECIFIC_PASSWORD环境变量。这可以通过 YAML 文件的jobs部分中的env关键字完成。
jobs: - job: deploy_to_app_store steps: - task: AzureCLI@2 inputs: azureSubscription: '${{ parameters.subscription_name }}' scriptLocation: 'inlineScript' inlineScript: | echo "Setting environment variables..." echo "FASTLANE_APPLE_APPLICATION_SPECIFIC_PASSWORD=${{ variables.APP_SPECIFIC_PASSWORD }}" >> $GITHUB_ENV ... -