Ibtool failed while compiling storyboards

I just downloaded the project from the git repository on two different MacBook computers. Firstly, it works without problems.

The second Macbook displays the following message:

Command /Applications/Xcode.app/Contents/Developer/usr/bin/ibtool failed with exit code 255 

When trying to compile MainStoryboard.storyboard file.

When I click MainStoryboard.storyboard on Xcode, it crashes and does not open it.

On another computer, everything is working fine.

I tried the following steps to solve this problem, without success:

1) Upgraded Xcode from 4.5 to 4.5.2

2) Deleted the project directory and cloned the repository again.

3) Deleted the contents of my project at ~/Library/Developer/Xcode/DerivedData

4) purge

Any ideas on how to fix this?

+7
source share
7 answers

Almost half a year later, I finally managed to find out what caused this problem, and fixed the error.

Now, with Xcode 4.6.3, it gives me another key to the problem:

 2013-06-28 18:15:32.606 Interface Builder Cocoa Touch Tool[7894:f07] CFPreferences: user home directory at file://localhost/Users/[myusername]/Library/Application%20Support/iPhone%20Simulator/User/ is unavailable. User domains will be volatile.Command /Applications/Xcode.app/Contents/Developer/usr/bin/ibtool failed with exit code 255 

After receiving this new message, I searched for this User folder inside the “iPhone Simulator” and there was no folder named “User”.

I created the User folder, cleaned it, and after that I was able to create the project again!

+1
source

This issue has been detected using Xcode 5.

I solved the problem, but it required a hard reset.

Some said it was because I installed Xcode outside the App Store, either because the simluator was a bug, or because Xcode was pointing to the wrong version of Simulator, or resoruce was missing the target membership or anything else. I have tried all this.

I downloaded Xcode from the App Store, reinstalled Simulators and still no luck. So I just rolled back my repository to an earlier date and lost some of my work. Not so much, because I always do little and often.

Ever since I started using storyboards back in 2011, I have always done little AND OFTEN. The storyboards are fragile.

EDIT After adding new components, the problem pops up again.

I noticed that I set the table to be static in the UIViewController. I have done this before.

I used a subclass of UITableViewController in the code, but the storyboard script was a UIViewController. Instead, I pulled out a UITableViewController and moved the table view cells into it, and it solved the problem.

All due to lack of error messages. Where did they all go with Xcode 5?

+2
source

Do

which ibtool

At the command prompt on both Mac computers. Most likely they are different.

Before Xcode was included in a single .app package, it installed command-line tools in folders such as / usr / local.

I would recommend that you remove these local copies in order to avoid interference in the Xcode embedded in the version, i.e. that she is using the old version. If you still want to use ibtool from the command line, here is an explanation about xcrun: http://www.cocoanetics.com/2012/07/you-dont-need-the-xcode-command-line-tools/

+1
source

The fix for me in Xcode 6.4 was ... restart the computer. sad but true.

+1
source

I was getting the same error. It turned out that I mixed up some of the outputs in the table cell.

0
source

I don’t know, someone is still struggling with this mistake, but today it’s my turn to resist it. I just solved it. This is the context:

I had a UITableViewCell and half of its cover in plain UIVIEW. Inside this UIVIEW, I had many other views (UILables, UITextField, etc. Etc.)

As soon as UIVIEW finished (Again it covered the middle of the entire UITableViewCell), I placed the UIImageView. Half of the UIImageView covered the UIView, and the other half was the UITableView itself. In the hierarchy, the UIImageView was on a UITableVIewCell, not inside a UIView.

The problem was that when I used autolayout, I set a limit between the view inside the UIView and the UIImageView that was outside of UIVIEW.

When I launched the application, an error occurred. After half an hour, having deleted my views and stuff, I realized that the error was caused by this restriction. After removing this restriction, the error disappeared.

So, on the bottom line, check your limitations! only “Connect” with others that are inside the same supervisor.

Good luck

0
source

Try reinstalling Xcode completely. There seems to be something wrong with ibtool, which reinstallation can probably fix it.

-3
source

All Articles