1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# 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
lane :ad do |options|
desc = options[:desc]
scheme = "BreastFeedingDemo"
currentTime = Time.new.strftime("%Y-%m-%d %H-%M")
output_path = "/Users/jzhang/Desktop/BF_AiDemo"
ipa_name = "BF_AiDemo_#{currentTime}"
increment_build_number
gym(
# 如果是用workspace,就启用下面一行
# workspace: "BreastFeedingDemo.xcworkspace",
scheme: "#{scheme}",
output_name: "#{ipa_name}",
clean: true,
export_options: "/Users/jzhang/Desktop/BreastFeedingDemo 2022-10-11 11-40-42/ExportOptions.plist",
configuration: "Release",
export_method: "ad-hoc",
output_directory: "#{output_path}",
)
# pgyer(
# api_key: "1c1acff227f9dea3eafd531ba369680d",
# user_key: "02794c3c6f78cbfda696f807d4cb1da0",
# update_description: "#{desc}",
# )
end
end