Skip to content

Commit

Permalink
fix(ios): removing unsupported arch added (#850)
Browse files Browse the repository at this point in the history
Removing simulator arm64 arch if testBinary doesn't support it
  • Loading branch information
deushev committed Oct 21, 2023
1 parent 230315c commit 3f3959e
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,9 @@ class TestRootFactory(private val device: AppleSimulatorDevice, private val vend
if (supportedArchs.contains(Arch.x86_64) && device.arch != Arch.arm64) {
// Launch as plain x86_64 if test binary has been built for simulator and is targeting x86_64
device.binaryEnvironment.lipo.removeArch(testRunnerBinary, Arch.arm64)
} else if (supportedArchs.contains(Arch.x86_64) && !supportedArchs.contains(Arch.arm64)) {
// Launch as plain x86_64 if test binary supports only x86_64
device.binaryEnvironment.lipo.removeArch(testRunnerBinary, Arch.arm64)
}
}
}
Expand Down

0 comments on commit 3f3959e

Please sign in to comment.