Does anyone have a solution to this problem? I've ...
# multiplatform
n
Does anyone have a solution to this problem? I've seen multiple people ask but no response from anyone. I get this error when trying to build from XCode:
Copy code
Task 'embedAndSignAppleFrameworkForXcode' not found in project ':shared'.
I'm running
./gradlew :shared:embedAndSignAppleFrameworkForXcode
from XCode 13.1 on an M1 mac. When I'm on Kotlin 1.5.21, it finds the task and fails because 1.5.21 isn't compatible with Apple Silicon. When I upgrade to Kotlin 1.5.31, I get the above error. I've double-checked in the log, and all the required environment variables are set by XCode before
./gradlew
is called.
a
Hello! I’ve seen similar error in this YT issue: https://youtrack.jetbrains.com/issue/KT-50093. Have you tried to use Kotlin 1.6.0? According to the information from the ticket above, this version should work correctly.
n
Thank you! I'm using compose, and the live versions aren't compatible with 1.6, but I'll try it with compose 1.1.0-beta4 and follow up here.
I'm still seeing the same thing in Kotlin 1.6.
When I log debug information, I'm not seeing any of the warnings or debug logs from this file, which suggests to me that it's aborting in one of the places where it just returns null: https://github.com/JetBrains/kotlin/blob/de4c2d35ab888addb6c3d2b6b7345a3618486f43/[…]org/jetbrains/kotlin/gradle/plugin/mpp/apple/AppleXcodeTasks.kt
a
This is an interesting case. If you have
iosSimulatorArm64
target set at your Gradle script and everything still isn’t working, consider filing an issue at kotl.in/issue with a sample project and information about versions of all IDEs and Gradle plugins that you use in it.
j
@nschulzke I recently got an M1 laptop and was seeing same thing. I also can't move to 1.6 yet. What was interesting was that if I created new KMM project (using plugin) it worked ok (after enabling use of
iosSimulatorArm64
which is currently commented out when you create new project)....and if I used XCode project that it created in my repo then it also worked...but haven't been able to figure out difference yet.
this was project I just updated https://github.com/joreilly/StarWars
also had to change
shared
module
build.gradle.kts
of course to include
iosSimulatorArm64
a
In some cases the problem was caused by wrong JDK being used. I can’t find any references right now, but could you please check which jdk do you use in your Xcode scripts?
j
I believe same JDK should have been used by both XCode projects (original one and one created using plugin)
in any case I think Zulu arm64 JDK is only one I have installed