What is "Interface Builder Cocoa Touch Tool" - debugging

I got a code from a client to fix the bug (code was written by some other programmer), So when I open the xib file it simply hang my computer, i restarted my computer 3 times because of that and finally decided to see what's happening by opening the Activity Monitor and it turn out it is opening something with name "Interface Builder Cocoa Touch tool" and its eating all of my computer memory. Below is the screenshot.
But here is the interesting thing, it is not opening "Interface Builder Cocoa Touch tool" when open "xib" files from other projects, and i can't say anything about this project because this project has only one "nib" file.
But if kill that process, it open the nib file but an error start firing on me after every 10 sec. Below is the screen shot.
Note: App was written initially for ios 2.0 version and we are trying to move the project to ios 4.0. Is this thing has anything to do with this?

The best course of action here is to create a bug report at http://bugreport.apple.com/, uploading your broken nib file as an enclosure. That doesn't get you working again, so try one of these:
see if you can convince ibtool to write a working file, perhaps by doing some refactoring like changing one of the classes used then changing it back
find out whether the client is on the same version of Xcode: if theirs is newer, upgrade
use xmllint to see whether the xib is valid XML, and if not whether you can fix it in a text editor
recreate the xib from scratch if it isn't too complicated

Related

My MainMenu.xib refuses to go into the bundle and my app crashes with: "Unable to load nib file: MainMenu, exiting"

When I run my application in Debug mode from Xcode it works, but when I run it in Release mode it crashes after outputting this:
Unable to load nib file: MainMenu, exiting
Indeed, MainMenu.xib is not present in either bundle (Debug nor Release) and if I look at the configuration it looks like it's missing:
It's been like that since I created the app from a fresh template but I didn't think much of it because in Debug it was working. I tried removing it and adding it again and it's still shown red, as missing.
In Deployment Info it says MainMenu although in the list it says MainMenu.xib. When I select MainMenu.xib it shows MainMenu:
Running by double clicking on the .app files has the same result as running it from Xcode.
What's wrong here? how do I fix it?
The environment is Xcode 6.2, a Cocoa application with Swift (OSX) and I'm running this in Yosemite (some other devs are running Mavericks).
Just for the record:
Unable to load nib file: MainMenu, exiting
was a real error but all the other symptoms that I saw were not relevant as #I'L'l commented in the question.
I am not sure what the actual problem was because the problem went away on its own after cleaning the project and rebuilding. I suspect a script that I had to generate DMGs might have been causing some issues. Also, I was expecting the .app that Xcode generated to work on other machines and that's not realistic. You need to properly re-archive the app for that to happen:
https://developer.apple.com/library/mac/documentation/IDEs/Conceptual/AppDistributionGuide/DistributingApplicationsOutside/DistributingApplicationsOutside.html

MonoDevelop is not generating IB outlets for my MonoMac project

I am getting back in to MonoMac, and straight away, experiencing problems.
I have added my outlets and actions to my XIB files, and linked them with IB controls, saved my XIB, and returned to MonoMac, and it is not regenerating the C# files, so the bindings are not linked - I cannot use them.
What happening? I am using the latest stable versions of everything (MonoMac did all its updates).
Thanks
This happens sometimes. I you are using a XIB file generated by MonoMac as default resources, you just need to close both MonoDevelop and Xcode, go to your project folder and clear the bin and object folders. Run the MonoMac, double click your XIB file, edit it in Xcode, press the Command+S buttons 2 or 3 times to make sure the files get changed so MonoDevelop will sync them, and your C# files will get generated...
But I had a situation that this didn't work and I couldn't figure it out and that was when I started an Empty MonoMac Project and added an Empty XIB file to it! The C# files do not get Sync after 5 tries and I didn't waste my time trying to fix it. Created a Document MonoMac project, deleted unneeded files and continued my work.
Hope it helps.

Core Data Model editing hangs in XCode 3.2.5

In XCode 3.2.5, when I right- or left-click on a .xcdatamodel file in my project, the program hangs with a spinning beach-volley "forever".
Any idea what might be causing this, or what I can do to allow the file to open smoothly? This also happens if I copy the file out of the project and try to open it by itself.
This is apparently a known bug for Apple, bug #8357795

Xcode shows old, deleted xib files

I've searched all over and haven't found any help...
I built a small test app with two UIViewControllers and their corresponding xibs. Things were fine, then I made some changes to both xibs but when I build and run, I get the old views. I've tried deleting the build folders, running in the simulator and device, cleaning all targets and still the same, old, broke-down xibs that I totally changed are still showing up. I've restarted all the Xcode apps and even my computer.
Getting pretty irritated!
EDIT: I never did figure out what the problem was. Basically, once I had built a project, it remembered the first xibs I made and wouldn't recognize changes to them. If I told a view controller to load from a different, valid nib name, it'd complain that the old one wasn't there.
I reinstalled Xcode and now it all works again. Sheesh.
Try deleting the app from the simulator (hold down on the app's icon to get to jiggle mode, then click the X by the app) and from your device. Then let Xcode reinstall it.
just clean the build using
Product -> Clean
menu.
Just modify your XIB files a bit, then save them, xCode will detect a modification (last modified date in the file system) then load the xib from its actual path, and not from a cache-path :P
I just found (and fixed) a related problem — one that demonstrates similar symptoms but whose root cause is slightly different.
In particular, the symptoms I observed were that my iPad app would initially display an old storyboard image for the first page and, after a short delay, would bring up the most recently edited story board contents. I went through most of the above machinations to no avail.
The problem is that the iPad loader first just dumbly loads your app's launch image into the screen. You usually set up this image as part of the early administrative setup of the app in XCode. At launch time, while the end user is considering the content and cogitating about where to touch the screen, the application is in the mean time madly getting itself ready, un-archiving the xib/nib/storyboard, and doing the real work of getting ready.
In the ideal situation the provided launch image is pixel-for-pixel the same as the one generated by the nib-unarchiving-process. However, if you forgot to update your launch image after updating the story board, you'll see an image shift at the completion of the unarchiving.
I wouldn't have suspected this as the problem except that I had read Jef Raskin's description of how he did exactly this on the Canon Cat word processor to provide the illusion of an instantly ready application: it takes advantage of the fact that the typical human response time to an application startup is on the order of seven seconds — plenty of time for even a floppy-based system to load and overwrite the bitmap facade that the loader sets up. Sometimes, it's good to have read a bit of arcane history. Jef would of course later go on to found a project whose name was Macintosh, and the rest is history — and this bug.
Not sure whether this helps, but I just had this.
It took me days to work it out. In my case I enhanced an existing Xib file. The changes I applied in interface builder never appeared in the app.
Eventually I found the cause. I had my FilesOwner view outlet set to a subview below the top view. When I enhanced the view I did this as an extension to th top view. Thus the changes never appeared when running the app.
Changing the view outlet to the correct view ( the top view in my case ) did the trick and it all worked fine ...
I know steve has found a work around but the problem is not in the XIB files at all. Xcode does not update the YouApplication-info.plist file to
If you open it up you will see the line: Main nib file base name. You must change the value to reflect your desired NIB file name
I had this problem, and it was a result of xcode continuing to copy previously compiled xib's - even though the source file was deleted, the build cache wasn't. Product > Clean and then recompiling solved it.
I just had this issue, just delete the app from the simulator.
Then do a clean on your project.
In xCode,
go to the Product menu,
select Clean.
Or just press Shift+Command+K!
I ended up recreating the xibs from scratch and that worked. Very frustrating.
you can try to modify your XIBs a bit, so xCode will detect a modification through the last modified date in file system. then it will load the xib from its actual path, an not from xCode cache.
I had the same problem, but i solved it by changing the datetime of my system to today. And re-saved the xib. I was testing the local notification.
Just an assumption, not sure if that really caused it: I finished a XIB that worked fine in the simulator and on an actual device. I then changed it to be localised in Xcode 4.5.1. The changes I did after that were not synced to the device until I manually deleted the app from the device and reinstalled via Xcode.
Deleted derived data, cleaned project and build. Old xib was magically removed. :D

How To Get Xcode Interface Builder To Pop Up When I Click My NIB File?

I am at work and trying to make an application for my company in Xcode, however when I click the Nib file I cannot get the interface builder to pop up. I am on a Mac that has lockdown control on it, and I am wondering if this is affecting my development environment? When I double-click the Nib file nothing happens. It just modals the normal Xcode window. Am I at a loss on this? I am wondering if I am going to have to develop this application away from my work?
I only know that when the file is open with Xcode you must add the quarts composer framework
You can do this going to build phases, frameworks and add
When you make a right-click (ctrl-click) on the file and move to open with is there a link to interface builder? If so you can select the preferred program for all .nib files with
*right-click* > information on a .nib file.

Resources