我具有以下Fastlane配置,以创建新的Beta版本。
platform :ios do
lane :beta do
ensure_git_status_clean(show_uncommitted_changes: true)
ensure_git_branch(branch: "master")
changelog = prompt(
text: "Changelog: ",
multi_line_end_keyword: "END"
)
increment_build_number
version_number = get_info_plist_value(path: "./AppName/Supporting Files/Info.plist", key: "CFBundleShortVersionString")
build_number = get_info_plist_value(path: "./AppName/Supporting Files/Info.plist", key: "CFBundleVersion")
sync_code_signing(type: "appstore")
build_app(scheme: "AppName")
commit_version_bump(message: "Bump version to v#{version_number}##{build_number}")
add_git_tag
push_to_git_remote
upload_to_testflight(changelog: changelog)
clean_build_artifacts
end
end
不幸的是,即使 commit_version_bump 的文档指出它已经提交了所有Info.plist文件,也没有提交Test和UITest目标的Info.plist文件。
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git checkout -- <file>..." to discard changes in working directory)
modified: AppNameTests/Info.plist
modified: AppNameUITests/Info.plist