From 888902c9ded3c9ef86d664d088e7d771759f9846 Mon Sep 17 00:00:00 2001 From: Christian Falch Date: Tue, 24 Jun 2025 21:47:14 +0200 Subject: [PATCH] [ios][prebuild] fixed wrong type of source file After adding the podspec_source function we needed to be a bit more explicit with types, so where source files was originally defined in a variable and contained more than one entry we now needed to wrap it in an explicit array. --- .../react/renderer/graphics/React-graphics.podspec | 2 +- .../react-native/ReactCommon/react/utils/React-utils.podspec | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/react-native/ReactCommon/react/renderer/graphics/React-graphics.podspec b/packages/react-native/ReactCommon/react/renderer/graphics/React-graphics.podspec index 13fbcb142be..6f351f597c4 100644 --- a/packages/react-native/ReactCommon/react/renderer/graphics/React-graphics.podspec +++ b/packages/react-native/ReactCommon/react/renderer/graphics/React-graphics.podspec @@ -17,7 +17,7 @@ else end Pod::Spec.new do |s| - source_files = "*.{m,mm,cpp,h}", "platform/ios/**/*.{m,mm,cpp,h}" + source_files = ["*.{m,mm,cpp,h}", "platform/ios/**/*.{m,mm,cpp,h}"] header_search_paths = [ "\"$(PODS_TARGET_SRCROOT)/../../../\"", ] diff --git a/packages/react-native/ReactCommon/react/utils/React-utils.podspec b/packages/react-native/ReactCommon/react/utils/React-utils.podspec index 81038807c02..2472be4235a 100644 --- a/packages/react-native/ReactCommon/react/utils/React-utils.podspec +++ b/packages/react-native/ReactCommon/react/utils/React-utils.podspec @@ -17,7 +17,7 @@ else end Pod::Spec.new do |s| - source_files = "*.{m,mm,cpp,h}", "platform/ios/**/*.{m,mm,cpp,h}" + source_files = ["*.{m,mm,cpp,h}", "platform/ios/**/*.{m,mm,cpp,h}"] header_search_paths = [ "\"$(PODS_TARGET_SRCROOT)/../../\"", ] @@ -30,7 +30,7 @@ Pod::Spec.new do |s| s.author = "Meta Platforms, Inc. and its affiliates" s.platforms = min_supported_versions s.source = source - s.source_files = podspec_sources([source_files], ["*.h", "platform/ios/**/*.h"]) + s.source_files = podspec_sources(source_files, ["*.h", "platform/ios/**/*.h"]) s.header_dir = "react/utils" s.exclude_files = "tests"