I have an app with two targets. Some localizations supported in one target is not supported in the other. Since in Xcode the localizations are specified on the project level and not on the target level, I need to know how to remove certain languages from each target.

I have tried adding build phase script

rm -r "${TARGET_BUILD_DIR}/${PRODUCT_NAME}.app/fr.lproj"

but there is no effect. I still see the french localizations when the device is set to french (French should not be supported in this target), I want it to fall back to English localization. Is it possible?

Help would be appreciated.

有帮助吗?

解决方案

You'll need to both clean in Xcode and remove the application from the target device for the change to take effect. Installing through Xcode just copies the new resources over the existing old resources, it doesn't ever delete anything.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top