2

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

我正在尝试遵循http://pragprog.com/magazines/2010-07/bdd-on-iphone-icuke上的 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'
4

2 回答 2

1

几天前,我遇到了各种各样的问题(更准确地说是 iCuke)。恐怕最后我放弃了它,转而去找弗兰克

也就是说,我和 Frank 有同样的问题,但我找到了比修复 XCode 集成更好的解决方案(恕我直言)。看看这个项目:我做了一个黄瓜步骤来在模拟器中启动我的二进制文件,而不需要说服 XCode 进行竞标的笨拙的 Applescripts。也许您可以为 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
于 2011-02-16T07:40:54.693 回答
1

在 xcode 中稍作修改后,我能够解决超时问题。如果启用“Universal Access”,似乎可以解决此问题:单击“Xcode -> Preferences->Documentation”,确保选择了 Universal Access。

于 2011-09-26T13:13:15.687 回答