[✔] 🚀
[14:51:47]: Sending anonymous analytics information
[14:51:47]: Learn more at https://docs.fastlane.tools/#metrics
[14:51:47]: No personal or sensitive data is sent.
[14:51:47]: You can disable this by adding `opt_out_usage` at the top of your Fastfile
[✔] Looking for iOS and Android projects in current directory...
[14:51:47]: Created new folder './fastlane'.
[14:51:47]: Detected an iOS/macOS project in the current directory: 'woshiqiuxing.xcworkspace'
[14:51:48]: -----------------------------
[14:51:48]: --- Welcome to fastlane 🚀 ---
[14:51:48]: -----------------------------
[14:51:48]: fastlane can help you with all kinds of automation for your mobile app
[14:51:48]: We recommend automating one task first, and then gradually automating more over time
[14:51:48]: What would you like to use fastlane for?
1. 📸 Automate screenshots
2. 👩✈️ Automate beta distribution to TestFlight
3. 🚀 Automate App Store distribution
4. 🛠 Manual setup - manually setup your project to automate your tasks
?
bundle update fastlane
fastlane add_plugin pgyer
app_identifier "com.smilodontech.iamkicker"
apple_id "3281687865@qq.com"
team_id "MZKRDDFYVS"
for_lane :beta_pg do
app_identifier("com.smilodontechbeta.iamkicker")
team_id "MZKRDDFYVS"
end
default_platform(:ios)
platform :ios do
desc "使用方法 `fastlane release_pg configuration:[Debug_Beta | Debug]`"
private_lane :release_pg do |options|
configuration = options[:configuration]
date = Time.new.strftime("%Y%m%d-%H%M")
gym(
scheme: "woshiqiuxing",
configuration: "#{configuration}",
output_directory: "../build/#{configuration}/#{date}",
output_name: "#{configuration}-#{date}.ipa",
clean: true,
silent: true,
include_symbols: true,
export_method:'development',
)
pgyer(api_key: "8627de1da2f0adf52c6ea6b916195571",
user_key: "d5f1a41563ea466600457e1bd53f3089",
# update_description: get_update_description(),
# password: "123456",
# install_type: "2"
)
end
desc "发布测试版至蒲公英"
lane :beta_pg do
release_pg(configuration: 'Debug_Beta')
end
desc "发布正式版至蒲公英"
lane :pg do
release_pg(configuration: 'Debug')
end
end
#---------- begin -----------
default_platform :ios
platform :ios do
desc "发布 蒲公英"
lane :beta_pgy do
gym(scheme: "Test",
export_method: "ad-hoc",
silent: true, # 隐藏没有必要的信息
clean: true # 在构建前先clean
)
pgyer(api_key: "b*******************************4",
user_key: "e********************************7",
update_description: get_update_description(),
# password: "123456",
# install_type: "2"
)
end
desc "发布 到 苹果TestFlight"
lane :beta_apple do
gym(scheme: "Test"],
silent: true, # 隐藏没有必要的信息
clean: true # 在构建前先clean
)
pilot #管理TestFlight测试用户,上传二进制文件
end
desc "发布苹果商店"
lane :release_apple do
gym(scheme: "Test"],
silent: true, # 隐藏没有必要的信息
clean: true # 在构建前先clean
)
deliver #上传截图、元数据、App到iTunesConnect
end
#---------- end -------------
# You can define as many lanes as you want
after_all do |lane|
# This block is called, only if the executed lane was successful
# slack(
# message: "Successfully deployed new App Update."
# )
end
error do |lane, exception|
# slack(
# message: exception.message,
# success: false
# )
end
end