Hiya,
brief
I can compile calabash-ios into a monotouch project; the server appears to start twice (!?) and cucumber can't connect to it.
I'd like to know of what else I can try to get these two playing nicely together.
full story
I'm trying to get calabash-ios working monotouch (i've got it the android side working fine). The trick with monotouch is that it auto-generates new xcodeproj whenever it needs to. This means that the calabash-ios gen stage can't be done reliably.
So I went down the manual installation path. I copied the calabash.framework folder into the root path of the project and updated the monotouch project options to include the following arguments: -gcc_flags "-force_load /Users/rboucher/projects/HelloMono/MonoForIPhone/calabash.framework/calabash -framework CFNetwork -framework CoreGraphics -lstdc++". I had to add the CoreGraphics framework to as it wouldn't build without it. This now builds and when I start the app (in the monodevelop IDE) I get the following in the output.
2012-09-20 09:13:08.294 MonoForIPhone[16188:c07] Creating the server: <LPHTTPServer: 0x9c13160>
2012-09-20 09:13:08.295 MonoForIPhone[16188:c07] simroot: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.1.sdk
2012-09-20 09:13:08.296 MonoForIPhone[16188:c07] Started LPHTTP server on port 37265
2012-09-20 09:13:08.457 MonoForIPhone[16188:2007] Creating the server: <LPHTTPServer: 0x9c56ba0>
2012-09-20 09:13:08.458 MonoForIPhone[16188:2007] simroot: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.1.sdk
2012-09-20 09:13:08.459 MonoForIPhone[16188:2007] Error starting LPHTTP Server: Error Domain=NSPOSIXErrorDomain Code=48 "Address already in use" UserInfo=0x9e57450 {NSLocalizedFailureReason=Error in bind() function, NSLocalizedDescription=Address already in use}
I find the server starting twice a potential smell. If I close the simulator and run cucumber from commandline. The simulator is started with the correct app but never establishes a connection. Here is the output.
Feature: Login feature
Scenario: Default # features/my_first.feature:3
#<Timeout::Error: Timeout::Error>
I can bundle this all onto github if anyone wants/needs to take a look at it, the app is nothing more than a single page that contains a button and a label.
Thanks,
Ryan