GithubHelp home page GithubHelp logo

iamalasca / sol Goto Github PK

View Code? Open in Web Editor NEW

This project forked from lu15gv/sol

0.0 1.0 0.0 234.5 MB

Size Optimizer Linker for iOS apps

Shell 9.60% C 33.70% Makefile 3.42% CMake 0.81% Swift 50.51% HTML 0.91% Ruby 1.05%

sol's Introduction

sol

Size Optimizer Linker for iOS apps

Based on Uber article: https://eng.uber.com/how-uber-deals-with-large-ios-app-size/

Medium article explaning it: https://engineering.rappi.com/ios-app-size-reduction-with-machine-outlining-5ef2c6b53237

How to use it:

Open the runme.sh that it’s in the Example directory with a text editor. Replace the section "Configure this". This is an example of the setup to optimize the Example project.

XCODE_VERSION="12_5"
LLVM_TOOLS="$BASEDIR/../LLVM_tools/XCODE_${XCODE_VERSION}"
XCODE_PATH="/Applications/Xcode.app"
WORKSPACE="$BASEDIR/JardinDeJuegos/JardinDeJuegos.xcworkspace"
SCHEME="JardinDeJuegos"
TARGET="JardinDeJuegos"
PROJECT="JardinDeJuegos"

There is an optional section where you can configure the following options: TARGETS_WHITE_LIST: this allows you to exclude some Targets to be linked. This is useful when you use CocoaPods and want to exclude the target Pods-<YourTargetName> JSON_SYMBOLS: this allows you to replace symbols. It’s useful when you have duplicated symbols and Xcode shows them as a warning. There’s a json example here https://github.com/lu15gv/sol/blob/main/Example/symbols_example.json

Now, you just need to open a terminal window and run sh <path to sol project>/Example/runme.sh

This will archive the project and then optimize it. You can find the archive by open Xcode > Window > Organizer > Archives. If you inspect the archive in finder (Show package contents), you can find the optimized version in Products/Applications.

Note: this was a POC that went well. For now it doesn't have tests and it's not very scalable. I hope to have a better version of this with tests and be more flexible soon.

sol's People

Contributors

lu15gv avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.