Hello!! I'm having a couple of issues with my KMP ...
# multiplatform
f
Hello!! I'm having a couple of issues with my KMP project: • First, I don't know why but it seems that in the GA runners, the Xcode Kotlin run script always skips the
embedAndSignAppleFrameworkForXcode
task. So, it fails when trying to build the app due to the framework is not found. However, it works perfectly fine locally. • Another issue comes with the multiplatform module, here I have a problem when running the task
allTests
to verify that everything is working fine. The android tests work fine but there is an issue with the iOS side where the
linkDebugTestIosSimulatorArm64
task, but I don't know exactly why. Also when I try to rebuild my project locally an error regarding
testClasses
does not allow the rebuild, but the app launches perfectly on the android devices.
Copy code
Cannot locate tasks that match ':infra:database:testClasses' as task 'testClasses' not found in project ':infra:database'.
Info: • Project and branch, and PR. • Issue with `embedAndSignAppleFrameworkForXcode`. • Issue with `allTests`. Can anyone help me with this please?
j
Just looking at your workflow briefly, I see you're setting up Gradle and Xcode, but not a JDK. In my workflow I just set up the JDK, but not Gradle or Xcode explicitly. The macOS runner comes with Xcode already and the project uses the Gradle wrapper, which I just validate for security. Those things might make a difference. I'm also using
macos-latest
, which is
macos-12
.
macos-13
is still beta. So not sure if that could also make a difference.
f
Thanks!! I'll try it ASAP and see if it helps. Thanks again.
👍 1
Hi again!! I've tried your recommendations with no luck 😞
j
I'd recommend looking at other KMP projects similar to your own, to see how they've successfully configured GitHub workflows.
👍 1