[Prev] Thread [Next]  |  [Prev] Date [Next]

ibtool exception Markus Spoettl Sat Feb 11 09:00:16 2012


I'm using ibtool to generate localized versions of English XIB files using localized .strings file. This worked very well with Xcode 3.x.

Switching to Xcode 4.2.1, the same process generates an exception on files that can be opened in Xcode without problem (so they don't have errors I guess). I'm quoting the error below.

My ibtool command line is as follows (current dir being in e.g. Project/French.lproj):

ibtool --strings-file ./Foo.strings ../English.lproj/Foo.xib --write ./Foo.xib

The NSSegmentedCell is used in a NSSegmentedControl which is in a toolbar item, that's the only place in that (Window) XIB that uses NSSegmentedCells.

Using the Xcode 3.2.6 ibtool works fine, even when used on the Xcode-4.2.1-saved XIB.

Anyone seen this kind of thing? What to do?


<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<string>Exception while running ibtool: [&lt;NSSegmentedCell 0x400784480&gt; valueForUndefinedKey:]: this class is not key value coding-compliant for the key labels.
  0  0x00007fff94ba426a __exceptionPreprocess (in CoreFoundation)
  1  0x00007fff90eb7d5e objc_exception_throw (in libobjc.A.dylib)
  2  0x00007fff94c2e4c9 -[NSException raise] (in CoreFoundation)
3 0x00007fff93658783 -[NSObject(NSKeyValueCoding) valueForUndefinedKey:] (in Foundation)
  4  0x00007fff9358f462 _NSGetUsingKeyValueGetter (in Foundation)
5 0x00007fff9358f3e9 -[NSObject(NSKeyValueCoding) valueForKey:] (in Foundation) 6 0x00007fff935aee76 -[NSObject(NSKeyValueCoding) valueForKeyPath:] (in Foundation) 7 0x000000010d99d45a IBOIDBasedDictionaryFromStringsfileAtPathWithContext (in IDEInterfaceBuilderKit) 8 0x000000010d8e5dbe -[IBDocument applyStringsFileAtPath:error:] (in IDEInterfaceBuilderKit) 9 0x0000000110cf03df -[IBCocoaDocument applyStringsFileAtPath:error:] (in IDEInterfaceBuilderCocoaIntegration)
 10  0x000000010d8aa2b4 (in ibtoold)
 11  0x000000010d8a8413 (in ibtoold)
 12  0x000000010d8a8120 (in ibtoold)
 13  0x000000010d8a802c (in ibtoold)
 14  0x000000010d8b1d56 (in ibtoold)
 15  0x000000010d8a7baa (in ibtoold)
 16  0x000000010d8a8b8f (in ibtoold)
 17  0x000000010d8a6644 (in ibtoold)
 18  0x0000000000000001

Markus Spoettl
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      ([EMAIL PROTECTED])
Help/Unsubscribe/Update your Subscription:

This email sent to [EMAIL PROTECTED]