Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parse for iOS v1.8.0 breaks localization #16

Closed
yonahforst opened this issue Aug 14, 2015 · 10 comments
Closed

Parse for iOS v1.8.0 breaks localization #16

yonahforst opened this issue Aug 14, 2015 · 10 comments
Milestone

Comments

@yonahforst
Copy link

After updating from parse v1.7.5.3 to v1.8.0 via cocoapods, my localizations stopped working.

I'm guessing it's because v1.8.0 now has it's own Localizable.strings file, which overrides the one my app was previously using.

Rolling back to v1.7.5.3 and cleaning my build folder restored my localizations.

@nlutsenko
Copy link
Contributor

Hey @joshblour could you confirm whether you are usIng frameworks or static libraries for your Cocoapods?
I think what happens is that we are preparing our Localizations.strings for framework deployment, but if it's being used as a static library - Cocoapods overwrites the localizations in your project.

@nlutsenko nlutsenko self-assigned this Aug 14, 2015
@nlutsenko nlutsenko added this to the 1.8.1 milestone Aug 14, 2015
@natanrolnik
Copy link
Contributor

I'm experiencing this as well with 1.8.0. I'm glad I saw this before I needed to start looking for the reason.

@alistra
Copy link

alistra commented Aug 17, 2015

Experiencing the same thing, using static libraries because other vendors not yet support framworks.

Please rename the file so it won't collide.

@ghugues
Copy link

ghugues commented Aug 17, 2015

Experiencing this as well (using static library). Adding the following Run Script Phase, solves the problem :
rm -rf "$TARGET_BUILD_DIR/$FULL_PRODUCT_NAME/Localizable.strings"

@umekun123
Copy link

I am also having this issue after updating..

@nlutsenko
Copy link
Contributor

Hey everyone,

The fix is already checked into master and will be available with the next version of the SDK (1.8.1).
If you want to use it right now - you can simply change your Podfile to reference master by adding:
pod 'Parse', :git => 'https://github.com/ParsePlatform/Parse-SDK-iOS-OSX.git'

@wouterds
Copy link

Localization still doesn't work for me though (tested with 1.8.1).

image
image 2

The only thing that did work for me until now is what @ghugues suggested by adding a build phase run script rm -rf "$TARGET_BUILD_DIR/$FULL_PRODUCT_NAME/Localizable.strings"

@nlutsenko
Copy link
Contributor

Hmm... I am actually amazed by this, since I've tested it locally, as well as it should work since there are no more Localizable.strings in Parse pod.

I suggest trying cleaning pod cache in your project directory as well as maybe running pod update

@ghugues
Copy link

ghugues commented Aug 23, 2015

Might be a cache problem indeed. Xcode doesn't remove the previous build in the cache directory when making a new one. The consequence is that new files are added but old files are never removed.
Try removing the DerivedData directory (first thing to try when you have problems with Xcode...) :
rm -rf ~/Library/Developer/Xcode/DerivedData (I suggest quitting Xcode first)

@wouterds
Copy link

Aha, rm -rf ~/Library/Developer/Xcode/DerivedData fixed it. Thanks!

On 23 Aug 2015, at 22:25, ghugues notifications@github.com wrote:

Might be a cache problem indeed. Xcode doesn't remove the previous build in the cache directory when making a new one. The consequence is that new files are added but old files are never removed.
Try removing the DerivedData directory (first thing to try when you have problems with Xcode...) :
rm -rf ~/Library/Developer/Xcode/DerivedData


Reply to this email directly or view it on GitHub #16 (comment).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants