The following build commands failed: PhaseScriptE...
# multiplatform
r
The following build commands failed: PhaseScriptExecution Compile\ Kotlin\ Framework /Users/js/Documents/AppName/build/ios/iosApp.build/Debug-iphonesimulator/iosApp.build/Script-F36B1CEB2AD83DDC00CB74D5.sh (in target 'iosApp' from project 'iosApp') (1 failure) warning: Run script build phase 'Compile Kotlin Framework' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'iosApp' from project 'iosApp') This error occurs when i try to run the IOS app using Android Studio. _________ 'embedAndSign' task can not be used in a project with dependencies to pods. This error occurs when i try to run that Same IOS app using Xcode.
p
Not an expert but the error is telling you clearly what is going on. You can not use embeddAndSign Gradle task. If you use cocoapods you have to use the gradle tasks from the cocoapods gradle plugin to create the .podFramework file.
r
You are a expert since you answer my issue.
Can you please tell me to what to do. I am newbie to KMP.
p
Research on how to integrate KMP using the cocoapods gradle plugin. There is a section in the official docs that talks about that. But also if you search in this channel you will find some threads talking about it. I havent used cocoapods in quite some time so I can't answer right off the top of my head
417 Views