https://kotlinlang.org logo
b

Bradleycorn

04/29/2022, 2:52 PM
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?
d

David Nedrow

04/29/2022, 6:20 PM
What’s in the XCFrameworks build folder?
b

Bradleycorn

04/29/2022, 7:28 PM
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.
j

John O'Reilly

04/30/2022, 7:59 AM
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

04/30/2022, 12:08 PM
Thanks @John O'Reilly I’ll give that a try.