Search code examples
iosobjective-crubyxcodecalabash-ios

Integrating Calabash with existing iOS app in Xcode issues


To setup Calabash-iOS I have followed below steps:

  • Installing using command gem install calabash-cucumber
  • In project folder, I have executed calabash-ios download

I have followed links like: this and this.

Now, since I don't want different target for my application, I have followed this link which explains the steps to create different scheme for Calabash integration.

I have changed all the Build Setting values like Other Linker Flags & Framework Search Path.

Finally, running the project doesn't start the server as described in their post. It seems that calabash framework is not loaded.

Am I missing any thing that needs to be done in source code? How will calabash framework be loaded in project?


Solution

  • You can find a very simple example in one of the Calabash repos: calabash/ios-iphone-only-app. The iPhone Only project has one target and that target links the calabash.framework.

    You can find a more advanced example in the Calabash iOS Smoke Test app which uses the Calabash dylibs. Instructions can be found in this pull-request. The Calabash iOS Smoke Test project loads the calabash dylibs into the production target when the configuration is Debug.