Title: Running Calabash Cucumber tests as part of CI for different Languages/Locale
Tags: ios;jenkins;cucumber;calabash;calabash-ios
Question: I am currently investigating running Calabash/Cucumber tests for iOS as part of a Jenkins build job. The idea is it will run the tests against the different languages the application supports.
The code to initialise the tests once the app has been built is:
system("SDK_VERSION=#{sdk_version} \
DEVICE='#{ios_device}' \
DEVICE_TARGET='#{device_name} (#{sdk_version} Simulator)' \
APP_BUNDLE_PATH='#{app_path}' \
CONNECT_TIMEOUT=#{connect_timeout} \
RESET_BETWEEN_SCENARIOS=1 \
SCREENSHOT_PATH='#{screenshotfolder}' \
cucumber --format json -o Reporting/#{log_file} #{cucumber_tags}")
I have come across this project (https://github.com/jonathanpenn/ui-screen-shooter) which runs some automation testing and launches the app in different languages but can't see how I can fit that into my project.
How can I set the language the simulator launches in when using cucumber?


Here is another answer: You can change the locale with command "calabash-ios sim locale  ".
Here is a sample copied from this https://groups.google.com/forum/#!msg/frank-discuss/o7JLlynTEsY/o9RtPhme7yUJ
calabash-ios sim locale
lists available locales
calabash-ios sim locale da sv
sets simulator language to Danish and regional settings to Swedish
You have to do this before you start your app (i.e. before simulator launches).
Comment for this answer: I have tried this but it does not seem to do anything. I have copied the .GlobalPreferences from an older version of Calabash which removes an error I was getting but then running this command (either before the calabash-ios console or as part of i.e. calabash-ios console sim locale fr) does nothing to change the langugae. I have also tried calling calabash-ios sim reset before both of these with no result.

Here is another answer: Its broken,Take a look at the video on youtube
Youtube video link for changing calabash IOS locale
Steps to change IOS simulator locale
Locate IOS simulator folder of the simulator with correct IOS version
update data/Library/Preferences/.GlobalPreferences.plist file
Ruby code to do that on Git Hub
Comment for this answer: This has been fixed in Calabash iOS 0.18.0.

{'source': 'StackExchangeDataset', 'subset': 'stackoverflow.com', 'metadata': {'AnswerCount': 2, 'CommentCount': 0, 'ContentLicense': 'CC BY-SA 3.0', 'CreationDate': '2015:00:01/07/15', 'FavoriteCount': None, 'PostTypeId': 1, 'Tags': '<ios><jenkins><cucumber><calabash><calabash-ios>', 'Title': 'Running Calabash Cucumber tests as part of CI for different Languages/Locale', 'ViewCount': 454, 'id': 27821274, 'user_AboutMe': '<p>iOS developer at Jaguar Land Rover. Been developing for iOS since 2010</p>\n', 'user_AccountId': 172400.0, 'user_DisplayName': 'SamRowley', 'user_Reputation': 3365.0, 'user_Views': 300.0, 'user_id': 400406.0}}