Summary: This fixes the yogakit compilation bug for xcode 11, where it fails to find swift core frameworks for pure objc project. https://github.com/Carthage/Carthage/issues/2825 https://twitter.com/krzyzanowskim/status/1151549874653081601?s=21 Also published this podspec on cocoapods and deleted .swift-version file as it was not required, because swift version is mentioned in podspec Reviewed By: SidharthGuglani Differential Revision: D18420963 fbshipit-source-id: d617bf643ac6481d6add86e6a4bfadd6e0d0c229
40 lines
1.6 KiB
Ruby
40 lines
1.6 KiB
Ruby
# Copyright (c) Facebook, Inc. and its affiliates.
|
|
#
|
|
# This source code is licensed under the MIT license found in the
|
|
# LICENSE file in the root directory of this source tree.
|
|
|
|
podspec = Pod::Spec.new do |spec|
|
|
spec.name = 'YogaKit'
|
|
spec.version = '1.18.1'
|
|
spec.license = { :type => 'MIT', :file => "LICENSE" }
|
|
spec.homepage = 'https://facebook.github.io/yoga/'
|
|
spec.documentation_url = 'https://facebook.github.io/yoga/docs/'
|
|
|
|
spec.summary = 'Yoga is a cross-platform layout engine which implements Flexbox.'
|
|
spec.description = 'Yoga is a cross-platform layout engine enabling maximum collaboration within your team by implementing an API many designers are familiar with, and opening it up to developers across different platforms.'
|
|
|
|
spec.authors = 'Facebook'
|
|
spec.source = {
|
|
:git => 'https://github.com/facebook/yoga.git',
|
|
:tag => "1.18.0",
|
|
}
|
|
|
|
spec.platform = :ios
|
|
spec.ios.deployment_target = '8.0'
|
|
spec.ios.frameworks = 'UIKit'
|
|
spec.module_name = 'YogaKit'
|
|
spec.dependency 'Yoga', '~> 1.14'
|
|
# Fixes the bug related the xcode 11 not able to find swift related frameworks.
|
|
# https://github.com/Carthage/Carthage/issues/2825
|
|
# https://twitter.com/krzyzanowskim/status/1151549874653081601?s=21
|
|
spec.pod_target_xcconfig = {"LD_VERIFY_BITCODE": "NO"}
|
|
spec.source_files = 'YogaKit/Source/*.{h,m,swift}'
|
|
spec.public_header_files = 'YogaKit/Source/{YGLayout,UIView+Yoga}.h'
|
|
spec.private_header_files = 'YogaKit/Source/YGLayout+Private.h'
|
|
spec.swift_version = '5.1'
|
|
end
|
|
|
|
# See https://github.com/facebook/yoga/pull/366
|
|
podspec.attributes_hash["readme"] = "YogaKit/README.md"
|
|
podspec
|