This repository was archived by the owner on Jan 22, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed
Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change 488488 533818FC209757B900DE66CB /* Resources */,
489489 5338193220975A1200DE66CB /* Swiftlint */,
490490 5338193820975C2100DE66CB /* Embed Frameworks */,
491+ 5358556820AF8FB2009DE350 /* Framework Lipo */,
491492 );
492493 buildRules = (
493494 );
631632 shellPath = /bin/sh;
632633 shellScript = "if which swiftlint >/dev/null; then\n swiftlint\nelse\n echo \"warning: SwiftLint not installed, download from https://github.com/realm/SwiftLint\"\nfi";
633634 };
635+ 5358556820AF8FB2009DE350 /* Framework Lipo */ = {
636+ isa = PBXShellScriptBuildPhase;
637+ buildActionMask = 2147483647;
638+ files = (
639+ );
640+ inputPaths = (
641+ );
642+ name = "Framework Lipo";
643+ outputPaths = (
644+ );
645+ runOnlyForDeploymentPostprocessing = 0;
646+ shellPath = /bin/sh;
647+ shellScript = "APP_PATH=\"${TARGET_BUILD_DIR}/${WRAPPER_NAME}\"\n\n# This script loops through the frameworks embedded in the application and\n# removes unused architectures.\nfind \"$APP_PATH\" -name '*.framework' -type d | while read -r FRAMEWORK\ndo\nFRAMEWORK_EXECUTABLE_NAME=$(defaults read \"$FRAMEWORK/Info.plist\" CFBundleExecutable)\nFRAMEWORK_EXECUTABLE_PATH=\"$FRAMEWORK/$FRAMEWORK_EXECUTABLE_NAME\"\necho \"Executable is $FRAMEWORK_EXECUTABLE_PATH\"\n\nEXTRACTED_ARCHS=()\n\nfor ARCH in $ARCHS\ndo\necho \"Extracting $ARCH from $FRAMEWORK_EXECUTABLE_NAME\"\nlipo -extract \"$ARCH\" \"$FRAMEWORK_EXECUTABLE_PATH\" -o \"$FRAMEWORK_EXECUTABLE_PATH-$ARCH\"\nEXTRACTED_ARCHS+=(\"$FRAMEWORK_EXECUTABLE_PATH-$ARCH\")\ndone\n\necho \"Merging extracted architectures: ${ARCHS}\"\nlipo -o \"$FRAMEWORK_EXECUTABLE_PATH-merged\" -create \"${EXTRACTED_ARCHS[@]}\"\nrm \"${EXTRACTED_ARCHS[@]}\"\n\necho \"Replacing original executable with thinned version\"\nrm \"$FRAMEWORK_EXECUTABLE_PATH\"\nmv \"$FRAMEWORK_EXECUTABLE_PATH-merged\" \"$FRAMEWORK_EXECUTABLE_PATH\"\n\ndone";
648+ };
634649/* End PBXShellScriptBuildPhase section */
635650
636651/* Begin PBXSourcesBuildPhase section */
You can’t perform that action at this time.
0 commit comments