Skip to content

Commit

Permalink
Fixed aggregate build scripts.
Browse files Browse the repository at this point in the history
  • Loading branch information
ganttastic committed Nov 25, 2019
1 parent eb8e55d commit ab55606
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions DASHEmbed/Framework/DASH.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
//

#import <Foundation/Foundation.h>
@import UserNotifications;

NS_ASSUME_NONNULL_BEGIN

Expand Down
2 changes: 1 addition & 1 deletion DASHEmbedDemo.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,7 @@
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "set -e\nBUILD_PATH=\"${SRCROOT}/build\"\nDEPLOYMENT_PATH=\"${SRCROOT}\"\nTARGET_NAME=\"DASHEmbed\"\nFRAMEWORK_NAME=\"DASHEmbed\"\nFRAMEWORK=\"${FRAMEWORK_NAME}.framework\"\nFRAMEWORK_PATH=\"${DEPLOYMENT_PATH}/${FRAMEWORK}\"\n\n# clean the build folder\nif [ -d \"${BUILD_PATH}\" ]; then\nrm -rf \"${BUILD_PATH}\"\nfi\n\n# build the framework for every architecture using xcodebuild\nxcodebuild BITCODE_GENERATION_MODE=bitcode -target \"${TARGET_NAME}\" -configuration Release \\\n-arch arm64 -arch armv7 -arch armv7s \\\nonly_active_arch=no defines_module=yes -sdk \"iphoneos\"\n\nxcodebuild BITCODE_GENERATION_MODE=bitcode -target \"${TARGET_NAME}\" -configuration Release \\\n-arch x86_64 -arch i386 \\\nonly_active_arch=no defines_module=yes -sdk \"iphonesimulator\"\n\n# remove previous version from the deployment path\nif [ -d \"${FRAMEWORK_PATH}\" ]; then\nrm -rf \"${FRAMEWORK_PATH}\"\nfi\n\n# copy freshly built version to the deployment path\ncp -r \"${BUILD_PATH}/Release-iphoneos/${FRAMEWORK}\" \"${FRAMEWORK_PATH}\"\n\n# merge all the slices and create the fat framework\nlipo -create -output \"${FRAMEWORK_PATH}/${FRAMEWORK_NAME}\" \\\n\"${BUILD_PATH}/Release-iphoneos/${FRAMEWORK}/${FRAMEWORK_NAME}\" \\\n\"${BUILD_PATH}/Release-iphonesimulator/${FRAMEWORK}/${FRAMEWORK_NAME}\"\n\n# copy Swift module mappings for the simulator\ncp -r \"${BUILD_PATH}/Release-iphonesimulator/${FRAMEWORK}/Modules/${FRAMEWORK_NAME}.swiftmodule/\" \\\n\"${FRAMEWORK_PATH}/Modules/${FRAMEWORK_NAME}.swiftmodule\"\n\n# clean up the build folder again\nif [ -d \"${BUILD_PATH}\" ]; then\nrm -rf \"${BUILD_PATH}\"\nfi\n";
shellScript = "set -e\nBUILD_PATH=\"${SRCROOT}/build\"\nDEPLOYMENT_PATH=\"${SRCROOT}\"\nTARGET_NAME=\"DASHEmbed\"\nFRAMEWORK_NAME=\"DASHEmbed\"\nFRAMEWORK=\"${FRAMEWORK_NAME}.framework\"\nFRAMEWORK_PATH=\"${DEPLOYMENT_PATH}/${FRAMEWORK}\"\n\n# clean the build folder\nif [ -d \"${BUILD_PATH}\" ]; then\nrm -rf \"${BUILD_PATH}\"\nfi\n\n# build the framework for every architecture using xcodebuild\nxcodebuild BITCODE_GENERATION_MODE=bitcode -target \"${TARGET_NAME}\" -configuration Release \\\n-arch arm64 -arch armv7 -arch armv7s \\\nonly_active_arch=no defines_module=yes -sdk \"iphoneos\"\n\nxcodebuild BITCODE_GENERATION_MODE=bitcode -target \"${TARGET_NAME}\" -configuration Release \\\n-arch x86_64 -arch i386 \\\nonly_active_arch=no defines_module=yes -sdk \"iphonesimulator\"\n\n# remove previous version from the deployment path\nif [ -d \"${FRAMEWORK_PATH}\" ]; then\nrm -rf \"${FRAMEWORK_PATH}\"\nfi\n\n# copy freshly built version to the deployment path\ncp -r \"${BUILD_PATH}/Release-iphoneos/${FRAMEWORK}\" \"${FRAMEWORK_PATH}\"\n\n# merge all the slices and create the fat framework\nlipo -create -output \"${FRAMEWORK_PATH}/${FRAMEWORK_NAME}\" \\\n\"${BUILD_PATH}/Release-iphoneos/${FRAMEWORK}/${FRAMEWORK_NAME}\" \\\n\"${BUILD_PATH}/Release-iphonesimulator/${FRAMEWORK}/${FRAMEWORK_NAME}\"\n\n# clean up the build folder again\nif [ -d \"${BUILD_PATH}\" ]; then\nrm -rf \"${BUILD_PATH}\"\nfi\n";
};
94DB7D2EF496522D3B5C936C /* [CP] Embed Pods Frameworks */ = {
isa = PBXShellScriptBuildPhase;
Expand Down

0 comments on commit ab55606

Please sign in to comment.