1.安裝插件
fastlane add_plugin firim
fastlane add_plugin fir_cli
default_platform(:ios)
platform :ios do
desc "lane do"
lane :TestFir do
time = Time.new.strftime("%Y%m%d")
version = get_version_number
ipaName = "Release_#{version}_#{time}.ipa"
gym(
scheme:"項目名稱",
export_method:"development",
configuration:"Release",
output_name:"#{ipaName}",
output_directory:"./build"
)
fir_cli api_token: "firapitoken", changelog: "Hello fir.im"
end
end
參考文章
fir_im配置