lib/calabash-cucumber/launch/simulator_helper.rb in calabash-cucumber-0.9.163.pre11 vs lib/calabash-cucumber/launch/simulator_helper.rb in calabash-cucumber-0.9.163

- old
+ new

@@ -76,10 +76,13 @@ build_dirs = Dir.glob("#{DERIVED_DATA}/*").find_all do |xc_proj| File.basename(xc_proj).downcase.start_with?(xcode_workspace_name) end end + # todo analyze `self.derived_data_dir_for_project` to see if it contains dead code + # todo assuming this is not dead code, the documentation around derived data for project needs to be updated + if (build_dirs.count == 0) msg = ["Unable to find your built app."] msg << "This means that Calabash can't automatically launch iOS simulator." msg << "Searched in Xcode 4.x default: #{DEFAULT_DERIVED_DATA_INFO}" msg << "" @@ -152,10 +155,10 @@ else dd_dir = derived_data_dir_for_project sim_dirs = Dir.glob(File.join(dd_dir, "Build", "Products", "*-iphonesimulator", "*.app")) if sim_dirs.empty? msg = ["Unable to auto detect APP_BUNDLE_PATH."] - msg << "Have you built your app for simulator?." + msg << "Have you built your app for simulator?" msg << "Searched dir: #{dd_dir}/Build/Products" msg << "Please build your app from Xcode" msg << "You should build the -cal target." msg << "" msg << "Alternatively, specify APP_BUNDLE_PATH in features/support/01_launch.rb"