Step by step Cordova calabash-ios automation

Step by step guide about how to integrate calabash-ios with Cordova in an automated way without opening Apple Xcode.

Note: First try steps given on
If those steps aren’t working for you then try following steps. For me only manual steps given on above link worked.
Also this script doesn’t create separate target same as “calabsh-ios setup” command.

I also presume that you have already setup your cordova project and nodejs.
  1. sudo gem install calabash-cucumber If you get any error then try using following command
    sudo ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future gem install calabash-cucumber
  2. Go inside your Cordova project directory npm install xcode
    npm install fs-extra
    npm install underscore
  3. Download script “cordova-calabash-ios.js” from here and paste it inside your cordova project at www level (not inside www).
    (Note: This is very primitive script you can modify it according to your need. Let me know also know when you modify it. I will update your link here)
  4. Downlaod calabsh.framework.

    You may want to modify path to calabash.framework inside above downloaded script. I have added calabash.framework in however it is good if you get updated version.
  5. cordova platform add ios
    if not already added.
  6. node cordova-calabash-ios.js
  7. cordova compile ios
  8. APP_BUNDLE_PATH=”platforms/ios/build/emulator/Your” DEVICE_TARGET=’iPad – Simulator – iOS 7.0′ DEVICE=”ipad” POST_START_BREAK=0 calabash-ios console

    You should be seeing something like
    Running irb…
  9. start_test_server_in_background

    This will attempt to start iOS simulator and your app. Wait until it starts simulator and your app.
  10. query(“webView”)

    In output of above command you should be able to see string containing “class” => “UIWebView”.
    Further you can go through
If you have any issues please comment below.


Unknown said…

I blog often and I seriously thank you for your information. This great article has really peaked my interest. I am going to take a note of your website and keep checking for new details about once a week. I opted in for your Feed too. google mail sign in
Unknown said…
Thanks a lot very much for the high quality and results-oriented help. I won’t think twice to endorse your blog post to anybody who wants and needs support about this area.
Best RPA Training in Bangalore

Kamal said…
Magnificent article.I got some valuable data about android.Thanks for sharing this awesome post.
Education | Article Submission sites | Technology
Maha said…
This comment has been removed by the author.
Vicky Ram said…
Your post is really very helpful. Easy to learn as you explain things precisely. Thank you so much.

iOS Training Institutes in Chennai

iOS Training Chennai
Vicky Ram said…
Your post is really very helpful. Easy to learn as you explain things precisely. Thank you so much.

iOS Course in Chennai

iOS Training Chennai
Harshavardhan said…
Thanks for sharing this informative and valuable post with us...
UI UX Design Courses in Chennai
Rithi Rawat said…
Outstanding blog thanks for sharing such wonderful blog with us ,after long time came across such knowlegeble blog. keep sharing such informative blog with us.
machine learning Course in chennai

machine learning with python course in Chennai

Diya shree said…
Given so much info in it, The list of your blogs are very helpful for those who want to learn more interesting facts. Keeps the users interest in the website, and keep on sharing more
Our Credo Systemz Which is designed to offer you OpenStack Training skills required to kick-start your journey as an OpenStack Cloud Administrator.
Please free to call us @ +91 9884412301 / 9600112302

openstack training in Chennai | Openstack certification course in chennai | openstack certification training in Chennai | openstack training in chennai velachery
Unknown said…
Such a Great Article!! I learned something new from your blog. Amazing stuff. I would like to follow your blog frequently. Keep Rocking!!
Blue Prism training in chennai | Best Blue Prism Training Institute in Chennai
Anonymous said…
Nice blog..! I really loved reading through this article. Thanks for sharing such a
amazing post with us and keep blogging... AngularJS Training in Chennai | Best AngularJS Training Institute in Chennai
Anonymous said…
Wow!! Really a nice Article. Thank you so much for your efforts. Definitely, it will be helpful for others. I would like to follow your blog. Share more like this. Thanks Again.
iot training in Chennai | Best iot Training Institute in Chennai
Unknown said…
Great post! I am actually getting ready to across this information, It's very helpful for this blog. Also great with all of the valuable information you have Keep up the good work you are doing well.DevOps Training in Chennai | Best DevOps Training Institute in Chennai
alex said…
Earn with us on the best online casino platform BGAOC top casino online Come and win with us and only with us.
Unknown said…
thanks for sharing such information.this is really helpful for can also visit our blog
 Banquets in Indore

Popular posts from this blog

How to get local time from UTC using Moment.JS

Measure the height of keyboard on PhoneGap app using jQuery