Skip to content

Commit 08ccf5c

Browse files
authored
Merge pull request #224 from Iterable/MOB-971-manual-install-fix
[MOB-971] Enable distribution toggle
2 parents 0b808a7 + 8c2ca2f commit 08ccf5c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scripts/build-target-module-framework.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,16 @@ UNIVERSAL_OUTPUTFOLDER=${BUILD_DIR}/${CONFIGURATION}-universal
1919
mkdir -p "${UNIVERSAL_OUTPUTFOLDER}"
2020

2121
# Step 1. Build Device and Simulator versions
22-
xcodebuild -target "${TARGET}" ONLY_ACTIVE_ARCH=NO -configuration ${CONFIGURATION} -sdk iphoneos BUILD_DIR="${BUILD_DIR}" BUILD_ROOT="${BUILD_DIR}" BITCODE_GENERATION_MODE=bitcode clean build
23-
xcodebuild -target "${TARGET}" -configuration ${CONFIGURATION} -sdk iphonesimulator ONLY_ACTIVE_ARCH=NO BUILD_DIR="${BUILD_DIR}" BUILD_ROOT="${BUILD_DIR}" BITCODE_GENERATION_MODE=bitcode clean build
22+
xcodebuild -target "${TARGET}" -configuration ${CONFIGURATION} ONLY_ACTIVE_ARCH=NO BUILD_LIBRARY_FOR_DISTRIBUTION=YES BUILD_DIR="${BUILD_DIR}" BUILD_ROOT="${BUILD_DIR}" BITCODE_GENERATION_MODE=bitcode clean build -sdk iphoneos
23+
xcodebuild -target "${TARGET}" -configuration ${CONFIGURATION} ONLY_ACTIVE_ARCH=NO BUILD_LIBRARY_FOR_DISTRIBUTION=YES BUILD_DIR="${BUILD_DIR}" BUILD_ROOT="${BUILD_DIR}" BITCODE_GENERATION_MODE=bitcode clean build -sdk iphonesimulator
2424

2525
# Step 2. Copy the framework structure (from iphoneos build) to the universal folder
2626
cp -R "${BUILD_DIR}/${CONFIGURATION}-iphoneos/${MODULE_NAME}.framework" "${UNIVERSAL_OUTPUTFOLDER}/"
2727

2828
# Step 3. Copy Swift modules from iphonesimulator build (if it exists) to the copied framework directory
2929
SIMULATOR_SWIFT_MODULES_DIR="${BUILD_DIR}/${CONFIGURATION}-iphonesimulator/${MODULE_NAME}.framework/Modules/${MODULE_NAME}.swiftmodule/."
3030
if [ -d "${SIMULATOR_SWIFT_MODULES_DIR}" ]; then
31-
cp -R "${SIMULATOR_SWIFT_MODULES_DIR}" "${UNIVERSAL_OUTPUTFOLDER}/${MODULE_NAME}.framework/Modules/${MODULE_NAME}.swiftmodule"
31+
cp -R "${SIMULATOR_SWIFT_MODULES_DIR}" "${UNIVERSAL_OUTPUTFOLDER}/${MODULE_NAME}.framework/Modules/${MODULE_NAME}.swiftmodule"
3232
fi
3333

3434
# Step 4. Create universal binary file using lipo and place the combined executable in the copied framework directory

0 commit comments

Comments
 (0)