fastlane 安装/使用

1
2
3
gem install fastlane
cd ${PROJ_ROOT}
fastlane init

参考配置:

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
default_platform(:ios)

platform :ios do
desc "Push a new beta build to TestFlight"
lane :beta do

increment_build_number(
xcodeproj: "MY_PROJ.xcodeproj"
)

build_app(
workspace: "MY_PROJ.xcworkspace",
scheme: "MY_PROJ",
clean: true,
export_method: "app-store",
output_directory: "./build/",
output_name: "MY_PROJ-TestFlight",
export_xcargs: "-allowProvisioningUpdates",
)

upload_to_testflight(
skip_waiting_for_build_processing: true
)

end
end

xcodebuild

参考命令:

1
2
3
4
5
6
7
8
## 使用帮助
xcodebuild -usage

## 构建
xcodebuild archive -workspace MY_PROJ.xcworkspace -scheme MY_PROJ -configuration Debug -archivePath build/MY_PROJ.xcarchive

## 输出 ipa
xcodebuild -exportArchive -archivePath build/MY_PROJ.xcarchive -exportPath build/MY_PROJ.ipa -exportOptionsPlist export.plist

gym

递增 Build 编号

TestFlight

蒲公英