lib/cocoapods-jxedt/binary/hooks/post_install.rb in cocoapods-jxedt-0.0.12 vs lib/cocoapods-jxedt/binary/hooks/post_install.rb in cocoapods-jxedt-0.0.13

- old
+ new

@@ -12,11 +12,11 @@ # :post_install过程校验两次`pod install`的值 validate_pod_checksum unless @installer_context.sandbox.is_a?(Pod::PrebuildSandbox) end - def validate_pod_checksum + def validate_pod_checksum original_installer = ObjectSpace.each_object(Pod::Installer).reject {|installer| installer.sandbox.is_a?(Pod::PrebuildSandbox) }.first return if original_installer.nil? check_result = original_installer.lockfile == @installer_context.sandbox.source_lockfile unless check_result @@ -26,10 +26,10 @@ lockfile.internal_data["SPEC CHECKSUMS"].each_key { |name| value1 = lockfile.spec_checksums_hash_key(name) value2 = source_lockfile.spec_checksums_hash_key(name) validation_failed << name if value1.nil? || value2.nil? || value1 != value2 } - Pod::UI.warn "Lockfile文件校验失败,请检查Pod组件: #{validation_failed}" + Pod::UI.warn "⚠️ ⚠️ ⚠️ Lockfile文件校验失败,请检查Pod组件: #{validation_failed}" end end end end \ No newline at end of file