https://kotlinlang.org logo
Title
a

António Bastião

11/12/2019, 4:17 PM
Hi everyone, any help to convert
commandLine "xcrun", "simctl", "spawn", device, binary.absolutePath
into kotlin?
o

octylFractal

11/12/2019, 5:33 PM
pretty much the same, except use parentheses because it's a function call
a

António Bastião

11/12/2019, 6:25 PM
I tried that but it didn’t work. And because that didn’t work that’s why I asked for help. It works if I call commandLine.add(“xcrun”)... So passing a list with addAll would be much easier. Thank you!
o

octylFractal

11/12/2019, 6:53 PM
surprised that didn't work, maybe groovy does special list translation
it looks like it should work fine
a

António Bastião

11/13/2019, 8:39 AM
well, @octylFractal can’t understand why. After reopen Android Studio this morning I had no errors. Something was cached and eventually the restart was enough. Thank you