diff --git a/packages/react-native/scripts/spm/generate-spm-xcodeproj.js b/packages/react-native/scripts/spm/generate-spm-xcodeproj.js index 0b65ed16b18..45dbfcfe682 100644 --- a/packages/react-native/scripts/spm/generate-spm-xcodeproj.js +++ b/packages/react-native/scripts/spm/generate-spm-xcodeproj.js @@ -2154,6 +2154,7 @@ function addPreActionToScheme( const stiMatch = openTag.match(/shellToInvoke\s*=\s*"/); if (stiMatch != null) { const stiValueStart = + // $FlowFixMe[unsafe-addition] contentOpenIdx + stiMatch.index + stiMatch[0].length; const stiValueEnd = xmlWithScript.indexOf('"', stiValueStart); xmlWithScript = diff --git a/packages/react-native/scripts/spm/read-podspec.js b/packages/react-native/scripts/spm/read-podspec.js index 8fcf04bbf65..2789214d4f8 100644 --- a/packages/react-native/scripts/spm/read-podspec.js +++ b/packages/react-native/scripts/spm/read-podspec.js @@ -138,6 +138,7 @@ function runPodIpcSpec(podspecPath /*: string */) /*: RawSpec | null */ { const lastLineBrace = stdout.lastIndexOf('\n}'); const end = lastLineBrace >= 0 ? lastLineBrace + 2 : stdout.lastIndexOf('}') + 1; + // $FlowFixMe[invalid-compare] if (start < 0 || end <= start) { console.warn( '[read-podspec] pod ipc spec produced no line-anchored JSON object; ' +