Skip to content

Commit

Permalink
chore: rebuild simulator compatible iOS build (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
nemanjar7 authored Dec 20, 2024
1 parent 7a79f1d commit 531dec6
Showing 1 changed file with 18 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def self.run(params)
end

boot_ios_simulator(params)
install_ios_app(params)
build_and_install_ios_app(params)

UI.message("Running Maestro tests on iOS...")

Expand Down Expand Up @@ -68,7 +68,23 @@ def self.boot_ios_simulator(params)
end
end

def self.install_ios_app(params)
def self.build_and_install_ios_app(params)
UI.message("Building iOS app with scheme: #{params[:scheme]}")
other_action.gym(
workspace: params[:workspace],
scheme: params[:scheme],
destination: "platform=iOS Simulator,name=#{params[:simulator_name]}",
configuration: "Release",
clean: true,
sdk: "iphonesimulator",
build_path: "./build",
skip_archive: true,
skip_package_ipa: true,
include_symbols: false,
include_bitcode: false,
xcargs: "-UseModernBuildSystem=YES"
)

derived_data_path = File.expand_path("~/Library/Developer/Xcode/DerivedData")
app_path = Dir["#{derived_data_path}/**/Release-iphonesimulator/#{params[:scheme]}.app"].first

Expand Down

0 comments on commit 531dec6

Please sign in to comment.