Skip to content

Commit

Permalink
fix(ios): support .app structure without PlugIns folder (#811)
Browse files Browse the repository at this point in the history
  • Loading branch information
Malinskiy authored Jun 30, 2023
1 parent e67cac1 commit d71f724
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ class RemoteFileManager(private val device: AppleDevice) {

fun remoteDirectory(): String = outputDir

suspend fun createRemoteDirectory(remoteDir: String = outputDir) {
suspend fun createRemoteDirectory(remoteDir: String = remoteDirectory()) {
executeCommand(
listOf("mkdir", "-p", remoteDirectory()),
"Could not create remote directory ${remoteDirectory()}"
listOf("mkdir", "-p", remoteDir),
"Could not create remote directory $remoteDir"
)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ class TestRootFactory(private val device: AppleSimulatorDevice, private val vend
* This is what Xcode does out of the box
*/
val remoteXctest = joinPath(remoteTestApp, "PlugIns", bundleConfiguration.xctest.name)
remoteFileManager.createRemoteDirectory(joinPath(remoteTestApp, "PlugIns"))
if (bundleConfiguration.xctest == Path.of(testApp.path, "PlugIns")) {
//We already pushed it above
} else {
Expand Down

0 comments on commit d71f724

Please sign in to comment.