lane :test do #函数名称,执行打包的时候使用
# add actions here: https://docs.fastlane.tools/actions
scheme_name = "target名称"
time = Time.new.strftime("%Y%m%d") #获取时间格式
version = get_version_number #获取版本号
ipaName = "Release_#{version}_#{time}.ipa"
#蒲公英api_key和user_key
api_key=“”
user_key=“”
gym(
scheme:scheme_name, #项目名称
workspace: "XXXX.xcworkspace", # 指定项目工作空间,如果项目使用CocoaPods需要加上
clean: true, # 是否编译前clean
export_method:"ad-hoc",#打包的类型 目前支持app-store, package, ad-hoc, enterprise, development
configuration:"Release",#模式,默认Release,还有Debug
output_name:"#{ipaName}",#输出的包名
output_directory:"./fastlane/build"#输出的位置
)
puts "开始上传蒲公英"
pgyer(api_key: “#{api_key}”, user_key: “#{user_key}”)# 开始上传蒲公英
end
2023-07-20
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。