从 xib 中删除 ibplugin
如何从 .xib 文件中删除 ibplugins 的所有痕迹?我的 Xcode3 项目有大约 10 个自定义 ibplugins,在我的大约 20 个 .xib 文件中的很多地方都使用了它们。我重新编写了这段代码,使其不再依赖 ibplugins 或绑定,因此现在可以在 Xcode4 中进行编译。
然而 Xcode4 仍然抱怨我的 .xib 文件中有原始 ibplugins 的痕迹。
/* com.apple.ibtool.warnings */
/Users/johndoe/MyProject/English.lproj/MainWindow.xib: warning: ibtool encountered an error while loading the Interface Builder plug-in from /Users/johndoe/MyProject/Core/build/Debug/Core.ibplugin.
Underlying Errors:
Description: Can't load plugin, as there is no bundle at /Users/johndoe/MyProject/Core/build/Debug/Core.ibplugin.
我已从 Interace Builder 的首选项中删除了 ibplugins 并重新保存了所有 .xib 文件。我已经删除了构建 .ibplugin 的目标。我已经删除了用于 .ibplugin 的所有源文件。我已经干净建造了。我的 Xcode4 安装在与 Xcode3 机器完全不同的机器上,因此不可能在其首选项中保留 ibplugins。我也尝试使用 Xcode4 重新保存所有 .xib 文件,因此所有 .xib 文件现在都使用文档版本:默认版本(Interface Builder 4.2)。
我还没有尝试过的一件事是使用 Xcode4 从头开始重新创建所有 .xib 文件。
有什么想法如何删除 .ibplugins 的所有痕迹吗?
How to remove all traces of ibplugins from .xib files? My Xcode3 project had around 10 custom ibplugins used lots of places through out my around 20 .xib files. I have reworked this code so it no longer rely on ibplugins nor bindings so it now can compile in Xcode4.
However Xcode4 still complains that there are traces of the original ibplugins in my .xib files.
/* com.apple.ibtool.warnings */
/Users/johndoe/MyProject/English.lproj/MainWindow.xib: warning: ibtool encountered an error while loading the Interface Builder plug-in from /Users/johndoe/MyProject/Core/build/Debug/Core.ibplugin.
Underlying Errors:
Description: Can't load plugin, as there is no bundle at /Users/johndoe/MyProject/Core/build/Debug/Core.ibplugin.
I have removed the ibplugins from Interace Builder's preferences and re-saved all the .xib files. I have removed the target that build the .ibplugin. I have removed all the source files that was use for the .ibplugin. I have clean builded. My Xcode4 is installed on a completely different machine than my Xcode3 machine, so there is no way that there can be remains of ibplugins in its preferences. I have tried re-saving all the .xib files using Xcode4 too so all the .xib files now use Document Version: Default Version (Interface Builder 4.2).
One thing I haven't tried though is to re-create all the .xib files from scratch with Xcode4.
Any ideas how to remove all traces of .ibplugins?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
解决了。
在“Interface Builder XIB 编译器 - 选项”下的“目标设置”中,我将“插件”设置为自定义 ibplugins 的路径。通过将“插件”设置为空字符串,所有警告都消失了。
Solved it.
In Target Settings under "Interface Builder XIB Compiler - Options" I had "Plug-Ins" set to the path to my custom ibplugins. By setting "Plug-Ins" to an empty string all the warnings disappeared.