Issue in Xcode 7 beta 6 when using NSLocalizaedString

368 Views Asked by At

I am having some trouble with xcode beta 7 when trying to solve a problem that apparently is crashing my app in iOS 9.0. In a first moment, i was having a problem when connecting to an unsecured http. I've followed the steps from another post here in stack overflow and got it working... Now, the problem is going through another crash right after it. I've checked apple's documentation and it says...


Localization

• During XLIFF export or import, NSLocalizedString macro issues or empty strings files may result in an error, "The data couldn’t be read because it isn’t in the correct format.”

Workaround: Remove empty strings files from your project, or use the following command to find NSLocalizedString macro issues in your project.

find <project directory here> -name "*.m" -exec xcrun extractLocStrings {} \;

(21101899)


So i executed the command and thats whats it shows to me...

Image describing the error

I have no clue how to fix this, there is few on the internet describing the problem also... does anyone knows how to solve?

Thanks!

1

There are 1 best solutions below

3
Michael Teper On

Find the line starting with "Dismiss" in your Localizable.strings file and look one line up. You will likely see two comment sections (a comment is text surrounded by /* and */). Get rid of one of them.