cocoapods-xcremotecache 0.0.12 → 0.0.13

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 44c934e165d3bedbc93841e34cc60738b7108e04e89cc6bd15da4aa5b404f7a2
4
- data.tar.gz: c29b65d77ac3843d0c8c6caa4253c6168fd1fb19467b9d1cce643e35a111022c
3
+ metadata.gz: 8929b95b00fd3885898cf18700dddc98fc22b6918f806dae77dd999848a26a35
4
+ data.tar.gz: f1e5cdb7db24fbc0c3b29e048424643621dc7c5fea985d0a29d26689e4441deb
5
5
  SHA512:
6
- metadata.gz: 3bdf484d34a827187b7b6f8fb06153111f2d28ad568579d04737900d96c9cc7f4883e4eb38a9e592642e36900907beb4a7b171f7a5d3455206ac3fa8f8aaf46a
7
- data.tar.gz: 2e5b3744bdeecbb01109b308af832b1d38312e73c050f5f46ae78dc6a6b7c3909055b4539980293026612bbca2f79dcecd6d481545aab1fe7c455b7bb1705593
6
+ metadata.gz: d79a51a5c7c21a472caa1311e7208b25322b13a9190cbc29f06d302f1e8d445073d1d985ed5d6626b78de93f28ac08ffb2866195fcd80dc1fecdad4817a971a5
7
+ data.tar.gz: bfd2ef88c899f0e6be31ea12109aaffcc09e30582fee638d2b1a206d2e7460fe0249d5695223abcc9220a4425363ebd4deb49102f5df0b9e4daed32e594796cf
@@ -127,6 +127,8 @@ module CocoapodsXCRemoteCacheModifier
127
127
  config.build_settings['SWIFT_EXEC'] = ["$SRCROOT/#{srcroot_relative_xc_location}/xcswiftc"]
128
128
  config.build_settings['LIBTOOL'] = ["$SRCROOT/#{srcroot_relative_xc_location}/xclibtool"]
129
129
  config.build_settings['LD'] = ["$SRCROOT/#{srcroot_relative_xc_location}/xcld"]
130
+ config.build_settings['LDPLUSPLUS'] = ["$SRCROOT/#{srcroot_relative_xc_location}/xcldplusplus"]
131
+ config.build_settings['SWIFT_USE_INTEGRATED_DRIVER'] = ['NO']
130
132
 
131
133
  config.build_settings['XCREMOTE_CACHE_FAKE_SRCROOT'] = fake_src_root
132
134
  config.build_settings['XCRC_PLATFORM_PREFERRED_ARCH'] = ["$(LINK_FILE_LIST_$(CURRENT_VARIANT)_$(PLATFORM_PREFERRED_ARCH):dir:standardizepath:file:default=arm64)"]
@@ -181,6 +183,11 @@ module CocoapodsXCRemoteCacheModifier
181
183
  "$(TARGET_BUILD_DIR)/$(MODULES_FOLDER_PATH)/$(PRODUCT_MODULE_NAME).swiftmodule/$(XCRC_PLATFORM_PREFERRED_ARCH)-$(LLVM_TARGET_TRIPLE_VENDOR)-$(SWIFT_PLATFORM_TARGET_PREFIX)$(LLVM_TARGET_TRIPLE_SUFFIX).swiftmodule.md5"
182
184
  ]
183
185
  postbuild_script.dependency_file = "$(TARGET_TEMP_DIR)/postbuild.d"
186
+ # Move postbuild (last element) to the position after compile sources phase (to make it real 'postbuild')
187
+ if !existing_postbuild_script
188
+ compile_phase_index = target.build_phases.index(target.source_build_phase)
189
+ target.build_phases.insert(compile_phase_index + 1, target.build_phases.delete(postbuild_script))
190
+ end
184
191
 
185
192
  # Mark a sha as ready for a given platform and configuration when building the final_target
186
193
  if (mode == 'producer' || mode == 'producer-fast') && target.name == final_target
@@ -208,6 +215,8 @@ module CocoapodsXCRemoteCacheModifier
208
215
  config.build_settings.delete('SWIFT_EXEC') if config.build_settings.key?('SWIFT_EXEC')
209
216
  config.build_settings.delete('LIBTOOL') if config.build_settings.key?('LIBTOOL')
210
217
  config.build_settings.delete('LD') if config.build_settings.key?('LD')
218
+ config.build_settings.delete('LDPLUSPLUS') if config.build_settings.key?('LDPLUSPLUS')
219
+ config.build_settings.delete('SWIFT_USE_INTEGRATED_DRIVER') if config.build_settings.key?('SWIFT_USE_INTEGRATED_DRIVER')
211
220
  # Remove Fake src root for ObjC & Swift
212
221
  config.build_settings.delete('XCREMOTE_CACHE_FAKE_SRCROOT')
213
222
  config.build_settings.delete('XCRC_PLATFORM_PREFERRED_ARCH')
@@ -231,7 +240,7 @@ module CocoapodsXCRemoteCacheModifier
231
240
  end
232
241
 
233
242
  def self.download_xcrc_if_needed(local_location)
234
- required_binaries = ['xcld', 'xclibtool', 'xcpostbuild', 'xcprebuild', 'xcprepare', 'xcswiftc']
243
+ required_binaries = ['xcld', 'xcldplusplus', 'xclibtool', 'xcpostbuild', 'xcprebuild', 'xcprepare', 'xcswiftc']
235
244
  binaries_exist = required_binaries.reduce(true) do |exists, filename|
236
245
  file_path = File.join(local_location, filename)
237
246
  exists = exists && File.exist?(file_path)
@@ -13,5 +13,5 @@
13
13
  # limitations under the License.
14
14
 
15
15
  module CocoapodsXcremotecache
16
- VERSION = "0.0.12"
16
+ VERSION = "0.0.13"
17
17
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cocoapods-xcremotecache
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.12
4
+ version: 0.0.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bartosz Polaczyk
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2022-05-19 00:00:00.000000000 Z
12
+ date: 2022-07-06 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: CocoaPods plugin that enables XCRemoteCache with the project.
15
15
  email: