# cocoapods-core/podfile/target_definition.rb
def use_frameworks!(option = true)
value = case option
when true, false
option ? BuildType.dynamic_framework : BuildType.static_library
when Hash
BuildType.new(:linkage => option.fetch(:linkage), :packaging => :framework)
else
raise ArgumentError, "Got `#{option.inspect}`, should be a boolean or hash."
end
set_hash_value('uses_frameworks', value.to_hash)
end
podspec
podfile
出现了 build-arch目录下 全部是动态库的问题 https://github.com/MeetYouDevs/cocoapods-imy-bin/issues/93#issuecomment-759963867
之前的写法
误设置true导致走了 BuildType.dynamic_framework。
修改成官方写法会更严谨。(cocoapods-generate库 generate/podfile_generator.rb)