安装以及初始化
安装以及初始化
这里注意Xcode 命令行工具
现在通过命令行无法下载,可通过官网下载
相关配置
# This file contains the fastlane.tools configuration
# You can find the documentation at https://docs.fastlane.tools
#
# For a list of all available actions, check out
#
# https://docs.fastlane.tools/actions
#
# For a list of all available plugins, check out
#
# https://docs.fastlane.tools/plugins/available-plugins
#
# Uncomment the line if you want fastlane to automatically update itself
# update_fastlane
default_platform(:ios)
platform :ios do
desc "Description of what the lane does"
lane :live_adhoc do
build_ios_app(
scheme: "live",
clean:true,
output_name:"输出ipad名称",
output_directory:"输出的ipa路径",
# xcodebuild -help 命令 查看更多
export_options: {
method: "ad-hoc",
provisioningProfiles: {
"bundle id" => "对应的打包profile文件",
}
}
)
pgyer(api_key:"e4b132a2f8952bed0ad8f76efa9de",user_key:"6277f37b278b13b9d88c198a54682",update_description: "fix something")
end
lane :live_dis do
build_ios_app(
scheme: "live",
clean:true,
output_name:"输出ipa名称",
output_directory:"输出ipa路径",
# xcodebuild -help 命令 查看更多
export_options: {
method: "app-store",
"compileBitcode"=>false,
"uploadBitcode"=>false,
"uploadSymbols"=>false,
provisioningProfiles: {
"bundleid" => "对应的打包profile文件",
}
}
)
end
end
更新
fastlane update_fastlane
删除某一个版本
这里通过gem
下载了两个版本,需要删除一个
gem uninstall fastlane --version=2.55.0
当前生成的fastlane
文件版本与本机运行fastlane
版本不对应
直接打开Gemfile.lock
文件修改fastlane (2.128.0)
对应的版本
网友评论