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: Laurent Daudelin <email@hidden>
- Date: Mon, 04 Mar 2013 11:17:21 -0800
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.
-Laurent.
--
Laurent Daudelin
AIM/iChat/Skype:LaurentDaudelin http://www.nemesys-soft.com/
Logiciels Nemesys Software email@hidden
_______________________________________________
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