https://kotlinlang.org logo
k

kpgalligan

07/26/2019, 3:31 PM
-.groovy
Any thoughts on creating the same in the new plugin? Trying to sort it out looking at the plugin source. Current example…
Copy code
iosX64("ios"){

        binaries.test {
            framework("testFrameworkHello")
        }
Bombs with
Cannot create binary debugTest: binary with such a name already exists
k

Kris Wong

07/26/2019, 3:41 PM
have you tried this: binaries.framework { baseName = "my_framework" }
i've seen differences in the frameworks generated between the 2 different ways of setting the name
k

kpgalligan

07/26/2019, 3:43 PM
Yeah, the trick is also getting the output to be “test”, as in it’ll have the test entry point and test annotations “effect” on the output
l

louiscad

07/27/2019, 2:16 PM
You put the comment in the filename of the original, which is truncated on mobile. Can you fix it by editing @kpgalligan?
k

kpgalligan

07/27/2019, 9:08 PM
Comment from code…
“IN the 1.3.3x version of the MP gradle plugin we were able to create a test framework, which was necessary for including outside frameworks and some config stuff. Example here”
🙏 1
I have given up for today and am just making a separate project to run tests
Adding the following may add the code from Test annoations
Copy code
iosX64("ios") {
        binaries {
            framework{
                freeCompilerArgs.add("-tr")
            }
        }
    }