Skip to content

Instantly share code, notes, and snippets.

@vani2
Created January 14, 2021 09:29
Show Gist options
  • Save vani2/dcc909703deb247b38a5bfcfd55dc38b to your computer and use it in GitHub Desktop.
Save vani2/dcc909703deb247b38a5bfcfd55dc38b to your computer and use it in GitHub Desktop.
Fastlane for app-file build
desc "Build simulator"
lane :build_simulator do
cocoapods
zip_path = "./#{app_target}.zip"
Dir.mktmpdir do |dir|
gym(
scheme: app_debug_scheme,
workspace: app_workspace,
skip_package_ipa: true,
skip_archive: true,
destination: "platform=iOS Simulator,name=iPhone 12 Pro Max",
xcargs: "-sdk iphonesimulator SYMROOT=#{dir}"
)
app_path = sh("find #{dir} -name *.app -type d").strip()
zip(
path: app_path,
output_path: zip_path
)
end
slack_upload(
title: "Сборка под симулятор",
file_path: zip_path
)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment