kstenerud/iOS-Universal-Framework — Issue #53: Xcode crash when using xib or storyboard in embedded framework
Author: bgulanowski
Created: 2012-03-08 12:29:18+00:00
State: open

If I build an embedded framework with user interface layouts, trying to process those files in a client application project causes problems for ibtool and Xcode.

ibtool is trying to run on the symbolic links in the top-level Resources framework, and bails with an error like this:

/* com.apple.ibtool.errors */
(path)/X.storyboard: error: Exception while loading document at path (path)/X.storyboard: -[NSFileWrapper regularFileContents] *** this method is only for regular file type NSFileWrappers

This in turn causes Xcode to freak out and throw many exceptions and usually disables the Utilities inspector pane.

The same exception can be triggered by adding the Resources folder to the project and selecting what looks like a normal xib/nib/storyboard, but is in fact a symlink.

Perhaps, technically, this bug is actually in Xcode/ibtool, not handling symbolic links sanely. But perhaps there exists a workaround.

Note: I am using Xcode 4.2; perhaps this has been fixed in 4.3. (But my colleagues are having lots of problems with 4.3 and I am reluctant to upgrade.)