Summary: Hi When I tried to archive macos catalyst app in Xcode I got errors: <img width="977" alt="Screenshot 2024-02-05 at 00 03 32" src="https://github.com/kesha-antonov/react-native/assets/11584712/b83f75a5-b42f-42e4-9afa-1e2527501baa"> This PR fixes archiving by linking PrivateHeaders in yoga.framework <img width="399" alt="Screenshot 2024-02-05 at 01 03 48" src="https://github.com/kesha-antonov/react-native/assets/11584712/089080ad-b1dc-4703-9273-d8aa3253205e"> <img width="1404" alt="Screenshot 2024-02-05 at 01 05 18" src="https://github.com/kesha-antonov/react-native/assets/11584712/5263cb80-8a53-4a51-bcfc-9d3a2ba739b4"> Prev PR here https://github.com/facebook/react-native/pull/42159 ## Changelog: [IOS] [FIXED] - fixed archiving for Mac Catalyst X-link: https://github.com/facebook/react-native/pull/42847 Reviewed By: NickGerleman Differential Revision: D53920474 Pulled By: cipolleschi fbshipit-source-id: 0534d9aa9d249e4e0c35ada0464c38c291be7f84
54 lines
1.5 KiB
Ruby
54 lines
1.5 KiB
Ruby
# Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
#
|
|
# This source code is licensed under the MIT license found in the
|
|
# LICENSE file in the root directory of this source tree.
|
|
|
|
|
|
Pod::Spec.new do |spec|
|
|
spec.name = 'Yoga'
|
|
spec.version = '0.0.0'
|
|
spec.license = { :type => 'MIT', :file => "LICENSE" }
|
|
spec.homepage = 'https://yogalayout.dev/'
|
|
spec.documentation_url = 'https://yogalayout.dev/docs'
|
|
|
|
spec.summary = 'An embeddable and performant flexbox layout engine with bindings for multiple languages'
|
|
|
|
spec.authors = {'Meta Open Source' => 'opensource@meta.com'}
|
|
spec.source = {
|
|
:git => 'https://github.com/facebook/yoga.git',
|
|
:tag => "v#{spec.version.to_s}",
|
|
}
|
|
|
|
spec.ios.deployment_target = "13.4"
|
|
|
|
spec.module_name = 'yoga'
|
|
spec.requires_arc = false
|
|
spec.pod_target_xcconfig = {
|
|
'DEFINES_MODULE' => 'YES'
|
|
}.merge!(ENV['USE_FRAMEWORKS'] != nil ? {
|
|
'HEADER_SEARCH_PATHS' => '"$(PODS_TARGET_SRCROOT)"'
|
|
} : {})
|
|
|
|
spec.compiler_flags = [
|
|
'-fno-omit-frame-pointer',
|
|
'-fexceptions',
|
|
'-Wall',
|
|
'-Werror',
|
|
'-Wextra',
|
|
'-Wconversion',
|
|
'-std=c++20',
|
|
'-fPIC'
|
|
]
|
|
|
|
spec.swift_version = '5.1'
|
|
spec.source_files = 'yoga/**/*.{h,cpp}'
|
|
spec.header_mappings_dir = 'yoga'
|
|
|
|
public_header_files = 'yoga/*.h'
|
|
spec.public_header_files = public_header_files
|
|
|
|
all_header_files = 'yoga/**/*.h'
|
|
spec.private_header_files = Dir.glob(all_header_files) - Dir.glob(public_header_files)
|
|
spec.preserve_paths = [all_header_files]
|
|
end
|