https://kotlinlang.org logo
Title
m

Mohamed Almahdy

03/11/2023, 11:12 AM
Hello, I’m trying to run KMP project for the first time It runs in Android but when I run the iOS the build fails with this message Any help will be appreciated This is the GitHub repo for the project: https://github.com/eng-mohamedalmahdy/Masarify
The following build commands failed:
	PhaseScriptExecution [CP-User]\ Build\ shared ...build/ios/Pods.build/Debug-iphonesimulator/shared.build/Script-BEA8885189D408D600647BDC228A6A20.sh (in target 'shared' from project 'Pods')
a

Alexander Maryanovsky

03/11/2023, 11:22 AM
@Dima Avdeev
d

Dima Avdeev

03/12/2023, 9:49 AM
Hello, can you please try to use this template and follow instructions in README: https://github.com/JetBrains/compose-multiplatform-template If this template project works on your side, then you can adopt your current project to the same structure.
l

Landry Norris

03/14/2023, 3:05 PM
Note that the error message in the OP is XCode telling us that the gradle task failed. There should be an error somewhere else in the wall of text that xcode puts out that comes from gradle. This will describe the real problem. The most common are: missing
kotlin.native.cachekind=none
in the gradle.properties, using a dynamic cocoapod with public composables (currently leads to linker errors), or general syntax errors.