Hello, I’m trying to run KMP project for the first...
# compose-ios
m
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
Copy code
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
@Dima Avdeev
d
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
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.