From 9f72b60d9105431bd7ed2b902bad7f4cd7773788 Mon Sep 17 00:00:00 2001 From: Alexey Glushkov Date: Sat, 23 Dec 2017 20:18:12 +0300 Subject: [PATCH] Add Cocoapods static_framework support --- LayoutKit.podspec | 1 + Sources/ViewRecycler.swift | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/LayoutKit.podspec b/LayoutKit.podspec index c6c6986a..3b46c8bb 100644 --- a/LayoutKit.podspec +++ b/LayoutKit.podspec @@ -8,6 +8,7 @@ Pod::Spec.new do |spec| spec.source = { :git => 'https://github.com/linkedin/LayoutKit.git', :tag => spec.version } spec.source_files = 'Sources/**/*.swift' spec.documentation_url = 'http://layoutkit.org' + spec.static_framework = true spec.ios.deployment_target = '8.0' spec.ios.frameworks = 'Foundation', 'CoreGraphics', 'UIKit' diff --git a/Sources/ViewRecycler.swift b/Sources/ViewRecycler.swift index d3edca10..f1d5ff48 100644 --- a/Sources/ViewRecycler.swift +++ b/Sources/ViewRecycler.swift @@ -6,7 +6,7 @@ // software distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -import ObjectiveC +import Foundation /** Provides APIs to recycle views by id.