Removing unused lproj languages โ€‹โ€‹from xcode build during build?

I was looking for a script that will remove unwanted languages โ€‹โ€‹from a project during build ... Without going into details. I have a project that has subprojects, some of these subprojects have localizations that I donโ€™t want to send with (as Apple looks in lproj folders to indicate which languages โ€‹โ€‹you support).

What I would like is a script that I can run and say that it only has languages โ€‹โ€‹x or removes languages โ€‹โ€‹x and then creates ...

Any help?

+4
source share
1 answer

If your unwanted localizations come from using CocoaPods, install this CocoaPods plugin:

https://github.com/dtorres/cocoapods-prune-localizations

Worked like a charm for me.

Otherwise, you can extract the code from this plugin to complete your task.

+1
source

All Articles