Remove unnecessary frameworks in Xcode project

2.6k views Asked by At

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?

3

There are 3 answers

0
jbat100 On BEST ANSWER

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.

0
AudioBubble On

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

1
Tendulkar On

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