https://kotlinlang.org logo
Title
w

wenjie.lu

04/16/2023, 9:05 AM
hi, i first run
compose-multiplatform-ios-android-template
iosapp, but error: export XCODE_APP_SUPPORT_DIR\=/Applications/Xcode.app/Contents/Developer/Library/Xcode export XCODE_PRODUCT_BUILD_VERSION\=14B47b export XCODE_VERSION_ACTUAL\=1410 export XCODE_VERSION_MAJOR\=1400 export XCODE_VERSION_MINOR\=1410 export XPCSERVICES_FOLDER_PATH\=/XPCServices export YACC\=yacc export arch\=undefined_arch export variant\=normal /bin/sh -c /Users/luwenjie/Documents/GitHub/compose-multiplatform-ios-android-template/build/ios/Pods.build/Debug-iphonesimulator/shared.build/Script-BEA8885189D408D600647BDC228A6A20.sh REPO_ROOT="$PODS_TARGET_SRCROOT" "$REPO_ROOT/../gradlew" -p "$REPO_ROOT" $KOTLIN_PROJECT_PATH:syncFramework -Pkotlin.native.cocoapods.platform=$PLATFORM_NAME -Pkotlin.native.cocoapods.archs="$ARCHS" -Pkotlin.native.cocoapods.configuration="$CONFIGURATION" Error occurred during initialization of VM Command PhaseScriptExecution failed with a nonzero exit code * BUILD FAILED * The following build commands failed: PhaseScriptExecution [CP-User]\ Build\ shared /Users/luwenjie/Documents/GitHub/compose-multiplatform-ios-android-template/build/ios/Pods.build/Debug-iphonesimulator/shared.build/Script-BEA8885189D408D600647BDC228A6A20.sh (in target 'shared' from project 'Pods') (1 failure) warning: Run script build phase '[CP-User] Build shared' 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 'shared' from project 'Pods')
i run /build/ios/Pods.build/Debug-iphonesimulator/shared.build/scriptxx.sh then get :
line 8: /../gradlew: No such file or directory
i print
$PODS_TARGET_SRCROOT
, it is empty
d

Dima Avdeev

04/16/2023, 7:54 PM
1. You can run this project in the latest stable AndroidStiudio with this plugin
2. You need cocoapods to be installed on your environment
Another useful information you can find on README.md in this template
And also I want to mention a suggestion about questions with logs, like you post. There is a good practice to write just a text description in the first message and put all long logs with additional information inside the thread for this message. There is a special symbol :thread-please: - that means a suggestion to put part of this long message inside the thread. It will help to make chat history easier to read for all users.
w

wenjie.lu

04/17/2023, 2:42 AM
thanks, i see