Integrating Calabash with existing iOS app in Xcode issues

354 Views Asked by At

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?

2

There are 2 best solutions below

0
On BEST ANSWER

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.

6
On

I am not really sure what exactly may be the problem. But which I feel as it is available on Cocoapods you should use it using pod. Which is much easier way and also easy to update. For reference Using CocoaPods