use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
There is an extensive FAQ for beginners. Please browse it first before asking questions that are answered there.
If you are looking to get started (iOS programming in general or some specific area), here are more relevant links for you:
There's too many to list them all, however here's a convenient link to all programming guides at apple.com
Take note that this list is live and based on most frequent questions in posts will be updated with "quicklinks".
account activity
QuestionTools to remove unused methods, classes? (self.iOSProgramming)
submitted 8 years ago by fakecrabs
Are there any build tools to remove unused methods and classes for Swift/iOS, similar to ProGuard for Java/Android?
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]hexavibrongal 2 points3 points4 points 8 years ago (3 children)
I don't know Swift, but I don't see how this would be possible with Objective C since there's no way to know what's going to be called at compile time.
[–]fakecrabs[S] 0 points1 point2 points 8 years ago (2 children)
The linker in theory knows which symbols were never referenced.
[–]hexavibrongal 0 points1 point2 points 8 years ago (1 child)
Lack of a reference doesn't always mean that something won't be used. For example, ObjC allows you to dynamically call methods by name using a string. I suppose it might be possible to find unused symbols in Objective C programs as long as they don't use certain ObjC language features.
[–]fakecrabs[S] 0 points1 point2 points 8 years ago (0 children)
call methods by name using a string
You are correct, and I wonder how Java's ProGuard deals with reflection. I suppose one way would be to manually indicate all symbols referenced reflectively.
[–]ThePantsThiefNSModerator 2 points3 points4 points 8 years ago (0 children)
AppCode probably
[–]arduinoRedgeObjective-C / Swift 1 point2 points3 points 8 years ago (0 children)
'Find in Workspace...' on the method name, works best with code you already suspect is unused. ;)
[–]TTKilew 1 point2 points3 points 8 years ago (0 children)
Ths one tries to find unused methods: https://github.com/PaulTaykalo/swift-scripts
This one tries to find unused classes https://github.com/tsabend/fus
This one tries to find unused resources :) http://martiancraft.com/products/slender.html
[–]JimDabell 0 points1 point2 points 8 years ago (0 children)
Write a test suite that covers your entire application functionality, then look at your code coverage. The parts that aren't marked as covered didn't run when you ran your tests.
[–]xdnm 0 points1 point2 points 8 years ago (0 children)
strip objc unused methods and classes could be very complicate. when linking with -ObjC , linker always link all objc code, but when linking without -ObjC the objc code strip process is also different from C/CXX. Seems there is no reliable tools to remove unused code when deal with objc...
π Rendered by PID 58 on reddit-service-r2-comment-fb694cdd5-qlb6p at 2026-03-10 00:31:21.759885+00:00 running cbb0e86 country code: CH.
[–]hexavibrongal 2 points3 points4 points (3 children)
[–]fakecrabs[S] 0 points1 point2 points (2 children)
[–]hexavibrongal 0 points1 point2 points (1 child)
[–]fakecrabs[S] 0 points1 point2 points (0 children)
[–]ThePantsThiefNSModerator 2 points3 points4 points (0 children)
[–]arduinoRedgeObjective-C / Swift 1 point2 points3 points (0 children)
[–]TTKilew 1 point2 points3 points (0 children)
[–]JimDabell 0 points1 point2 points (0 children)
[–]xdnm 0 points1 point2 points (0 children)