mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Add dummy cpp for renderercss (#49553)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/49553 The new React-renderercss pod is an header only pod. These are not allowed by Cocoapods, because it will not materialize the framework when building with then turned on. the solution is to just add an empty source file to frorce cocoapods to materialize the .framework file and solve the dependency graph properly. ## Changelog: [Internal] - Add dummy file to React-renderercss Reviewed By: huntie Differential Revision: D69920318 fbshipit-source-id: e5cc092a480f7c86eeb295ed966f85b6f55fdc54
This commit is contained in:
committed by
Facebook GitHub Bot
parent
3eec4a3ea9
commit
0b67218a8a
@@ -98,6 +98,7 @@ Pod::Spec.new do |s|
|
||||
add_dependency(s, "React-RCTAnimation", :framework_name => 'RCTAnimation')
|
||||
add_dependency(s, "React-jsinspector", :framework_name => 'jsinspector_modern')
|
||||
add_dependency(s, "React-jsinspectortracing", :framework_name => 'jsinspector_moderntracing')
|
||||
add_dependency(s, "React-renderercss")
|
||||
|
||||
depend_on_js_engine(s)
|
||||
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
// This file is required for the CSS podpsec because this is a header-files only
|
||||
// module. Headers file only modules are not supported by Cocoapods when
|
||||
// building in dynamic framework mode. In that case, the dynamicFramework is not
|
||||
// generated because there is no binary to generate. This means that other
|
||||
// frameworks that depends on this will not find the headers they need. Adding a
|
||||
// simple empty dummy source file forces Cocoapods to generate the frameworks
|
||||
// and fixes the issue.
|
||||
Reference in New Issue
Block a user