From 67c31c2f5f20408a634d2ac873f595941a14437e Mon Sep 17 00:00:00 2001 From: Adrian Regan Date: Mon, 24 Apr 2017 12:29:56 +0100 Subject: [PATCH] XCode was not finding the Info.plist when running snapshots. I think this is fixed now by setting absolute file paths --- .../ionic_integration/actions/ionic_ios_snapshot_action.rb | 6 +++--- lib/fastlane/plugin/ionic_integration/version.rb | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/fastlane/plugin/ionic_integration/actions/ionic_ios_snapshot_action.rb b/lib/fastlane/plugin/ionic_integration/actions/ionic_ios_snapshot_action.rb index a729a33..99a3e24 100644 --- a/lib/fastlane/plugin/ionic_integration/actions/ionic_ios_snapshot_action.rb +++ b/lib/fastlane/plugin/ionic_integration/actions/ionic_ios_snapshot_action.rb @@ -77,7 +77,7 @@ def self.generate_xcode_unit_test(config_folder, xcode_project_path, team_id, bu # Ok, let's rock and roll # UI.message "Creating UI Test Group #{scheme_name} for snapshots testing" - snap_group = proj.new_group(scheme_name.to_s, File.absolute_path(config_folder)) + snap_group = proj.new_group(scheme_name.to_s, File.absolute_path(config_folder), '') UI.message "Finding Main Target (of the Project)..." main_target = nil @@ -121,7 +121,7 @@ def self.generate_xcode_unit_test(config_folder, xcode_project_path, team_id, bu # Link our fastlane configured UI Unit Tests into the project Dir["#{config_folder}/*.plist", "#{config_folder}/*.swift"].each do |file| UI.message "Adding UI Test Source #{file}" - files << snap_group.new_reference(File.absolute_path(file)) + files << snap_group.new_reference(File.absolute_path(file), '') end target.add_file_references(files) @@ -143,7 +143,7 @@ def self.generate_xcode_unit_test(config_folder, xcode_project_path, team_id, bu proj.root_object.attributes.store('TargetAttributes', { target.uuid => target_config }) end - target.build_configuration_list.set_setting('INFOPLIST_FILE', "#{scheme_name}/Info.plist") + target.build_configuration_list.set_setting('INFOPLIST_FILE', File.absolute_path("#{config_folder}/Info.plist")) target.build_configuration_list.set_setting('SWIFT_VERSION', '3.0') target.build_configuration_list.set_setting('PRODUCT_NAME', "$(TARGET_NAME)") target.build_configuration_list.set_setting('TEST_TARGET_NAME', project_name) diff --git a/lib/fastlane/plugin/ionic_integration/version.rb b/lib/fastlane/plugin/ionic_integration/version.rb index 6250d11..6f44016 100644 --- a/lib/fastlane/plugin/ionic_integration/version.rb +++ b/lib/fastlane/plugin/ionic_integration/version.rb @@ -1,5 +1,5 @@ module Fastlane module IonicIntegration - VERSION = "0.1.2" + VERSION = "0.1.3" end end