Skip to content

Commit 298cd6b

Browse files
committed
Add some extra logging to the provisional/preliminary version of build_frameworks.sh
1 parent 5b60eea commit 298cd6b

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

ci/build_frameworks.sh

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,10 @@ else
2121
RUST_CONFIGURATION_FLAG="--release"
2222
fi
2323

24-
declare -a destinationNames=( "iOS Simulator" )
25-
declare -a lipoDirectoryNames=( "iphonesimulator" )
24+
XCFRAMEWORK_INPUT_FLAGS=""
25+
26+
declare -a destinationNames=( "iOS Simulator" "iOS" )
27+
declare -a lipoDirectoryNames=( "iphonesimulator" "iphoneos" )
2628

2729
declare archiveCount=${#lipoDirectoryNames[@]}
2830
for (( i=0; i<$archiveCount; i++ ));
@@ -39,10 +41,12 @@ do
3941
echo "Current lipo input directory: ${CURRENT_LIPO_DIRECTORY_PATH}" >> $BUILD_LOG_PATH
4042
echo "Current xcarchive archive directory: ${CURRENT_ARCHIVE_PATH}" >> $BUILD_LOG_PATH
4143

42-
pushd "${BASEDIR}/LDKSwift"
43-
4444
mkdir -p "${CURRENT_ARCHIVE_DIRECTORY}"
45-
xcodebuild archive -scheme LDKSwift -destination "generic/platform=${CURRENT_DESTINATION_NAME}" -archivePath "${CURRENT_ARCHIVE_PATH}" ENABLE_BITCODE=NO SKIP_INSTALL=NO BUILD_LIBRARY_FOR_DISTRIBUTION=YES
4645

46+
pushd "${BASEDIR}/LDKSwift"
47+
xcodebuild archive -scheme LDKSwift -destination "generic/platform=${CURRENT_DESTINATION_NAME}" -archivePath "${CURRENT_ARCHIVE_PATH}" ENABLE_BITCODE=NO SKIP_INSTALL=NO BUILD_LIBRARY_FOR_DISTRIBUTION=YES
4748
popd
49+
50+
XCFRAMEWORK_INPUT_FLAGS="${XCFRAMEWORK_INPUT_FLAGS}-framework ${CURRENT_ARCHIVE_PATH}.xcarchive/Products/Library/Frameworks/LDKSwift.framework "
51+
echo "Current xcframework flags: ${XCFRAMEWORK_INPUT_FLAGS}" >> $BUILD_LOG_PATH
4852
done

0 commit comments

Comments
 (0)