Arkadii Ivanov
02/08/2022, 11:26 AMTask 'embedAndSignAppleFrameworkForXcode' not found in project 'sampletodo-darwin-umbrella'.I already checked KT-49637 and KT-47077 which look similar to my problem, but nothing was helpful. I'm using Kotlin 1.6.10 and I have
iosSimulatorArm64
target configured.
I have the following Java version installed locally: 15.0.6 (arm64) "Azul Systems, Inc." - "Zulu 15.38.17"
Also I noticed that there are Gradle tasks linkDebugFrameworkIosArm64
and linkDebugFrameworkIosX64
, but there is no Gradle task like linkDebugFrameworkIosSimulatorArm64
, only linkDebugTestIosSimulatorArm64
which seems irrelevant.
Running the Xcode in Rosetta mode fixes the build, but I would like avoid Rosetta if possible. Are there any ideas of how I could fix the issue?Artyom Degtyarev [JB]
02/08/2022, 12:12 PMlinkDebugFrameworkIosSimulatorArm64
is missing might mean that, while having this target declared, your project is still missing the framework declaration. Could you please check if its present there too?Arkadii Ivanov
02/08/2022, 12:27 PMios {}
, perhaps that is the issue and I should also explicitly declare it for iosSimulatorArm64
. I will try and post updates here soon.Artyom Degtyarev [JB]
02/08/2022, 12:28 PMArkadii Ivanov
02/08/2022, 3:30 PMJohn O'Reilly
02/08/2022, 3:35 PMArtyom Degtyarev [JB]
02/08/2022, 3:38 PMJohn O'Reilly
02/08/2022, 3:40 PMRick Clephas
02/08/2022, 3:51 PMiosSimulatorArm64
)
2. not configuring the framework (which was the case for @Arkadii Ivanov). I was faced with that after trying to migrate from CocoaPods to the embedAndSign task
3. trying to run the embedAndSign task outside the Xcode environment (which isn’t supported)
A lot of the confusion seems to be around the ios
shortcut and the “missing” iosSimulatorArm64
target.
But there should be a solution “in the works” 🙂: https://kotlinlang.slack.com/archives/C3PQML5NU/p1641129596025400?thread_ts=1640966595.016600&cid=C3PQML5NU
I personally just stopped using the shortcuts btw.Konstantin Tskhovrebov
02/08/2022, 5:45 PM