Bradleycorn
12/19/2024, 3:19 PMrusshwolf
12/19/2024, 4:33 PMBradleycorn
12/20/2024, 5:45 PMembedAndSignAppleFrameworkForXcode
gradle task), something doesn't work right and some files that xcode uses for indexing don't wind up in the right place. The work around is to add some additional code to that build phase script to "manually" copy the appropriate files to the right place. It looks like this:
cd "$SRCROOT/.."
./gradlew :shared:embedAndSignAppleFrameworkForXcode
# Add these lines to manually copy files for indexing
DERIVED_DATA_DIR=$(echo "${TARGET_BUILD_DIR}" | awk -F'/Build/' '{print $1}')
INDEXER_DATA_DIR=${DERIVED_DATA_DIR}/Index.noindex/Build/Products/Debug-$PLATFORM_NAME
mkdir -p $INDEXER_DATA_DIR
cp -R shared/build/xcode-frameworks/$CONFIGURATION/$SDK_NAME/* ${INDEXER_DATA_DIR}
Here's a link to the old thread:
https://kotlinlang.slack.com/archives/C3PQML5NU/p1709811731499599