Re: Xcode 4.6 leaves unsupported attribute in xib files even after turned off?
Re: Xcode 4.6 leaves unsupported attribute in xib files even after turned off?
- Subject: Re: Xcode 4.6 leaves unsupported attribute in xib files even after turned off?
- From: Matt Neuburg <email@hidden>
- Date: Mon, 04 Mar 2013 13:21:27 -0800
On Mar 4, 2013, at 11:17 AM, Laurent Daudelin wrote:
> On Mar 4, 2013, at 10:03, Matt Neuburg <email@hidden> wrote:
>
>> On Mon, 04 Mar 2013 01:28:41 -0800, Laurent Daudelin <email@hidden> said:
>>> I just tried my build on the 5.1 simulator and the app started crashing with an NSInconsistencyException while the UI was being loaded. The exception message was "The NIB data was invalid". I realized that the nib compiler was giving me warning for the new UILabel setting "Tighten Letter Spacing". Fine, so I turned it off, saved the file and recompiled. Got the same warnings! So, I double-checked everything and no check box checked but compiling gave still the same warning.
>>>
>>> So, I opened the xib file in BBEdit and did a search for "letterspacing" and BBEdit found 15 occurrences!
>>>
>>> Does anyone know if that is a known defect with Xcode 4.6? Even if you turn this "Tighten Letter Spacing" to off, the key with a YES value stays in the interface file which will cause warnings and a crash on anything prior to iOS 6?
>>
>> I think what's changed is the Deployment setting in the XIB's File Inspector. I'm guessing that if you set it manually back to iOS 5.1, the XIB will work on on iOS 5.1 (assuming you don't use Autolayout or any other incompatible features). m.
>>
>
> Matt,
>
> I had already changed the deployment back to 5.1. The problem is that the nib compiler would complain that letter spacing adjustment was not available prior to 6.0 even though I couldn't find any UILabel or UITextField that had this setting turned on. I had to use a text editor to remove those instances that were set to YES.
Well, that isn't a very satisfying explanation (if it's an explanation at all). I created a new project with a UILabel and set the letter spacing adjustment, and I was able to run on the 5.1 simulator with no crash and no warning. So what explains this difference in our outcomes? How can I reproduce your results? m.
--
matt neuburg, phd = email@hidden, http://www.apeth.net/matt/
pantes anthropoi tou eidenai oregontai phusei
Programming iOS 6! http://shop.oreilly.com/product/0636920029717.do
RubyFrontier! http://www.apeth.com/RubyFrontierDocs/default.html
TidBITS, Mac news and reviews since 1990, http://www.tidbits.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden