[xcassets] Be sure to remove whitespace from Info.plist icon names.

This commit is contained in:
Eloy Durán
2013-10-14 15:50:27 +02:00
parent 12972f9271
commit 783f6b8887

View File

@@ -65,7 +65,7 @@ module Motion; module Project;
path = app_icons_info_plist_path(platform)
if File.exist?(path)
content = `/usr/libexec/PlistBuddy -c 'Print :CFBundleIcons:CFBundlePrimaryIcon:CFBundleIconFiles' "#{path}"`.strip
self.icons = content.split("\n")[1..-2]
self.icons = content.split("\n")[1..-2].map(&:strip)
end
end