cocoapods 1.0.0.beta.6 → 1.0.0.beta.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (34) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +46 -0
  3. data/lib/cocoapods.rb +2 -1
  4. data/lib/cocoapods/command.rb +1 -1
  5. data/lib/cocoapods/command/init.rb +4 -4
  6. data/lib/cocoapods/command/install.rb +1 -1
  7. data/lib/cocoapods/command/inter_process_communication.rb +3 -3
  8. data/lib/cocoapods/command/list.rb +1 -1
  9. data/lib/cocoapods/command/outdated.rb +1 -1
  10. data/lib/cocoapods/command/repo/add.rb +1 -1
  11. data/lib/cocoapods/command/repo/lint.rb +6 -6
  12. data/lib/cocoapods/command/repo/list.rb +2 -2
  13. data/lib/cocoapods/command/repo/push.rb +13 -15
  14. data/lib/cocoapods/command/repo/update.rb +1 -1
  15. data/lib/cocoapods/command/setup.rb +2 -2
  16. data/lib/cocoapods/command/spec.rb +1 -1
  17. data/lib/cocoapods/config.rb +5 -0
  18. data/lib/cocoapods/core_overrides.rb +1 -0
  19. data/lib/cocoapods/downloader.rb +5 -18
  20. data/lib/cocoapods/downloader/request.rb +1 -10
  21. data/lib/cocoapods/gem_version.rb +1 -1
  22. data/lib/cocoapods/generator/copy_resources_script.rb +17 -17
  23. data/lib/cocoapods/generator/embed_frameworks_script.rb +2 -2
  24. data/lib/cocoapods/generator/info_plist_file.rb +1 -0
  25. data/lib/cocoapods/installer.rb +3 -1
  26. data/lib/cocoapods/installer/analyzer.rb +4 -4
  27. data/lib/cocoapods/installer/target_installer/pod_target_installer.rb +1 -1
  28. data/lib/cocoapods/resolver.rb +9 -6
  29. data/lib/cocoapods/sandbox/path_list.rb +1 -1
  30. data/lib/cocoapods/sources_manager.rb +42 -539
  31. data/lib/cocoapods/user_interface.rb +4 -0
  32. data/lib/cocoapods/user_interface/error_report.rb +1 -1
  33. data/lib/cocoapods/validator.rb +1 -1
  34. metadata +26 -55
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 82ef0fd2f13afd200f730d294d1e85d7aac49aba
4
- data.tar.gz: c2b830bfc6c0edb7dd4e8ed8ab40409126825420
3
+ metadata.gz: 3dad1137b88db30433224f32beb6b05fda8a7520
4
+ data.tar.gz: 8dd9cf3861598c0cbf0edbd0ddddb48772a99980
5
5
  SHA512:
6
- metadata.gz: e426d23e4284592fbdb93d1591d5a30d96b30dfc6b98b51a1da55476a0678075599892f82b9bf4d3d4885e5840f6d10efc986bcc52ba1e7d25889ccee0256b5f
7
- data.tar.gz: 55d32672b07f933172d9e6cd3d90112a0fa4d0a863db32a3ea7747399312ffddc3ab6ee2b4df772a638d6abe12eee4aa84d48b2fef99755c9ea30cbebcecb068
6
+ metadata.gz: e4f0c3204e161850bbb8f28146aa44217341c3bf789447332b828a18920f8b3a26ffc0e96c8253de20c384beea82ec24eb9048adab11279dcdebda1d88088224
7
+ data.tar.gz: 6f5815cb525de8814396def649f642cf31745e2551935e9fa76795975217ccba909053e91cf63a928ef986f913948e920c66309b1187560244506ae7ac6b4001
@@ -4,6 +4,52 @@ To install or update CocoaPods see this [guide](http://docs.cocoapods.org/guides
4
4
 
5
5
  To install release candidates run `[sudo] gem install cocoapods --pre`
6
6
 
7
+ ## 1.0.0.beta.7 (2016-04-15)
8
+
9
+ ##### Enhancements
10
+
11
+ * When an unknown build configuration is mentioned in the Podfile, CocoaPods
12
+ will suggest the build configurations found in the user project.
13
+ [Samuel Giddins](https://github.com/segiddins)
14
+ [#5113](https://github.com/CocoaPods/CocoaPods/issues/5113)
15
+
16
+ * Improved the error message when a matching spec cannot be found,
17
+ mentioning that now `pod repo update` is not implicit when running `pod
18
+ install`.
19
+ [Orta Therox](https://github.com/orta)
20
+ [#5135](https://github.com/CocoaPods/CocoaPods/issues/5135)
21
+
22
+ * Add support for sharded specs directories.
23
+ [Samuel Giddins](https://github.com/segiddins)
24
+ [#5002](https://github.com/CocoaPods/CocoaPods/issues/5002)
25
+
26
+ * Pass the build setting `OTHER_CODE_SIGN_FLAGS` to codesign for the generated
27
+ embed frameworks build phase's script, as Xcode does when signing natively.
28
+ [Václav Slavík](https://github.com/vslavik)
29
+ [#5087](https://github.com/CocoaPods/CocoaPods/pull/5087)
30
+
31
+ ##### Bug Fixes
32
+
33
+ * Sort files from `Dir.glob` explicitly to produce same result on case sensitive
34
+ file system as result on case insensitive file system.
35
+ [Soutaro Matsumoto](https://github.com/soutaro)
36
+
37
+ * Fix build path for resource bundles.
38
+ [Marius Rackwitz](https://github.com/mrackwitz)
39
+ [#5034](https://github.com/CocoaPods/CocoaPods/issues/5034)
40
+
41
+ * Rely on `TARGET_BUILD_DIR` instead of `CONFIGURATION_BUILD_DIR` in the
42
+ generated embed resources build phase's script, so that UI test targets can
43
+ be run.
44
+ [seaders](https://github.com/seaders)
45
+ [#5133](https://github.com/CocoaPods/CocoaPods/issues/5133)
46
+
47
+ * Ensure that a `CFBundleVersion` is set for resource bundles' Info.plist
48
+ files.
49
+ [Samuel Giddins](https://github.com/segiddins)
50
+ [#4897](https://github.com/CocoaPods/CocoaPods/issues/4897)
51
+
52
+
7
53
  ## 1.0.0.beta.6 (2016-03-15)
8
54
 
9
55
  ##### Breaking
@@ -49,7 +49,6 @@ module Pod
49
49
  autoload :Project, 'cocoapods/project'
50
50
  autoload :Resolver, 'cocoapods/resolver'
51
51
  autoload :Sandbox, 'cocoapods/sandbox'
52
- autoload :SourcesManager, 'cocoapods/sources_manager'
53
52
  autoload :Target, 'cocoapods/target'
54
53
  autoload :Validator, 'cocoapods/validator'
55
54
 
@@ -68,4 +67,6 @@ module Pod
68
67
  autoload :UmbrellaHeader, 'cocoapods/generator/umbrella_header'
69
68
  autoload :XCConfig, 'cocoapods/generator/xcconfig'
70
69
  end
70
+
71
+ require 'cocoapods/core_overrides'
71
72
  end
@@ -93,7 +93,7 @@ module Pod
93
93
  # @return [void]
94
94
  #
95
95
  def ensure_master_spec_repo_exists!
96
- unless SourcesManager.master_repo_functional?
96
+ unless config.sources_manager.master_repo_functional?
97
97
  Setup.new(CLAide::ARGV.new([])).run
98
98
  end
99
99
  end
@@ -34,8 +34,8 @@ module Pod
34
34
  help! "Xcode project at #{@project_path} does not exist" unless File.exist? @project_path
35
35
  project_path = @project_path
36
36
  else
37
- raise Informative, 'No xcode project found, please specify one' unless @project_paths.length > 0
38
- raise Informative, 'Multiple xcode projects found, please specify one' unless @project_paths.length == 1
37
+ raise Informative, 'No Xcode project found, please specify one' unless @project_paths.length > 0
38
+ raise Informative, 'Multiple Xcode projects found, please specify one' unless @project_paths.length == 1
39
39
  project_path = @project_paths.first
40
40
  end
41
41
  @xcode_project = Xcodeproj::Project.open(project_path)
@@ -54,10 +54,10 @@ module Pod
54
54
  #
55
55
  def podfile_template(project)
56
56
  podfile = ''
57
- podfile << "xcodeproj '#{@project_path}'\n\n" if @project_path
57
+ podfile << "project '#{@project_path}'\n\n" if @project_path
58
58
  podfile << <<-PLATFORM.strip_heredoc
59
59
  # Uncomment this line to define a global platform for your project
60
- # platform :ios, '8.0'
60
+ # platform :ios, '9.0'
61
61
  # Uncomment this line if you're using Swift
62
62
  # use_frameworks!
63
63
  PLATFORM
@@ -4,7 +4,7 @@ module Pod
4
4
  include RepoUpdate
5
5
  include ProjectDirectory
6
6
 
7
- self.summary = 'Install project dependencies to Podfile.lock versions'
7
+ self.summary = 'Install project dependencies according to versions from a Podfile.lock'
8
8
 
9
9
  self.description = <<-DESC
10
10
  Downloads all dependencies defined in `Podfile` and creates an Xcode
@@ -81,7 +81,7 @@ module Pod
81
81
 
82
82
  def run
83
83
  require 'yaml'
84
- sets = SourcesManager.aggregate.all_sets
84
+ sets = config.sources_manager.aggregate.all_sets
85
85
  result = {}
86
86
  sets.each do |set|
87
87
  begin
@@ -117,8 +117,8 @@ module Pod
117
117
  DESC
118
118
 
119
119
  def run
120
- SourcesManager.updated_search_index
121
- output_pipe.puts(SourcesManager.search_index_path)
120
+ config.sources_manager.updated_search_index
121
+ output_pipe.puts(config.sources_manager.search_index_path)
122
122
  end
123
123
  end
124
124
 
@@ -20,7 +20,7 @@ module Pod
20
20
  def run
21
21
  update_if_necessary!
22
22
 
23
- sets = SourcesManager.aggregate.all_sets
23
+ sets = config.sources_manager.aggregate.all_sets
24
24
  sets.each { |set| UI.pod(set, :name_and_version) }
25
25
  UI.puts "\n#{sets.count} pods were found"
26
26
  end
@@ -8,7 +8,7 @@ module Pod
8
8
 
9
9
  self.description = <<-DESC
10
10
  Shows the outdated pods in the current Podfile.lock, but only those from
11
- spec repos, not those from local/external sources or `:head` versions.
11
+ spec repos, not those from local/external sources.
12
12
  DESC
13
13
 
14
14
  # Run the command
@@ -40,7 +40,7 @@ module Pod
40
40
  create_repos_dir
41
41
  clone_repo
42
42
  checkout_branch
43
- SourcesManager.check_version_information(dir)
43
+ config.sources_manager.sources([dir.basename.to_s]).each(&:verify_compatibility!)
44
44
  end
45
45
  end
46
46
 
@@ -36,19 +36,19 @@ module Pod
36
36
  def run
37
37
  sources = if @name
38
38
  if File.exist?(@name)
39
- [Pathname.new(@name)]
39
+ [Source.new(Pathname(@name))]
40
40
  else
41
- SourcesManager.sources([@name]).map(&:repo)
41
+ config.sources_manager.sources([@name])
42
42
  end
43
43
  else
44
- SourcesManager.aggregate.sources.map(&:repo)
44
+ config.sources_manager.all
45
45
  end
46
46
 
47
47
  sources.each do |source|
48
- SourcesManager.check_version_information(source)
49
- UI.puts "\nLinting spec repo `#{source.basename}`\n".yellow
48
+ source.verify_compatibility!
49
+ UI.puts "\nLinting spec repo `#{source.name}`\n".yellow
50
50
 
51
- validator = Source::HealthReporter.new(source)
51
+ validator = Source::HealthReporter.new(source.repo)
52
52
  validator.pre_check do |_name, _version|
53
53
  UI.print '.'
54
54
  end
@@ -30,7 +30,7 @@ module Pod
30
30
  # - path: /Users/lascorbe/.cocoapods/repos/test
31
31
  #
32
32
  def run
33
- sources = SourcesManager.all
33
+ sources = config.sources_manager.all
34
34
  print_sources(sources) unless @count_only
35
35
  print_count_of_sources(sources)
36
36
  end
@@ -45,7 +45,7 @@ module Pod
45
45
  # @return [void]
46
46
  #
47
47
  def print_source(source)
48
- if SourcesManager.git_repo?(source.repo)
48
+ if source.git?
49
49
  Dir.chdir(source.repo) do
50
50
  branch_name = `git name-rev --name-only HEAD 2>/dev/null`.strip
51
51
  branch_name = 'unknown' if branch_name.empty?
@@ -38,7 +38,8 @@ module Pod
38
38
  @allow_warnings = argv.flag?('allow-warnings')
39
39
  @local_only = argv.flag?('local-only')
40
40
  @repo = argv.shift_argument
41
- @source_urls = argv.option('sources', SourcesManager.all.map(&:url).join(',')).split(',')
41
+ @source = config.sources_manager.sources([@repo]).first
42
+ @source_urls = argv.option('sources', config.sources_manager.all.map(&:url).join(',')).split(',')
42
43
  @podspec = argv.shift_argument
43
44
  @use_frameworks = !argv.flag?('use-libraries')
44
45
  @private = argv.flag?('private', true)
@@ -48,8 +49,14 @@ module Pod
48
49
  end
49
50
 
50
51
  def validate!
51
- super
52
52
  help! 'A spec-repo name is required.' unless @repo
53
+ unless @source.repo.directory?
54
+ raise Informative,
55
+ "Unable to find the `#{@repo}` repo. " \
56
+ 'If it has not yet been cloned, add it via `pod repo add`.'
57
+ end
58
+
59
+ super
53
60
  end
54
61
 
55
62
  def run
@@ -161,12 +168,12 @@ module Pod
161
168
  UI.puts "\nAdding the #{'spec'.pluralize(count)} to the `#{@repo}' repo\n".yellow
162
169
  podspec_files.each do |spec_file|
163
170
  spec = Pod::Specification.from_file(spec_file)
164
- output_path = File.join(repo_dir, spec.name, spec.version.to_s)
171
+ output_path = @source.pod_path(spec.name) + spec.version.to_s
165
172
  if @message && !@message.empty?
166
173
  message = @message
167
- elsif Pathname.new(output_path).exist?
174
+ elsif output_path.exist?
168
175
  message = "[Fix] #{spec}"
169
- elsif Pathname.new(File.join(repo_dir, spec.name)).exist?
176
+ elsif output_path.dirname.directory?
170
177
  message = "[Update] #{spec}"
171
178
  else
172
179
  message = "[Add] #{spec}"
@@ -205,16 +212,7 @@ module Pod
205
212
  # @return [Pathname] The directory of the repository.
206
213
  #
207
214
  def repo_dir
208
- specs_dir = Pathname.new(File.join(config.repos_dir, @repo, 'Specs'))
209
- dir = config.repos_dir + @repo
210
- if specs_dir.exist?
211
- dir = specs_dir
212
- elsif dir.exist?
213
- dir
214
- else
215
- raise Informative, "`#{@repo}` repo not found either in #{specs_dir} or #{dir}"
216
- end
217
- dir
215
+ @source.specs_dir
218
216
  end
219
217
 
220
218
  # @return [Array<Pathname>] The path of the specifications to push.
@@ -19,7 +19,7 @@ module Pod
19
19
  end
20
20
 
21
21
  def run
22
- SourcesManager.update(@name, true)
22
+ config.sources_manager.update(@name, true)
23
23
  end
24
24
  end
25
25
  end
@@ -59,7 +59,7 @@ module Pod
59
59
  # @return [void]
60
60
  #
61
61
  def update_master_repo
62
- SourcesManager.update('master', true)
62
+ config.sources_manager.update('master', true)
63
63
  end
64
64
 
65
65
  # Sets the repo to the master branch.
@@ -95,7 +95,7 @@ module Pod
95
95
  # @return [Pathname] the directory of the master repo.
96
96
  #
97
97
  def master_repo_dir
98
- SourcesManager.master_repo_dir
98
+ config.sources_manager.master_repo_dir
99
99
  end
100
100
  end
101
101
  end
@@ -40,7 +40,7 @@ module Pod
40
40
  # @return [Pathname] the absolute path or paths of the given podspec
41
41
  #
42
42
  def get_path_of_spec(spec, show_all = false)
43
- sets = SourcesManager.search_by_name(spec)
43
+ sets = config.sources_manager.search_by_name(spec)
44
44
 
45
45
  if sets.count == 1
46
46
  set = sets.first
@@ -130,6 +130,11 @@ module Pod
130
130
 
131
131
  attr_writer :repos_dir
132
132
 
133
+ def sources_manager
134
+ return @sources_manager if @sources_manager && @sources_manager.repos_dir == repos_dir
135
+ @sources_manager = Source::Manager.new(repos_dir)
136
+ end
137
+
133
138
  # @return [Pathname] the directory where the CocoaPods templates are stored.
134
139
  #
135
140
  def templates_dir
@@ -0,0 +1 @@
1
+ require 'cocoapods/sources_manager'
@@ -67,7 +67,7 @@ module Pod
67
67
  #
68
68
  def self.download_request(request, target)
69
69
  result = Response.new
70
- result.checkout_options = download_source(request.name, target, request.params, request.head?)
70
+ result.checkout_options = download_source(target, request.params)
71
71
  result.location = target
72
72
 
73
73
  if request.released_pod?
@@ -88,35 +88,22 @@ module Pod
88
88
 
89
89
  private
90
90
 
91
- # Downloads a pod with the given `name` and `params` to `target`.
92
- #
93
- # @param [String] name
91
+ # Downloads a pod with the given `params` to `target`.
94
92
  #
95
93
  # @param [Pathname] target
96
94
  #
97
95
  # @param [Hash<Symbol,String>] params
98
96
  #
99
- # @param [Boolean] head
100
- #
101
97
  # @return [Hash] The checkout options required to re-download this exact
102
98
  # same source.
103
99
  #
104
- def self.download_source(name, target, params, head)
100
+ def self.download_source(target, params)
105
101
  FileUtils.rm_rf(target)
106
102
  downloader = Downloader.for_target(target, params)
107
- if head
108
- unless downloader.head_supported?
109
- raise Informative, "The pod '#{name}' does not " \
110
- "support the :head option, as it uses a #{downloader.name} " \
111
- 'source. Remove that option to use this pod.'
112
- end
113
- downloader.download_head
114
- else
115
- downloader.download
116
- end
103
+ downloader.download
117
104
  target.mkpath
118
105
 
119
- if downloader.options_specific? && !head
106
+ if downloader.options_specific?
120
107
  params
121
108
  else
122
109
  downloader.checkout_options
@@ -23,11 +23,6 @@ module Pod
23
23
  #
24
24
  attr_reader :params
25
25
 
26
- # @return [Boolean] Whether the download request is for a head download.
27
- #
28
- attr_reader :head
29
- alias_method :head?, :head
30
-
31
26
  # Initialize a new instance
32
27
  #
33
28
  # @param [Specification,Nil] spec
@@ -42,15 +37,11 @@ module Pod
42
37
  # @param [Hash<Symbol,String>,Nil] params
43
38
  # see {#params}
44
39
  #
45
- # @param [Boolean] head
46
- # see {#head}
47
- #
48
- def initialize(spec: nil, released: false, name: nil, params: false, head: false)
40
+ def initialize(spec: nil, released: false, name: nil, params: false)
49
41
  @released_pod = released
50
42
  @spec = spec
51
43
  @params = spec ? (spec.source && spec.source.dup) : params
52
44
  @name = spec ? spec.name : name
53
- @head = head
54
45
 
55
46
  validate!
56
47
  end
@@ -1,5 +1,5 @@
1
1
  module Pod
2
2
  # The version of the CocoaPods command line tool.
3
3
  #
4
- VERSION = '1.0.0.beta.6'.freeze unless defined? Pod::VERSION
4
+ VERSION = '1.0.0.beta.7'.freeze unless defined? Pod::VERSION
5
5
  end
@@ -97,7 +97,7 @@ module Pod
97
97
  #!/bin/sh
98
98
  set -e
99
99
 
100
- mkdir -p "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}"
100
+ mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}"
101
101
 
102
102
  RESOURCES_TO_COPY=${PODS_ROOT}/resources-to-copy-${TARGETNAME}.txt
103
103
  > "$RESOURCES_TO_COPY"
@@ -140,30 +140,30 @@ EOM
140
140
  fi
141
141
  case $RESOURCE_PATH in
142
142
  *\.storyboard)
143
- echo "ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile ${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \\"$RESOURCE_PATH\\" .storyboard`.storyboardc $RESOURCE_PATH --sdk ${SDKROOT} ${TARGET_DEVICE_ARGS}"
144
- ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \\"$RESOURCE_PATH\\" .storyboard`.storyboardc" "$RESOURCE_PATH" --sdk "${SDKROOT}" ${TARGET_DEVICE_ARGS}
143
+ echo "ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile ${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \\"$RESOURCE_PATH\\" .storyboard`.storyboardc $RESOURCE_PATH --sdk ${SDKROOT} ${TARGET_DEVICE_ARGS}"
144
+ ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \\"$RESOURCE_PATH\\" .storyboard`.storyboardc" "$RESOURCE_PATH" --sdk "${SDKROOT}" ${TARGET_DEVICE_ARGS}
145
145
  ;;
146
146
  *\.xib)
147
- echo "ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile ${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \\"$RESOURCE_PATH\\" .xib`.nib $RESOURCE_PATH --sdk ${SDKROOT}"
148
- ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \\"$RESOURCE_PATH\\" .xib`.nib" "$RESOURCE_PATH" --sdk "${SDKROOT}"
147
+ echo "ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile ${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \\"$RESOURCE_PATH\\" .xib`.nib $RESOURCE_PATH --sdk ${SDKROOT}"
148
+ ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \\"$RESOURCE_PATH\\" .xib`.nib" "$RESOURCE_PATH" --sdk "${SDKROOT}"
149
149
  ;;
150
150
  *.framework)
151
- echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}"
152
- mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}"
153
- echo "rsync -av $RESOURCE_PATH ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}"
154
- rsync -av "$RESOURCE_PATH" "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}"
151
+ echo "mkdir -p ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}"
152
+ mkdir -p "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}"
153
+ echo "rsync -av $RESOURCE_PATH ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}"
154
+ rsync -av "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}"
155
155
  ;;
156
156
  *.xcdatamodel)
157
- echo "xcrun momc \\"$RESOURCE_PATH\\" \\"${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH"`.mom\\""
158
- xcrun momc "$RESOURCE_PATH" "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodel`.mom"
157
+ echo "xcrun momc \\"$RESOURCE_PATH\\" \\"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH"`.mom\\""
158
+ xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodel`.mom"
159
159
  ;;
160
160
  *.xcdatamodeld)
161
- echo "xcrun momc \\"$RESOURCE_PATH\\" \\"${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd\\""
162
- xcrun momc "$RESOURCE_PATH" "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd"
161
+ echo "xcrun momc \\"$RESOURCE_PATH\\" \\"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd\\""
162
+ xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd"
163
163
  ;;
164
164
  *.xcmappingmodel)
165
- echo "xcrun mapc \\"$RESOURCE_PATH\\" \\"${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm\\""
166
- xcrun mapc "$RESOURCE_PATH" "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm"
165
+ echo "xcrun mapc \\"$RESOURCE_PATH\\" \\"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm\\""
166
+ xcrun mapc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm"
167
167
  ;;
168
168
  *.xcassets)
169
169
  ABSOLUTE_XCASSET_FILE=$(realpath "$RESOURCE_PATH")
@@ -179,8 +179,8 @@ EOS
179
179
 
180
180
  RSYNC_CALL = <<EOS
181
181
 
182
- mkdir -p "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}"
183
- rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}"
182
+ mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}"
183
+ rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}"
184
184
  if [[ "${ACTION}" == "install" ]] && [[ "${SKIP_INSTALL}" == "NO" ]]; then
185
185
  mkdir -p "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}"
186
186
  rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}"