Compare commits

...
Author SHA1 Message Date
Christian Falch 2dc20c5dc7 [ios][prebuild] fix wrong directory in hermes prebuild check
When checking if we should download hermes artifacts, the path to the folder we're checking was wrong, causing hermes to always be downloaded.

This commit fixes this by renaming it from `Libraries` -> `Library`
2025-05-22 11:52:07 +02:00
Christian Falch 554dbce652 [ios][prebuild] add missing React-RCTSettings
Added missing module React-RCTSettings to the Swift package.

This was found when testing intergrating with a bare bones React Native project.
2025-05-22 08:34:48 +02:00
2 changed files with 10 additions and 1 deletions
+9
View File
@@ -514,6 +514,13 @@ let reactRCTLinking = RNTarget(
dependencies: [.jsi, .reactTurboModuleCore]
)
let reactSettings = RNTarget(
name: .reactSettings,
path: "Libraries/Settings",
searchPaths: ["ReactCommon", ReactFBReactNativeSpecPath, FBLazyVectorPath],
dependencies: [.reactTurboModuleCore, .yoga]
)
let targets = [
reactDebug,
jsi,
@@ -567,6 +574,7 @@ let targets = [
reactFeatureflagsNativemodule,
reactNativeModuleDom,
reactAppDelegate,
reactSettings
]
let package = Package(
@@ -646,6 +654,7 @@ extension String {
static let reactFeatureflagsNativemodule = "React-featureflagsnativemodule"
static let reactNativeModuleDom = "React-domnativemodule"
static let reactAppDelegate = "React-RCTAppDelegate"
static let reactSettings = "React-RCTSettings"
}
func relativeSearchPath(_ depth: Int, _ path: String) -> String {
+1 -1
View File
@@ -116,7 +116,7 @@ function checkExistingVersion(
const hermesXCFramework = path.join(
artifactsPath,
'destroot',
'Libraries',
'Library',
'Frameworks',
'universal',
'hermes.xcframework',