question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

iOS XCode - Localization Errors involving "CopyStringsFile" & "pgm_Localizable.strings"

See original GitHub issue

Problem or Bug Report: iOS XCode - Localization Errors involving “CopyStringsFile” & “pgm_Localizable.strings” This issue started very recently, probably due to some localization update. To ensure that the bug is from this plugin, I created a new project with latest Cordova, iOS Platform. The error is definitely happening due to the plugin. Any help much appreciated as I am not able to go around this problem and can’t compile any apps with the plugin.

If you choose ‘problem or bug report’, please select OS: (check one with “x”)

  • Android
  • iOS

cordova information: (run $> cordova plugin list)

Using cordova-fetch for cordova-ios@latest
Adding ios project...
Creating Cordova project for the iOS platform:
	Path: platforms/ios
	Package: com.at1go.Okmaps
	Name: OK Maps
iOS project created with cordova-ios@4.5.4
Installed platforms:
  ios 4.5.4

+ cordova@8.0.0

No plugins added. Use `cordova plugin add <plugin>`.

Successfully installed cocoapods-1.4.0
Setup completed

cordova plugin add cordova-plugin-googlemaps --variable API_KEY_FOR_ANDROID=“XXX” --variable API_KEY_FOR_IOS=“XXX”

Installing "cordova-plugin-googlemaps" for ios

apple-ios version check failed 
("/Users/p/Dropbox/www/at1go.com/app/platforms/ios/cordova/apple_ios_version"), continuing anyways.

apple-xcode version check failed ("/Users/p/Dropbox/www/at1go.com/app/platforms/ios/cordova/apple_xcode_version"), continuing anyways.


Installing "com.googlemaps.ios" for ios

            Official document
            https://github.com/mapsplugin/cordova-plugin-googlemaps-doc/blob/master/v2.0.0/README.md
        
Saved plugin info for "cordova-plugin-googlemaps" to config.xml

Just using cordova plugin add cordova-plugin-googlemaps

Current behavior: There are 2 version errors while installing the plugin as shown above even though both Cordova and the iOS Platform is latest.

And cannot compile any app including bare bones “Hello World” app with only this plugin because of some localization bugs.

Expected behavior: App Should compile without problems, which was happening until very recently when some localization features were added to the plugin.

Screen capture or video record:

screen shot 2018-03-13 at 12 21 56 pm

screen shot 2018-03-13 at 11 15 30 am

screen shot 2018-03-13 at 11 16 06 am

screen shot 2018-03-13 at 11 16 38 am

screen shot 2018-03-13 at 11 19 38 am

Related code, data or error log (please format your code or data):

GitHub Project: https://github.com/avishekcode/OKMaps

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:13 (8 by maintainers)

github_iconTop GitHub Comments

2reactions
wf9a5m75commented, Mar 13, 2018

Okay, please reinstall the plugin from the multiple_maps branch. The issue should be gone.

$> cordova plugin rm cordova-plugin-googlemaps

$> cordova plugin add https://github.com/mapsplugin/cordova-plugin-googlemaps.git#multiple_maps --variable ....
1reaction
wf9a5m75commented, Mar 13, 2018

Ok, I reproduced the trouble. It looks like one of the localized message file is affected. I have been inspecting.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Copy .strings file Error Validation failed - Stack Overflow
strings into your project localized folders. Open XCODE; Clean all - in iOS Device/all Simulators; Build; Copy .strings file Error Validation failed: The...
Read more >
Localization in Xcode | Apple Developer Forums
Hi,. I'm excited for the new localization features in Xcode 13. I learned something new about how it is expected to use Localization...
Read more >
Managing Strings Files Yourself - Apple Developer
Explains how to create a user interface and write code that can be localized into multiple languages.
Read more >
Streamline your localized strings - WWDC21 - Videos
When you localize the text within your app, you can help make your app more ... your localization workflow, including how to write...
Read more >
Localizing strings that contain plurals - Apple Developer
stringsdict file is a resource file in your project, but Xcode doesn't automatically localize it. While the file is in a selected state...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found