Xcode 4.2编译原型单元失败 [英] Xcode 4.2 Compilation Failed with prototype cell

查看:248
本文介绍了Xcode 4.2编译原型单元失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试新的Xcode 4.2测试版,我想知道我的代码是错误的还是我碰到了一个错误。

I'm trying out the new Xcode 4.2 Beta and I'm wondering if my code is wrong or if I'm bumping in to an bug.

新的故事板功能很有前途,但目前非常错误。现在我已经用tableview创建了一个简单的项目。此tableview将是包含UITextFields的分组样式。故事板的新原型单元功能让您在GUI中创建一个原型单元,您可以使用方法cellForRowAtIndexPath中的重用标识符进行绘制。
当我在这个原型单元格中拖入UITextField并将其绘制出来时,效果很好!

The new Storyboard feature is promising but extremely buggy at the moment. Right now I've created an simple project with a tableview. This tableview will be "Grouped style" containing UITextFields. The new "Prototype Cell" feature of storyboard let's you create a prototype cell in GUI that you can draw with the "Reuse identifier" in the method cellForRowAtIndexPath. When I drag in a UITextField in this "prototype cell" and draw it out, it works great!

但是!当我将此文本字段引用到我的代码中的插座时,我收到错误:
未分类
编译失败。无法写入路径:...(DerivedData的路径)

However! When I reference this textfield to an outlet in my code I get the error: Uncategorized Compilation failed. Unable to write to path:...(Path to DerivedData)

这是为什么?
这是一个错误吗?
其他人得到这个吗?

Why is this? Is it a bug? Anyone else get this?

推荐答案

我在Xcode 4.2(最终版本)中偶尔遇到过这个问题。

I've run into this problem on a couple of occasions in Xcode 4.2 (final release as well).

它通常与您设置的插座或其他连接有关,编译器对此感到不安(因为没有更好的术语)。诀窍是确定哪个连接。

It's usually related to an outlet or other connection that you've set up that the compiler is upset about (for lack of a better term). The trick is determining which connection(s) that is.

您可以通过执行以下操作在Xcode 4.2中查看构建过程的详细输出:

You can view the detailed output of the build process in Xcode 4.2 by doing the following:


  1. 切换到最左侧窗格中的日志导航器

  2. 选择构建

  3. 您应该看到错误,包括编译失败错误。

  4. 您可以通过单击最右侧的图标(看起来像列表)来扩展该错误的构建日志。这应该扩展并显示导致问题的错误。

  1. Switch to the log navigator in the leftmost pane
  2. Select "Build "
  3. You should see the error(s), including your compilation failed error.
  4. You can expand the build log for that error by clicking the right most icon (looks like a list). That should expand and display the error causing the problems.

这篇关于Xcode 4.2编译原型单元失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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