YinKiet
YinKiet

Reputation: 479

Getting empty Localization Issue warning message for storyboard

I'm using Xcode version 9.2, I have tried to delete the derived data but still getting empty warning message for storybard as show in pic below. I cannot know what is the problem if the warning is empty, any idea how to fix this? enter image description here

Update

I have solve the warning by change the constraint from this enter image description here

  1. Left constraint "Greater Than or Equal" with first item as TextView.Leading and second item as Superview.Leading.Margin
  2. Right constraint "Greater Than or Equal" with first item as Superview.Trailing.Margin and second item as TextView.Trailing

to this by just reverse first and second item for "2"

enter image description here

  1. Left constraint "Greater Than or Equal" with first item as TextView.Leading and second item as Superview.Leading.Margin
  2. Right constraint "Less Than or Equal" with first item as TextView.Trailing and second item as Superview.Trailing.Margin

How ever I'm not sure why this will cause the empty warning message

Upvotes: 4

Views: 387

Answers (2)

User511
User511

Reputation: 1486

Try these steps:

  • Move the storyboard from the Base.lproj folder up one level via Finder
  • Delete the storyboard reference from your project via Xcode
  • Drag and drop (or otherwise re-add) the storyboard to your project
  • Verify using the File Inspector that the storyboard no longer has base localization

It should work!!

Upvotes: 0

Maulik Bhuptani
Maulik Bhuptani

Reputation: 616

Silence the fixed-width warnings by changing the width of the object spacings from fixed width to greater than or equal or less than or equal.

This can be done by selecting the object in interface builder, going to the size inspector and changing it there:

enter image description here

Or, select the constraint from the document outline, go to size inspector, and change it there:

Fixed leading and trailing constraints with a center constraint may cause clipping

enter image description here

This will certainly solve all your localization issues :: Xcode 9 - Localization Issue Warning Storyboard

Upvotes: 1

Related Questions