Thread
#multiplatform
    kpgalligan

    kpgalligan

    3 years ago
    Any thoughts on creating the same in the new plugin? Trying to sort it out looking at the plugin source. Current example…
    iosX64("ios"){
    
            binaries.test {
                framework("testFrameworkHello")
            }
    Bombs with
    Cannot create binary debugTest: binary with such a name already exists
    Kris Wong

    Kris Wong

    3 years ago
    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
    kpgalligan

    kpgalligan

    3 years ago
    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
    louiscad

    louiscad

    3 years ago
    You put the comment in the filename of the original, which is truncated on mobile. Can you fix it by editing @kpgalligan?
    kpgalligan

    kpgalligan

    3 years ago
    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”
    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
    iosX64("ios") {
            binaries {
                framework{
                    freeCompilerArgs.add("-tr")
                }
            }
        }