Auto Layout enabled XIBs do not build when IB plugin search path is specified

Originator:Footpad01
Number:rdar://10913393 Date Originated:22-Feb-2012 06:44 PM
Status:Open Resolved:
Product:Developer Tools Product Version:4.3 (4E109)
Classification:Other bug Reproducible:Always
 
Summary:

ibtool will fail to compile any XIB that uses Auto Layout when IBC_PLUGIN_SEARCH_PATHS is specified for the target. The error message given does not accurately describe the conflict or a useful recovery suggestion.

Steps to Reproduce:

1. Create a new Cocoa application project.
2. Set IBC_PLUGIN_SEARCH_PATHS to any path, with or without plugins in that path.
3. Open any XIB in the project and set "Use Auto Layout".
4. Build the application.

Expected Results:

Best case - ibtool will not fail to build XIBs that have Auto Layout enabled. The presence of IB plugins should not invalidate building of XIBs using Auto Layout. In the cases where a search path is specified and no plugins are found, Auto Layout XIBs should still build successfully.

Worst case - Error message explains that IB plugins cannot be present and/or cannot have plugin search paths specified.

Actual Results:

Building fails and ibtool generates the following error:

"error: The document "<document>.xib" could not be opened. An instance of IBNSLayoutConstraint could not be decoded. Recovery Suggestion: Ensure all plug-ins used to create this document have been loaded."

Regression:

Notes:

A workaround is to specify no IBC_PLUGIN_SEARCH_PATHS.

Comments

Same thing happens if you add a view-based table view.

I filed 11199584, which smells like the same problem.

By recordtronic at April 6, 2012, 2:14 p.m. (reply...)

Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!