Skip to content

Commit

Permalink
XCode was not finding the Info.plist when running snapshots. I think …
Browse files Browse the repository at this point in the history
…this is fixed now by setting absolute file paths
  • Loading branch information
Adrian Regan committed Apr 24, 2017
1 parent 5a84ec9 commit 67c31c2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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), '<absolute>')

UI.message "Finding Main Target (of the Project)..."
main_target = nil
Expand Down Expand Up @@ -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), '<absolute>')
end

target.add_file_references(files)
Expand All @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion lib/fastlane/plugin/ionic_integration/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module Fastlane
module IonicIntegration
VERSION = "0.1.2"
VERSION = "0.1.3"
end
end

0 comments on commit 67c31c2

Please sign in to comment.