From ac03d7970bb6ece58af5fe30ec0448f0b30ae249 Mon Sep 17 00:00:00 2001 From: dabing1022 Date: Wed, 13 Jan 2021 17:17:07 +0800 Subject: [PATCH 1/5] fix: multiple dependencies error --- .../lib/cocoapods-imy-bin/command/bin/update.rb | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/cocoapods-imy-bin/lib/cocoapods-imy-bin/command/bin/update.rb b/cocoapods-imy-bin/lib/cocoapods-imy-bin/command/bin/update.rb index bda4dff..2329009 100755 --- a/cocoapods-imy-bin/lib/cocoapods-imy-bin/command/bin/update.rb +++ b/cocoapods-imy-bin/lib/cocoapods-imy-bin/command/bin/update.rb @@ -111,9 +111,12 @@ def self.load_local_podfile end target_dependencies.each do |target_dependency| - next unless target_dependency.is_a?(Hash) && - target_dependency.keys.first && - target_dependency.keys.first == local_dependency.keys.first + dp_hash_equal = target_dependency.is_a?(Hash) && + target_dependency.keys.first && + target_dependency.keys.first == local_dependency.keys.first + dp_str_equal = target_dependency.is_a?(String) && + target_dependency == local_dependency.keys.first + next unless dp_hash_equal || dp_str_equal target_dependencies.delete target_dependency break From 6db2568e4774d43ea2b86cff58c7725269a7d9c3 Mon Sep 17 00:00:00 2001 From: dabing1022 Date: Thu, 14 Jan 2021 12:08:48 +0800 Subject: [PATCH 2/5] fix: delete default command open --- cocoapods-imy-bin/lib/cocoapods-imy-bin/command/bin.rb | 2 -- 1 file changed, 2 deletions(-) diff --git a/cocoapods-imy-bin/lib/cocoapods-imy-bin/command/bin.rb b/cocoapods-imy-bin/lib/cocoapods-imy-bin/command/bin.rb index 8c26858..c9b072a 100755 --- a/cocoapods-imy-bin/lib/cocoapods-imy-bin/command/bin.rb +++ b/cocoapods-imy-bin/lib/cocoapods-imy-bin/command/bin.rb @@ -34,8 +34,6 @@ class Bin < Command include CBin::SpecFilesHelper self.abstract_command = true - - self.default_subcommand = 'open' self.summary = '组件二进制化插件.' self.description = <<-DESC 组件二进制化插件。利用源码私有源与二进制私有源实现对组件依赖类型的切换。 From 501d24e62c9200fb39764f35aae159cab05f19ef Mon Sep 17 00:00:00 2001 From: dabing1022 Date: Thu, 14 Jan 2021 17:44:56 +0800 Subject: [PATCH 3/5] fix: build type error --- .../lib/cocoapods-imy-bin/native/podfile_generator.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cocoapods-imy-bin/lib/cocoapods-imy-bin/native/podfile_generator.rb b/cocoapods-imy-bin/lib/cocoapods-imy-bin/native/podfile_generator.rb index cf23ad5..bf066d7 100755 --- a/cocoapods-imy-bin/lib/cocoapods-imy-bin/native/podfile_generator.rb +++ b/cocoapods-imy-bin/lib/cocoapods-imy-bin/native/podfile_generator.rb @@ -35,7 +35,7 @@ def podfile_for_spec(spec) plugin(*[name, options].compact) end - use_frameworks!(generator.configuration.use_frameworks?) + use_frameworks!(generator.use_frameworks_value) if (supported_swift_versions = generator.supported_swift_versions) supports_swift_versions(supported_swift_versions) From 15f49247340831312ff1839198b73885861722f0 Mon Sep 17 00:00:00 2001 From: dabing1022 Date: Thu, 14 Jan 2021 18:16:46 +0800 Subject: [PATCH 4/5] fix: fix lib name build by xcodebuild --- .../lib/cocoapods-imy-bin/helpers/framework_builder.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cocoapods-imy-bin/lib/cocoapods-imy-bin/helpers/framework_builder.rb b/cocoapods-imy-bin/lib/cocoapods-imy-bin/helpers/framework_builder.rb index bdfc494..dca5ecc 100755 --- a/cocoapods-imy-bin/lib/cocoapods-imy-bin/helpers/framework_builder.rb +++ b/cocoapods-imy-bin/lib/cocoapods-imy-bin/helpers/framework_builder.rb @@ -106,7 +106,7 @@ def build_static_library_for_ios(output) # if is_debug_model libs = (ios_architectures + ios_architectures_sim) .map do |arch| - library = "build-#{arch}/lib#{target_name}.a" + library = "build-#{arch}/lib#{@spec.name}.a" library end # else From 1abeaa5b8e687ba2490d74e17642cbc12db21dd5 Mon Sep 17 00:00:00 2001 From: "Mr.Coder" Date: Fri, 15 Jan 2021 20:25:39 +0800 Subject: [PATCH 5/5] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 70a50df..9715138 100644 --- a/README.md +++ b/README.md @@ -7,6 +7,7 @@ Podfile
+ ### 特色: 1. **无入侵、无感知、不影响现有业务,不影响现有代码框架、完全绿色产品~**