From 04ee92e289ef5a8c6b5225641f6cea4072bb7b29 Mon Sep 17 00:00:00 2001 From: "chen.yang" Date: Thu, 7 May 2020 15:23:01 +0800 Subject: [PATCH 1/2] fix BuildType --- lib/cocoapods-packager/pod_utils.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/cocoapods-packager/pod_utils.rb b/lib/cocoapods-packager/pod_utils.rb index 3819dd7..19b7191 100644 --- a/lib/cocoapods-packager/pod_utils.rb +++ b/lib/cocoapods-packager/pod_utils.rb @@ -158,7 +158,7 @@ def build_dynamic_target(dynamic_sandbox, static_installer, platform) file_accessors = create_file_accessors(static_target, dynamic_sandbox) archs = [] - dynamic_target = Pod::PodTarget.new(dynamic_sandbox, true, static_target.user_build_configurations, archs, platform, static_target.specs, static_target.target_definitions, file_accessors) + dynamic_target = Pod::PodTarget.new(dynamic_sandbox, Pod::BuildType.dynamic_library, static_target.user_build_configurations, archs, platform, static_target.specs, static_target.target_definitions, file_accessors) dynamic_target end From 75636187c99febde3df8ba2f855e1f2cc0314b35 Mon Sep 17 00:00:00 2001 From: "chen.yang" Date: Wed, 20 May 2020 16:20:21 +0800 Subject: [PATCH 2/2] add require --- lib/cocoapods-packager/pod_utils.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/cocoapods-packager/pod_utils.rb b/lib/cocoapods-packager/pod_utils.rb index 19b7191..d2ee593 100644 --- a/lib/cocoapods-packager/pod_utils.rb +++ b/lib/cocoapods-packager/pod_utils.rb @@ -1,3 +1,4 @@ +require 'cocoapods-core' module Pod class Command class Package < Command