diff --git a/README.md b/README.md index 70a50df..9715138 100644 --- a/README.md +++ b/README.md @@ -7,6 +7,7 @@ Podfile
+ ### 特色: 1. **无入侵、无感知、不影响现有业务,不影响现有代码框架、完全绿色产品~** 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 组件二进制化插件。利用源码私有源与二进制私有源实现对组件依赖类型的切换。 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 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 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)