Monodevelop migrate 2.8 没有添加 .h 文件

发布于 2024-12-08 19:09:55 字数 433 浏览 0 评论 0原文

我刚刚将 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

信仰 2024-12-15 19:09:55

检查您希望在 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".

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文