Skip to content

Commit 95b0663

Browse files
committed
add run script to copy the swift module from build directory to specific path in MixLibraryOne
1 parent baca2a5 commit 95b0663

16 files changed

+1
-894
lines changed

.DS_Store

0 Bytes
Binary file not shown.
Binary file not shown.
Binary file not shown.
396 Bytes
Binary file not shown.
15.3 KB
Binary file not shown.

PlayWithLibraries.xcodeproj/project.pbxproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -869,7 +869,7 @@
869869
);
870870
runOnlyForDeploymentPostprocessing = 0;
871871
shellPath = /bin/sh;
872-
shellScript = "# target directory is Project root directory\ntarget_dir=${SRCROOT}/include/\n\n# Ensure the target include path exists\nmkdir -p ${target_dir}\n\n# Copy any file that looks like a Swift generated header to the include path\ncp ${DERIVED_SOURCES_DIR}/*-Swift.h ${target_dir}\n";
872+
shellScript = "# target mode\nDEVICE_OS=\"iphoneos\"\nDEVICE_SIMULATOR=\"iphonesimulator\"\n\n# target directory is Project root directory\ntarget_dir=${SRCROOT}/include/\ntarget_simulator_dir=${target_dir}/${DEVICE_SIMULATOR}/\ntarget_device_dir=${target_dir}/${DEVICE_OS}/\n\n# Ensure the target include path exists\nmkdir -p ${target_dir}\nmkdir -p ${target_simulator_dir}\nmkdir -p ${target_device_dir}\n\n# Copy any file that looks like a Swift generated header to the include path\ncp ${DERIVED_SOURCES_DIR}/*-Swift.h ${target_dir}\n\n# Copy Swift modules from iphonesimulator build (if it exists) to the copied target directory\nSIMULATOR_SWIFT_MODULES_DIR=\"${BUILD_DIR}/${CONFIGURATION}-iphonesimulator/${PRODUCT_MODULE_NAME}.swiftmodule\"\n\nif [ -d \"${SIMULATOR_SWIFT_MODULES_DIR}\" ]; then\n cp -R \"${SIMULATOR_SWIFT_MODULES_DIR}\" \"${target_simulator_dir}\"\nfi\n\n# copy swift modules from iPhones device build (if it exists) to the copied target directory\nDEVICE_SWIFT_MODULES_DIR=\"${BUILD_DIR}/${CONFIGURATION}-${DEVICE_OS}/${PRODUCT_MODULE_NAME}.swiftmodule\"\n\nif [ -d \"${DEVICE_SWIFT_MODULES_DIR}\" ]; then\n cp -R \"${DEVICE_SWIFT_MODULES_DIR}\" \"${target_device_dir}\"\nfi\n\n";
873873
};
874874
559724B5239E8F1700688A06 /* ShellScript */ = {
875875
isa = PBXShellScriptBuildPhase;

include/.DS_Store

-6 KB
Binary file not shown.

include/PlayWithLibraries-Swift.h

Lines changed: 0 additions & 253 deletions
This file was deleted.

0 commit comments

Comments
 (0)