icuke 与 xcode 4 次

发布于 2024-10-17 12:16:19 字数 618 浏览 3 评论 0原文

有人让 iCuke 与 XCode 4 一起工作吗?

我正在尝试按照 http://pragprog.com 上的 iCuke 教程进行操作/magazines/2010-07/bdd-on-iphone-icuke

尝试运行第一个功能时出现超时错误:

Given "QuickContacts.xcodeproj" is loaded in the simulator # iCuke-0.6.3/lib/icuke/cucumber.rb:197
      execution expired (Timeout::Error)
      /opt/local/lib/ruby/1.8/timeout.rb:64:in `start'
      /opt/local/lib/ruby/1.8/net/http.rb:1035:in `request'
      features/add_contact.feature:7:in `Given "QuickContacts.xcodeproj" is loaded in the simulator'

Anyone get iCuke to work with XCode 4?

I'm trying to follow the iCuke tutorial at http://pragprog.com/magazines/2010-07/bdd-on-iphone-icuke

I get a time out error when trying to run the first feature:

Given "QuickContacts.xcodeproj" is loaded in the simulator # iCuke-0.6.3/lib/icuke/cucumber.rb:197
      execution expired (Timeout::Error)
      /opt/local/lib/ruby/1.8/timeout.rb:64:in `start'
      /opt/local/lib/ruby/1.8/net/http.rb:1035:in `request'
      features/add_contact.feature:7:in `Given "QuickContacts.xcodeproj" is loaded in the simulator'

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(2

只是一片海 2024-10-24 12:16:19

几天前,我在让这个(更准确地说是 iCuke)工作时遇到了各种各样的问题。恐怕最终我放弃了它并转而选择 Frank

也就是说,我和 Frank 遇到了同样的问题,但我找到了比修复 XCode 集成更好的解决方案(恕我直言)。看看这个项目:我做了一个黄瓜步骤来在模拟器中启动我的二进制文件,而无需需要使用粗糙的 Applescript 来说服 XCode 执行您的命令。也许你可以为 iCuke 做类似的事情?

对于任何感兴趣的人......我们的步骤如下所示:

def run_app_in_simulator
  target = ENV['TARGET_PATH'] // how you set this is down to you....
  if not system('ios-sim', 'launch', target, '--verbose', '--sdk', '4.2', '--exit', '--family', 'ipad')
    raise "Unable to launch simulator"
  end
end

I had all kinds of problems getting this (more precisely iCuke in general) to work a few days ago. I'm afraid in the end I abandonded it and went for Frank instead.

That said I had the same problem with Frank but I found a better solution to the problem than fixing the XCode integration (imho). Take a look at this project: I whipped up a cucumber step to boot my binaries in the simulator without the need for crufty Applescripts that convince XCode to do your bidding. Perhaps you can do something similar for iCuke?

For anyone interested...our step looks something like this:

def run_app_in_simulator
  target = ENV['TARGET_PATH'] // how you set this is down to you....
  if not system('ios-sim', 'launch', target, '--verbose', '--sdk', '4.2', '--exit', '--family', 'ipad')
    raise "Unable to launch simulator"
  end
end
双手揣兜 2024-10-24 12:16:19

在对 xcode 进行一些修改之后,我能够解决超时问题。
如果启用“通用访问”,这个问题似乎可以解决:
点击“Xcode -> Preferences->Documentation”,确保选择Universal Access。

After tinkering around a little bit in xcode, I was able to get past the timeout issue.
It looks like this can be resolved if "Universal Access" is enabled:
Click on "Xcode -> Preferences->Documentation" , ensure that Universal Access is selected.

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