Help with my xib file, which always crashes on xcode

Hey guys, please, I had real problems with xcode and can't open xib files. Each time I click on the xib file, xcode crashes. This happens on xcode3.2 as well as on xcode4

Is there anything I can do about it? I am not installed and re-installed, but still not working.

Any help would be really noticeable. If this helps use xcode4 and bought it from the app store. Thanks.

+6
source share
8 answers

The solution to this problem was to reinstall my operating system. Basically, I had to reinstall Lion, and after that everything worked fine. I think the problem had something to do with some library files that were missing.

NOTE. If you have this problem, reinstalling your OS may not be the only solution, as simpler solutions may be presented. Some answers to this question may help, and in other cases a simple google or stackoverflow search can be of great help. You can also try the Xcode mailing list . I would advise you to reinstall your OS only if you tried "everything" and no one can help, therefore, your plan-Z.

+2
source

My problem was custom fonts in the XIB file. I had to install the missing fonts on my computer and the problem was resolved.

+3
source

I had the same issue in Xcode 4.3 today. This is definitely a bug in Xcode, and it has something to do with opening xib files saved in older versions of Xcode. To get around this, I did the following, some of which may not be needed, but I listed all this just in case:

  • quit xcode
  • copied my xib file foo.xib to foo2.xib
  • svn rm foo.xib
  • svn commit
  • Update svn (now foo.xib is not located on disk)
  • open my xcode project, foo.xib is displayed in red since it cannot find the file. remove foo.xib from the project.
  • drag foo2.xib from the search engine to my project
  • click on foo2.xib - for me it was open just fine

At this point, I am sure that either the subversion conflict with xcode or xcode retains an outdated link to the file name. But now that I have the file open, I do the following:

  • Show the right panel of the IDE settings (where you can set the NIB parameters).
  • Click the top left icon in the right pane (the prompt says "Show file inspector").
  • There is a section called “Document Builder Document” and it has a popup window “Document Versioning”. Xcode 4.2.1 is displayed in my file, so I changed it to Xcode 4.3.
  • At this point, I also took advantage of several other settings in my nib, for example, changing the window title. The essence of this was to make sure that the tip would be re-stored.
  • Now in the left pane, which lists the project files, I clicked on "foo2.xib" and renamed it to "foo.xib" - Xcode automatically adds it back to the subversion repository.

And after that, everything just magically worked.

I will indicate that I went through and changed all my nib files after that to save as "Xcode 4.3" in the Document Documenting area.

I sent a crash report and the contents of the beer to the apple in the error report, but if someone wants to see what actually happened, I pasted it here:

http://pastebin.com/sC0pBUfu

Hope this helps someone, it took me about four hours to figure this out. Playing nib files does not work, the problem with the file name and IDE version is saved in the nib file, which I suspect.

+1
source

Just install one xcode at a time. The tool uses only Xcode 4 or Xcode 3.2. This may solve your problem. Try it.

0
source

Edited by the new offer http://www.cocoabuilder.com/archive/xcode/305032-xcode-help.html :

If you completely uninstalled and then reinstalled Xcode and uninstalled, I mean running

sudo / Developer / Library / uninstall-devtools -mode = all

and then trashing / Developer, and then reinstall, and it is NOT working after the error, I should think that you have a damaged OSX or wandering library.

I googled and found a couple of people who were able to reinstall SnowLeopard (and then updating it to the last fix level, then reinstalling Xcode), and there were several people who found roaming libraries in / usr / local / include and / usr / local / lib, so you might want to go look for odd files there, or maybe TEMPLE rename them and try reinstalling Xcode, I'm not sure how many of there you really need. The special mail I discovered installed ImageMagic and it removed these libraries from / usr / local / lib and worked again.

At this point, I will look beyond Xcode and assume that my system has been corrupted.

Google has more suggestions, just enter CFXMLNodeGetInfoPtr and there are many posts asking more than answering.

and do not use the version of the App Store. Use it on the Apple.com/Developer for iOS SDK.

Create a new XIB. Click once. If not:

Do not open xib, right-click Open As: Source. See if you can see something if it still crashes: Doesn't look like an Xcode.pbxproject error

0
source

Well, one way could be ..:

  • spotlight type interface builder

  • open it.

  • go into your project and drag your xib into the interface constructor on the dock.

It will open.

This problem may be due to several versions of xcode in different places on your Mac.

0
source

Can't open any xib file for iOS? In the accident log,

Details: the interface builder has detected an error communicating with iOS Simulator. The Cocoa Touch Tool Builder Interface (5963) could not start and exit with the status (null), signal 5. Please check Console.app for crash reports for the Cocoa Touch Tool Interface Builder for more information.

Have you checked your console log using Console.app? In any case, it looks like your Xcode environment is corrupted.

  • sudo / Developer / Library / uninstall-devtools -mode = all
  • If you put files in / Developer, back up.
  • sudo rm -rf / Developer
  • reboot.
  • install xcode.
0
source

Its an XCode error.

Creating a new .storyboard and opening it before opening .xib will eliminate the crash, at least temporarily.

0
source

Source: https://habr.com/ru/post/889614/


All Articles