3

I have been writing iOS applications and completed a project with a lot of frameworks. Now I am using it as a template to start a new project that requires less functionality and hence I should be able to reduce the frameworks required, and hopefully reduce build time and size of project.

Question: Is there a quick way to check which frameworks are no longer required within the project?

Cœur
  • 37,241
  • 25
  • 195
  • 267
topace
  • 1,791
  • 3
  • 17
  • 23
  • 3
    duplicate: http://stackoverflow.com/questions/7847558/xcode-removing-unused-frameworks/7847881#7847881 – justin Nov 07 '11 at 09:44
  • Possible duplicate of [Removing unused frameworks in Xcode?](https://stackoverflow.com/questions/7847558/removing-unused-frameworks-in-xcode) – Cœur Jul 30 '19 at 06:01

3 Answers3

5

I don't think there is a better way than removing the framework, building, and seeing if there are link errors. You might be able to write a bash script but it's probably more work than it's worth.

jbat100
  • 16,757
  • 4
  • 45
  • 70
2

Sadly not. The quick way is to remove all the frameworks, look for build errors and add back in the necessary frameworks.

-1

search in the project files(cmd+shift+F).i.e whether you are imported any files related to the frameworks.

Tendulkar
  • 5,550
  • 2
  • 27
  • 53
  • there are lots of calls that need no import of the library, so this (i just tried it) makes a mess – NikkyD Sep 21 '15 at 12:53