# 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
before_all do
cocoapods # pod install
end
desc "POP MART Global lane"
lane :pop_development do
# 开发环境
gym(
scheme: "DevPOPXXX",
workspace: "POPXXX.xcworkspace",
export_method: "development", #app-store, package, ad-hoc, enterprise, development
silent:true,
configuration: "Debug",
output_directory:"./development_debug",
output_name:"development_debug.ipa"
)
fir_cli api_token: "xxxxxxxxxxxxxx", changelog: "开发环境"
end
lane :pop_test_release do
#测试环境
gym(
scheme: "DevPOPXXX",
workspace: "POPXXX.xcworkspace",
export_method: "ad-hoc",
silent:true,
include_bitcode: true,
configuration: "Release",
output_directory:"./test_adhoc_release",
output_name:"test_adhoc_release.ipa"
)
fir_cli api_token: "xxxxxxxxxxxxxx", changelog: "测试环境"
end
lane :pop_product_release do
#线上环境
gym(
scheme: "POPXXX",
workspace: "POPXXX.xcworkspace",
export_method: "ad-hoc",
silent:true,
configuration: "Release",
include_bitcode: true,
output_directory:"./product_adhoc_release",
output_name:"product_adhoc_release.ipa",
export_options: { # 指定对应证书,不指定,有时候会导出ipa包出问题
provisioningProfiles: {
"com.xxxx.global": "adhoc-global",
}
}
)
fir_cli api_token: "xxxxxxxxxxxxxx", changelog: "线上环境"
end
lane :pq_appstore do
gym(
scheme: "POPXXX",
workspace: "POPXXX.xcworkspace",
export_method: "app-store",
silent:true,
configuration: "Release",
output_directory:"./appstore",
output_name:"Appstore.ipa"
)
deliver(
force: true, #是否跳过HTML验证报告,默认false
skip_metadata: true, #是否跳过上传metadata,默认false
skip_screenshots: true #是否跳过上传屏幕截图,默认false
)
end
end