alicialy / ltappthinningscript Goto Github PK
View Code? Open in Web Editor NEWIt's a script to find unused OC class in iOS
It's a script to find unused OC class in iOS
To prove your script's integrity, i create a very simple swift project with two function, one is unused, one is called in viewDidLoad function.
I don't see too much differences from the output of result:
node linkmap_ext.js /Users/jacob/Library/Developer/Xcode/DerivedData/jkdf-bctycnfuafksiycxbakxucloeviq/Build/Intermediates/jkdf.build/Debug-iphonesimulator/jkdf.build/jkdf-LinkMap-normal-x86_64.txt -hu
AppDelegate.o 15.00KB
ViewController.o 2.67KB
jkdf.app.xcent 378B
libswiftCore.dylib 312B
libobjc.dylib 144B
libswiftFoundation.dylib 72B
libswiftObjectiveC.dylib 24B
UIKit 24B
libSystem.dylib 24B
Foundation 24B
linker synthesized 0B
LMXMN024:LTAppThinningScript jacob$ node linkmap_ext.js /Users/jacob/Library/Developer/Xcode/DerivedData/jkdf-bctycnfuafksiycxbakxucloeviq/Build/Intermediates/jkdf.build/Debug-iphonesimulator/jkdf.build/jkdf-LinkMap-normal-x86_64.txt -hu
AppDelegate.o 15.00KB
ViewController.o 3.26KB
libswiftCore.dylib 408B
jkdf.app.xcent 378B
libobjc.dylib 144B
libswiftFoundation.dylib 72B
libSystem.dylib 24B
libswiftSwiftOnoneSupport.dylib 24B
libswiftObjectiveC.dylib 24B
Foundation 24B
UIKit 24B
linker synthesized 0B
ViewController.o 2.67KB
increase to
ViewController.o 3.26KB
but which function is unused? should i look into the linkMap again?
Your help is much appriciated.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.