Monodevelop migrate 2.8 没有添加 .h 文件
我刚刚将 MonoDevelop 升级到最新版本(2.8)。我还安装了 XCode4,因为它现在得到了完全支持。打开我的解决方案(由多个项目组成)时,系统要求我迁移我的解决方案。我这样做并保存了一切。
然而,我认为缺少了一些东西。当我打开 .xib 文件时,右侧的项目不显示 .h 文件,如 教程。
它还显示警告,指出在 XCode 中未找到这些插座。
当我添加新屏幕时,它会按应有的方式创建 .h 文件并在 XCode 中显示该文件。然而,所有现有的屏幕都没有这些文件,这使得无法添加/更改插座。
我该如何解决这个问题。
I just upgrade my MonoDevelop to the latest version (2.8). I also installed XCode4, since it's fully supported now. When opening my solution (which consists of several projects) I was asked to migrate my solution. I did this and saved everything.
However, I think something is missing. When I open the .xib file, the project on the right doesn't show .h files, like shown in the tutorial.
It also shows warnings that the outlets were not found in XCode.
When I add a new screen, it creates the .h file as it should and shows this in XCode. However all existing screens don't have these files, which makes it impossible to add/change outlets.
How can I fix this.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
检查您希望在 Xcode 中看到的类是否具有显式的
[Register("SomeName")]
属性,这些属性使用 Xcode/Obj-C/IB 中可用的名称来注册它们。我希望导入的项目已经具有这些属性,因为 xibs 需要它们才能按名称加载类,但您可能可以通过使用“文件所有者”上的出口来摆脱这些属性。
Check that your classes you expect to see in Xcode have explicit
[Register("SomeName")]
attributes, which register them with a name usable from Xcode/Obj-C/IB.I would expect an imported project to have those attributes already, since they're required for xibs to be able to load the classes by name, but you could maybe have got away without those attributes by using outlets on "File's Owner".