IBTool Error: The operation couldn’t be completed.
- PDF for offline use
Let us know how you feel about this
Fixed in Xcode 6.1.1
Apple fixed this
ibtool bug in Xcode 6.1.1, so upgrading to Xcode 6.1.1 or higher is the easiest fix.
Description of the problem
ibtool command in Xcode 6.0 had a bug on OS X 10.10 Yosemite. Xamarin.iOS uses Xcode's
ibtool to compile storyboards and
More information about the bug in relation to Xcode can be found on the following Stack Overflow post: http://stackoverflow.com/questions/25754763/cant-open-storyboard
The document "MainStoryboard.storyboard" could not be opened. The operation couldn’t be completed. (com.apple.InterfaceBuilder error -1.)
Workarounds (for Xcode 6.0)
Option 1: Manage all
UIImageView.Image properties in code
Rather than setting the
Image property of a
UIImageView in the storyboard or
.xib file, you can set the property in one of the view life cycle override methods in the view controller (for example, in
ViewDidLoad()). See also Working with Images for tips about using
Option 2: Move all of the image resources to the top-level
After moving the images to the top-level
Resources folder, you will need to update the storyboard and
.xib files to use the new image paths.
Option 3: Set the
LogicalName for any problematic image assets so they are copied to the top level of the
For example, say your original
.csproj file contains the following entry:
<BundleResource Include="Resources\Images\image.png" />
You can change this element and add a
LogicalName so that the image will instead be copied to the top level of the
<BundleResource Include="Resources\Images\image.png"> <LogicalName>image.png</LogicalName> </BundleResource>
In Visual Studio for Mac the
LogicalName can also be set using the
Resource ID field for the image under View > Pads > Properties. (See also: http://stackoverflow.com/questions/16938250/xamarin-studio-folder-structure-issue-in-ios-project/16951545#16951545)
After this change, you will need to update the storyboard and
.xib files to use the new top-level image paths. Visual Studio for Mac will automatically update the list of autocompletions for the
Image property in the iOS Designer. In Visual Studio, you'll need to edit the path by hand. The iOS Designer will then display this as a missing image, but the project will build and run correctly.
For further assistance, to contact us, or if this issue remains even after utilizing the above information, please see What support options are available for Xamarin? for information on contact options, suggestions, as well as how to file a new bug if needed.