什么是“界面生成器可可触摸工具” [英] What is "Interface Builder Cocoa Touch Tool"

查看:263
本文介绍了什么是“界面生成器可可触摸工具”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我从客户端得到一个代码来修复错误(代码是由其他程序员编写的),所以当我打开xib文件,它只是挂了我的电脑,我重新启动了我的电脑3次,因为最终决定通过打开活动监视器看到发生了什么,它被证明是打开一个名称为界面构建器Cocoa Touch工具,它吃了我的所有计算机内存。下面是截图。

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.

但这里是有趣的事情,它是不打开 Interface Builder Cocoa Touch工具从其他项目打开xib文件,我不能说什么关于这个项目,因为这个项目只有一个nib文件。

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.

但是如果杀死这个过程,它打开nib文件,但错误开始启动我每10秒。下面是屏幕截图。

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.

注意:应用程序最初是为ios 2.0版本编写的,我们正在尝试将项目移动到ios 4.0。这是与这个有什么关系吗?

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?

推荐答案

这里最好的做法是创建一个bug报告 http://bugreport.apple.com/ ,将您损坏的nib文件作为磁盘阵列上传。这不会让你重新工作,所以尝试以下之一:

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:


  • 看看你能否说服ibtool写一个工作文件,也许

  • 查看客户端是否在同一版本的Xcode上:如果他们是新的,升级
  • $ b $ b
  • 使用xmllint查看xib是否是有效的XML,如果不是,您是否可以在文本编辑器中修复它

  • 如果不是,则从头重新创建xib太复杂

  • 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

这篇关于什么是“界面生成器可可触摸工具”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆