Thread
#multiplatform
    b

    Bradleycorn

    4 months ago
    Hi everyone! Ii have a KMP project and I’m trying to get it to assemble an XCFramework for ios. I thought I had everything setup right, but when I run the
    assembleXCFramework
    task, I get an error:
    the path does not point to a valid framework: /Users/my.user/dev/wager-utils/build/fat-framework/debug/wager_utils/iosSimulator/wager_utils.framework
    And in looking in the build folder, indeed that path is not correct. Specifically there is no
    wager_utils
    folder. Instead the folder is
    wager-utils
    (dash instead of underscore … see screenshot below). Any idea how that path gets generated, or how I can control it to fix this issue?
    David Nedrow

    David Nedrow

    4 months ago
    What’s in the XCFrameworks build folder?
    b

    Bradleycorn

    4 months ago
    hrm good quesiton. I actually got things working by renaming the whole project (from “wager-utils” to “wagerutils”). I don’t recall the exact contents/file names in the XCFrameworks folder, but it did have frameworks in there.
    John O'Reilly

    John O'Reilly

    4 months ago
    I saw same error here and for some reason in my case it was resolved by also passing in package name in to
    XCFramework
    constructor
    b

    Bradleycorn

    4 months ago
    Thanks @John O'Reilly I’ll give that a try.