https://kotlinlang.org logo
#moko
Title
# moko
v

Vojtěch Hořánek

10/25/2023, 11:04 AM
Hello, I'm facing an issues when trying to copy resources to XCFramework. I added a build phase to Xcode based on this, but immediately as the gradle task runs, it deletes the
build/XCFrameworks
directory and it fails with
specifies directory '<...>/build/XCFrameworks' which doesn't exist
. I'm sure it is there before the task runs and that the path is correct.
a

alex009

10/26/2023, 8:14 AM
whet path to xcframeworks will be after
assembleXCFramework
run?
v

Vojtěch Hořánek

10/26/2023, 9:03 AM
I'm not sure what you mean by that?
a

alex009

10/26/2023, 9:16 AM
run gradle task
assembleXCFramework
and check in
build
gradle where located xcframeworks
v

Vojtěch Hořánek

10/26/2023, 10:00 AM
It is in the correct directory. I've filmed the mysterious disappearance, see XCFrameworks on the right
I've just manually ran the command that is run by the xcode build phase. With the variables exported like Xcode
a

alex009

10/26/2023, 10:05 AM
v

Vojtěch Hořánek

10/26/2023, 10:21 AM
🤔 The only real difference I see is that I'm using kotlin 1.9, could that be an issue? Android builds work fine and I'm able to use MR tho 😄
a

alex009

10/26/2023, 10:53 AM
create please small sample project where this issue can be reproduced and send it to me, i will check
3 Views