Conversation
…dle causing applications to report possibly unsupported languages.
@Brok3nHalo do you have |
@yas375 static libraries, I actually didn't know about use_frameworks! but we unfortunately are using some pods that aren't compatible with it right now and it looks like an all or nothing deal. Researching into the language issue, I found the official recommendation is to use resource_bundles instead of resources unless you specifically need resources added to the main bundle because of this as well as potential for name collisions with other resources and optimization issues as noted at http://guides.cocoapods.org/syntax/podspec.html#resources |
@Brok3nHalo what you are saying makes sense. I agree we should adopt I'm a little skeptical about having different code paths (
I'm not 100% sure if this is possible, but I hope so :) Also, to feel myself more confident when accepting changes like this I'd like to add tests for integration of the library using various methods. I'm going to do this first and then let's return to this pull request. Hopefully I'll have some time to do this over the next week or so. |
@Brok3nHalo I have added tests I was talking about - #221. I also have tried locally to apply your changes and run these new integration tests and everything seems to be good 👍 I'd like to clarify a couple things.
|
Awesome!
mattt@eea311a attempted the same thing but I'm guessing didn't work because it didn't modify the code to actually use the bundle. My change only effects when used from a pod and not when it's used as a static library or linked directly so the current additional instructions for removing the extra languages still apply in those cases. With a few modifications it could always use the bundle even in those scenarios but I didn't want to mess with the project file for scenarios I wasn't using myself in case it caused any unforeseen issues with build settings. |
@Brok3nHalo I'm sorry for the delay with this on my side. I think I'll get back to this after WWDC week. I'm still a little concerned about using different ways to access NSBundle depending on setup. Ideally I'd like to have same code path while the lib can be integrated with different methods. I was thinking that maybe we can create a bundle with localizations inside the lib itself instead of just having localization files. And then we can keep using |
This proves the issue described in #219.
Subsumed by #229. |
Fixed issue where pod installed the supported languages into main bundle causing applications to report possibly unsupported languages.