Skip to content

feat(MSDK-3095): Added cursor AI rules#187

Merged
uc-brunosilva merged 3 commits intomasterfrom
feat/MSDK-3095/create-cursor-ai-rules
Mar 19, 2026
Merged

feat(MSDK-3095): Added cursor AI rules#187
uc-brunosilva merged 3 commits intomasterfrom
feat/MSDK-3095/create-cursor-ai-rules

Conversation

@uc-christiansousa
Copy link
Contributor

@uc-christiansousa uc-christiansousa commented Mar 2, 2026

User description

Created multiple cursor rules for them to be used as a first basis

Summary by CodeRabbit

  • Documentation
    • Added comprehensive developer guidance covering project architecture, native module conventions (iOS/Android), React Native integration patterns, TypeScript conventions, testing strategies, CI/CD and security guidelines.
  • Chores
    • Added repository ignore/indexing rules and a Ruby version pin for the sample app.

CodeAnt-AI Description

Add contributor rules and repository ignore/indexing files to standardize native, TypeScript, testing, and CI practices

What Changed

  • Added human-readable contributor guidance covering iOS, Android, React Native, TypeScript, testing, CI/GitHub Actions, and security/Snyk practices so contributors follow consistent integration and native-bridge patterns
  • Added .cursorignore and .cursorindexingignore to prevent indexing and accidental commits of node_modules, build outputs, generated native/codegen files, lockfiles, and secret files
  • Added a sample Ruby version to the sample app to stabilize CocoaPods behavior in CI/local macOS setups

Impact

✅ Clearer native and TypeScript contribution guidelines
✅ Fewer accidental commits of build artifacts and secrets
✅ Fewer CI failures from mismatched local setups

💡 Usage Guide

Checking Your Pull Request

Every time you make a pull request, our system automatically looks through it. We check for security issues, mistakes in how you're setting up your infrastructure, and common code problems. We do this to make sure your changes are solid and won't cause any trouble later.

Talking to CodeAnt AI

Got a question or need a hand with something in your pull request? You can easily get in touch with CodeAnt AI right here. Just type the following in a comment on your pull request, and replace "Your question here" with whatever you want to ask:

@codeant-ai ask: Your question here

This lets you have a chat with CodeAnt AI about your pull request, making it easier to understand and improve your code.

Example

@codeant-ai ask: Can you suggest a safer alternative to storing this secret?

Preserve Org Learnings with CodeAnt

You can record team preferences so CodeAnt AI applies them in future reviews. Reply directly to the specific CodeAnt AI suggestion (in the same thread) and replace "Your feedback here" with your input:

@codeant-ai: Your feedback here

This helps CodeAnt AI learn and adapt to your team's coding style and standards.

Example

@codeant-ai: Do not flag unused imports.

Retrigger review

Ask CodeAnt AI to review the PR again, by typing:

@codeant-ai: review

Check Your Repository Health

To analyze the health of your code repository, visit our dashboard at https://app.codeant.ai. This tool helps you identify potential issues and areas for improvement in your codebase, ensuring your repository maintains high standards of code health.

@codeant-ai
Copy link

codeant-ai bot commented Mar 2, 2026

CodeAnt AI is reviewing your PR.


Thanks for using CodeAnt! 🎉

We're free for open-source projects. if you're enjoying it, help us grow by sharing.

Share on X ·
Reddit ·
LinkedIn

@qodo-code-review
Copy link

Review Summary by Qodo

Add Cursor AI rules and configuration for project guidance

✨ Enhancement

Grey Divider

Walkthroughs

Description
• Added comprehensive Cursor AI rules for project guidance
• Created platform-specific rules for Android, iOS, and React Native
• Established CI/CD, testing, and security best practices documentation
• Added Cursor ignore configuration files for optimal indexing
Diagram
flowchart LR
  A["Cursor Rules"] --> B["Project Overview"]
  A --> C["Platform Rules"]
  C --> D["Android Native"]
  C --> E["iOS Native"]
  C --> F["React Native"]
  A --> G["Development Guides"]
  G --> H["TypeScript Conventions"]
  G --> I["Testing"]
  G --> J["CI/CD & Security"]
  A --> K["Cursor Config"]
  K --> L[".cursorignore"]
  K --> M[".cursorindexingignore"]
Loading

Grey Divider

File Changes

1. .cursor/rules/project-overview.mdc 📝 Documentation +31/-0

Project architecture and key conventions overview

.cursor/rules/project-overview.mdc


2. .cursor/rules/android-native.mdc 📝 Documentation +27/-0

Android native module structure and build conventions

.cursor/rules/android-native.mdc


3. .cursor/rules/ios-native.mdc 📝 Documentation +28/-0

iOS native module structure and build conventions

.cursor/rules/ios-native.mdc


View more (8)
4. .cursor/rules/react-native.mdc 📝 Documentation +30/-0

React Native SDK and sample app patterns

.cursor/rules/react-native.mdc


5. .cursor/rules/typescript-conventions.mdc 📝 Documentation +36/-0

TypeScript style and export requirements

.cursor/rules/typescript-conventions.mdc


6. .cursor/rules/testing.mdc 📝 Documentation +33/-0

Testing conventions across JavaScript, iOS, Android

.cursor/rules/testing.mdc


7. .cursor/rules/ci-github-actions.mdc 📝 Documentation +34/-0

GitHub Actions CI/CD workflow and job specifications

.cursor/rules/ci-github-actions.mdc


8. .cursor/rules/security-snyk.mdc 📝 Documentation +57/-0

Security best practices and Snyk compliance rules

.cursor/rules/security-snyk.mdc


9. .cursorignore ⚙️ Configuration changes +113/-0

Cursor ignore patterns for dependencies and artifacts

.cursorignore


10. .cursorindexingignore ⚙️ Configuration changes +48/-0

Cursor indexing ignore patterns for large files

.cursorindexingignore


11. sample/.ruby-version ⚙️ Configuration changes +1/-0

Ruby version specification for sample app

sample/.ruby-version


Grey Divider

Qodo Logo

@qodo-code-review
Copy link

qodo-code-review bot commented Mar 2, 2026

Code Review by Qodo

🐞 Bugs (3) 📘 Rule violations (0) 📎 Requirement gaps (0)

Grey Divider


Action required

1. Android minSdk wrong🐞 Bug ✓ Correctness
Description
The new Android Cursor rule claims Min SDK 26, but the actual Android library module is configured
with minSdk 24 (and legacy gradle uses 21). This mismatch can mislead contributors/AI into using
APIs unavailable on supported devices or proposing unnecessary minSdk bumps.
Code

.cursor/rules/android-native.mdc[24]

+- Min SDK: 26 (Android 8.0).
Evidence
The Cursor rule states Min SDK 26, while the Android module’s build config sets minSdk to 24 (and
legacy config to 21), so the rule is factually incorrect relative to the repo configuration.

.cursor/rules/android-native.mdc[22-27]
android/build.gradle.kts[21-29]
android/build-legacy.gradle[42-46]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
The Cursor rule `.cursor/rules/android-native.mdc` documents an Android Min SDK of 26, but the repository’s Android library module currently uses `minSdk = 24`. This mismatch can cause AI-assisted changes (or contributors following the rule) to use APIs not available on supported devices or propose unnecessary breaking minSdk increases.
## Issue Context
Source of truth is the Gradle configuration in `android/build.gradle.kts`.
## Fix Focus Areas
- .cursor/rules/android-native.mdc[22-27]
- android/build.gradle.kts[21-29]

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


2. iOS target wrong🐞 Bug ✓ Correctness
Description
The new iOS Cursor rule claims a minimum iOS deployment target of 16.0, but the podspec and Xcode
project are configured for iOS 11.0. This can lead to AI/contributor changes using iOS APIs
unavailable on supported OS versions.
Code

.cursor/rules/ios-native.mdc[26]

+- Minimum iOS deployment target: 16.0.
Evidence
The Cursor rule’s stated minimum iOS version (16.0) contradicts the podspec and the native Xcode
project deployment target (11.0), making the rule incorrect for this repo.

.cursor/rules/ios-native.mdc[24-28]
react-native-usercentrics.podspec[11-14]
ios/RNUsercentricsModule.xcodeproj/project.pbxproj[275-286]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
The Cursor rule `.cursor/rules/ios-native.mdc` states the minimum iOS deployment target is 16.0, but the repo’s podspec and Xcode project are configured for iOS 11.0. This mismatch can mislead AI-assisted edits to use APIs unavailable on supported targets.
## Issue Context
Source of truth is `react-native-usercentrics.podspec` (`s.platform = :ios, "11.0"`).
## Fix Focus Areas
- .cursor/rules/ios-native.mdc[24-28]
- react-native-usercentrics.podspec[11-14]

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools



Remediation recommended

3. Gradle files not indexed🐞 Bug ⛯ Reliability
Description
.cursorindexingignore excludes android/build.gradle.kts, android/settings.gradle.kts, and
android/gradle.properties as “Android generated”, but these are hand-maintained build
configuration. Excluding them reduces Cursor’s context for correct Android build/dependency/minSdk
changes and can reinforce wrong assumptions.
Code

.cursorindexingignore[R46-48]

+android/build.gradle.kts
+android/settings.gradle.kts
+android/gradle.properties
Evidence
The ignore list explicitly excludes core Android Gradle configuration files, and those files contain
real (non-generated) settings like Kotlin plugin version, repositories, and AndroidX
flags—indicating they should likely remain indexable for accurate assistance.

.cursorindexingignore[45-48]
android/settings.gradle.kts[1-10]
android/gradle.properties[1-5]
android/build.gradle.kts[21-29]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
`.cursorindexingignore` excludes core Android Gradle config files (`android/build.gradle.kts`, `android/settings.gradle.kts`, `android/gradle.properties`) under the label “Android generated”, but they contain hand-maintained configuration. Excluding them reduces Cursor’s ability to understand the Android build setup (minSdk, Kotlin plugin, repositories, AndroidX flags), increasing the likelihood of incorrect suggestions/edits.
## Issue Context
These files are part of the source-of-truth build configuration and are referenced when changing Android dependencies, minSdk/targetSdk, Kotlin plugin versions, and build behavior.
## Fix Focus Areas
- .cursorindexingignore[45-48]

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


Grey Divider

ⓘ The new review experience is currently in Beta. Learn more

Grey Divider

Qodo Logo

@coderabbitai
Copy link

coderabbitai bot commented Mar 2, 2026

📝 Walkthrough

Walkthrough

Adds a set of new Cursor rule and repo configuration files documenting native (Android/iOS), React Native, TypeScript, testing, CI, and security conventions, plus ignore/indexing patterns and a Ruby version pin for the sample app.

Changes

Cohort / File(s) Summary
Android Native Docs
​.cursor/rules/android-native.mdc
New doc describing Android native module conventions: Kotlin/Java layout, autogenerated JNI under src/main/jni/ (via scripts/generate-codegen-jni.js), coding/build targets (min SDK 24, Java 17, Gradle 8.13), and test guidance.
iOS Native Docs
​.cursor/rules/ios-native.mdc
New doc describing iOS native module conventions: Swift + ObjC++ bridge layout, bridging headers/codegen header, podspec location, minimum iOS target (11.0+), and test placement.
React Native & TypeScript Conventions
​.cursor/rules/react-native.mdc, ​.cursor/rules/typescript-conventions.mdc
New docs for RN bridge patterns, sample app integration, component/navigation patterns, TypeScript strict-mode rules, export enforcement (src/index.tsx), codegen notes, and JNI/codegen regeneration guidance.
Project & Cross-Platform Guidance
​.cursor/rules/project-overview.mdc, ​.cursor/rules/testing.mdc, ​.cursor/rules/security-snyk.mdc, ​.cursor/rules/ci-github-actions.mdc
New docs covering project architecture, testing strategies (Jest, XCTest, JUnit+MockK), Snyk/security policies, and GitHub Actions CI workflows (test-rn, test-ios, test-android, release).
Cursor Config / Indexing
​.cursorignore, ​.cursorindexingignore
New ignore/indexing rules listing patterns for dependencies, build outputs, generated files (codegen/JNI), lockfiles, IDE artifacts, legacy samples, and other files to exclude from Cursor tooling.
Sample App Config
sample/.ruby-version
Adds Ruby version pin 3.2.0 for the sample app environment.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Poem

🐰 I hopped through docs with cheer,
New rules and paths now crystal clear,
JNI, Swift, and TypeScript lines—
Ignore files tucked in tidy shrines,
Sample Ruby pinned, the hop is near.

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The pull request title 'feat(MSDK-3095): Added cursor AI rules' accurately describes the main change: adding cursor AI convention files covering project structure, TypeScript, native modules, testing, CI, and security guidance.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/MSDK-3095/create-cursor-ai-rules
📝 Coding Plan
  • Generate coding plan for human review comments

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@pantoaibot
Copy link

pantoaibot bot commented Mar 2, 2026

PR Summary:

Adds sample/.ruby-version specifying Ruby 3.2.0; no cursor AI rules or other code changes included.

  • Added file: sample/.ruby-version with content "3.2.0"
  • No structural, functional, logic, dependency, or performance changes in the diff
  • No breaking changes
  • Note: PR title mentions "cursor AI rules" but those changes are not present in this diff.

Reviewed by Panto AI

@codeant-ai codeant-ai bot added the size:L This PR changes 100-499 lines, ignoring generated files label Mar 2, 2026
@pantoaibot
Copy link

pantoaibot bot commented Mar 2, 2026

Reviewed up to commit:01567a06cef9181c86bc191a938b7190794992f7

Additional Suggestion
Others - Confirm this Ruby version is compatible with the sample project's native tooling (CocoaPods, fastlane, bundler) and with CI images. If you rely on a Gemfile/Gemfile.lock, ensure the Ruby version here matches any Ruby version specified there or document how contributors should select the Ruby version (rbenv/chruby/asdf). Consider adding the same .ruby-version at the repository root if CI and other parts of the repo need the same Ruby runtime.

Reviewed by Panto AI

@codeant-ai
Copy link

codeant-ai bot commented Mar 2, 2026

Nitpicks 🔍

🔒 No security issues identified
⚡ Recommended areas for review

  • Allowed keystore
    The rule explicitly allows debug.keystore (!debug.keystore). Verify that allowing this file in indexing is intended, since keystore files can contain sensitive keys.

  • Sensitive files
    This ignore list includes environment and credential patterns (.env, google-services.json, *.jks, *.keystore) — confirm these are intentionally excluded from the cursor index and that no alternate filenames (e.g., google-services-.json) will be missed or accidentally indexed.

  • Codegen script path
    The rule states JNI/C++ files are generated by scripts/generate-codegen-jni.js. Ensure the script path and name are correct and available in the repository (or clarify the location) so contributors don't look in the wrong place.

  • Default Branch
    The workflow description explicitly references master as the branch for PRs. Many repositories use main (or another branch). Confirm the repository's default branch and align documentation and workflow triggers to avoid confusion and incorrect CI triggers.

  • Platform Mismatch
    The "test-android" job is documented as running on macOS 14. Android native tests typically run on Linux runners (Ubuntu). Verify the actual runner used in workflows and ensure documentation correctly reflects the OS and any hardware/emulator constraints.

@codeant-ai
Copy link

codeant-ai bot commented Mar 2, 2026

CodeAnt AI finished reviewing your PR.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 4

🧹 Nitpick comments (1)
.cursorindexingignore (1)

35-37: Narrow indexing exclusions for core build/tooling files.

scripts/ and Android Gradle config files are core project inputs, not generated artifacts. Ignoring them can reduce rule quality and produce weaker AI suggestions around build/test workflows.

Suggested diff
 # === Script files (utility, not core logic) ===
-scripts/
-sample/scripts/
+# Keep scripts indexable (used by CI/conventions)
+# scripts/
+# sample/scripts/

 # === Android generated ===
-android/build.gradle.kts
-android/settings.gradle.kts
-android/gradle.properties
+# Keep root Android Gradle config indexable
+# android/build.gradle.kts
+# android/settings.gradle.kts
+# android/gradle.properties

Also applies to: 46-48

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In @.cursorindexingignore around lines 35 - 37, The .cursorindexingignore
currently excludes broad directories "scripts/" and "sample/scripts/" which
hides core build/tooling files; update the ignore rules to narrow the scope (for
example replace "scripts/" and "sample/scripts/" with more specific
generated-artifact patterns such as "scripts/generated/" or
"sample/scripts/generated/" or explicit filenames that are truly generated) or
remove those lines entirely so Android Gradle config and other build scripts
remain indexed; search for the exact strings "scripts/" and "sample/scripts/" in
the .cursorindexingignore and apply the narrower patterns or deletion.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In @.cursor/rules/ci-github-actions.mdc:
- Line 31: The guidance text currently conflates major-version tags with
immutable pins; update the wording around the `@v1`, `@v2`, `@v4` examples to
state that these are mutable tags (they can be moved by maintainers) and
therefore are not equivalent to commit SHA pins, and explicitly recommend using
full commit SHAs for security-critical actions while noting that major-version
tags are acceptable for convenience/non-critical uses; reference the
`@v1/@v2/@v4` tokens and recommend “use full commit SHA (immutable) for
security-sensitive actions” as the replacement phrasing.

In @.cursor/rules/security-snyk.mdc:
- Line 13: Update the guidance text that currently states "Prefer `^` ranges in
`package.json` to allow patch updates" to correctly describe semver: explain
that `^` allows minor and patch updates within the same major version (e.g.,
`^1.2.3` => >=1.2.3 <2.0.0) and that `~` allows patch-only updates within the
same minor version (e.g., `~1.2.3` => >=1.2.3 <1.3.0`), replacing the incorrect
sentence referencing the `^` operator; ensure the revised line mentions both `^`
and `~` operators and their respective update scopes.

In @.cursor/rules/testing.mdc:
- Around line 24-27: The documentation lists unit and instrumented tests but
only provides the unit test command; add an explicit instrumented-test command
for clarity by appending the connected Android instrumentation command (e.g.,
./gradlew :react-native-usercentrics:connectedAndroidTest) alongside the
existing unit test command (./gradlew :react-native-usercentrics:test), and
optionally mention assembleAndroidTest or installDebug and connectedAndroidTest
for CI/use cases so readers can run instrumented tests reliably.

In @.cursor/rules/typescript-conventions.mdc:
- Around line 28-30: The documentation incorrectly states that the TurboModule
spec uses codegenNativeComponent; update the sentence that currently lists both
TurboModuleRegistry and codegenNativeComponent to remove codegenNativeComponent
so it only references TurboModuleRegistry (keep reference to the TurboModule
spec file NativeUsercentricsModule.ts for context).

---

Nitpick comments:
In @.cursorindexingignore:
- Around line 35-37: The .cursorindexingignore currently excludes broad
directories "scripts/" and "sample/scripts/" which hides core build/tooling
files; update the ignore rules to narrow the scope (for example replace
"scripts/" and "sample/scripts/" with more specific generated-artifact patterns
such as "scripts/generated/" or "sample/scripts/generated/" or explicit
filenames that are truly generated) or remove those lines entirely so Android
Gradle config and other build scripts remain indexed; search for the exact
strings "scripts/" and "sample/scripts/" in the .cursorindexingignore and apply
the narrower patterns or deletion.

ℹ️ Review info

Configuration used: defaults

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between fe03af4 and 01567a0.

⛔ Files ignored due to path filters (1)
  • sample/Gemfile.lock is excluded by !**/*.lock
📒 Files selected for processing (11)
  • .cursor/rules/android-native.mdc
  • .cursor/rules/ci-github-actions.mdc
  • .cursor/rules/ios-native.mdc
  • .cursor/rules/project-overview.mdc
  • .cursor/rules/react-native.mdc
  • .cursor/rules/security-snyk.mdc
  • .cursor/rules/testing.mdc
  • .cursor/rules/typescript-conventions.mdc
  • .cursorignore
  • .cursorindexingignore
  • sample/.ruby-version

@codeant-ai
Copy link

codeant-ai bot commented Mar 12, 2026

CodeAnt AI is running Incremental review


Thanks for using CodeAnt! 🎉

We're free for open-source projects. if you're enjoying it, help us grow by sharing.

Share on X ·
Reddit ·
LinkedIn

@codeant-ai codeant-ai bot added size:L This PR changes 100-499 lines, ignoring generated files and removed size:L This PR changes 100-499 lines, ignoring generated files labels Mar 12, 2026
@codeant-ai
Copy link

codeant-ai bot commented Mar 12, 2026

Sequence Diagram

This PR introduces repository level Cursor rule files and indexing ignore lists so contributor assistance follows project conventions while avoiding noisy or sensitive files. It also pins the sample Ruby version to keep CocoaPods setup consistent across local development and CI.

sequenceDiagram
    participant Contributor
    participant CursorIDE
    participant RuleFiles
    participant Indexer
    participant CI

    Contributor->>CursorIDE: Open repository
    CursorIDE->>RuleFiles: Load project and platform conventions
    RuleFiles-->>CursorIDE: Return coding guidance
    CursorIDE->>Indexer: Apply indexing ignore configuration
    Indexer-->>CursorIDE: Exclude generated and sensitive files
    Contributor->>CI: Create pull request
    CI->>CI: Use pinned Ruby version for iOS setup
Loading

Generated by CodeAnt AI

@codeant-ai
Copy link

codeant-ai bot commented Mar 12, 2026

CodeAnt AI Incremental review completed.

Copy link
Collaborator

@uc-brunosilva uc-brunosilva left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tests are broken

@codeant-ai
Copy link

codeant-ai bot commented Mar 19, 2026

CodeAnt AI is running Incremental review


Thanks for using CodeAnt! 🎉

We're free for open-source projects. if you're enjoying it, help us grow by sharing.

Share on X ·
Reddit ·
LinkedIn

@codeant-ai codeant-ai bot added size:L This PR changes 100-499 lines, ignoring generated files and removed size:L This PR changes 100-499 lines, ignoring generated files labels Mar 19, 2026
@codeant-ai
Copy link

codeant-ai bot commented Mar 19, 2026

CodeAnt AI Incremental review completed.

@qodo-code-review
Copy link

CI Feedback 🧐

A test triggered by this PR failed. Here is an AI-generated analysis of the failure:

Action: test-ios

Failed stage: Run tests [❌]

Failed test name: ""

Failure summary:

The action failed during the iOS build step (Xcode exit code 65), so tests were cancelled because
the app could not compile.
- Swift compilation failed in ios/Manager/UsercentricsManager.swift due
to a missing type:
-
/Users/runner/work/react-native-sdk/react-native-sdk/ios/Manager/UsercentricsManager.swift:110:50:
cannot find type GppSectionChangePayload in scope
-
/Users/runner/work/react-native-sdk/react-native-sdk/ios/Manager/UsercentricsManager.swift:111:115:
cannot find type GppSectionChangePayload in scope
- This caused Command SwiftCompile failed with a
nonzero exit code and the failing build command:
- EmitSwiftModule normal arm64 (in target
'react-native-usercentrics' from project 'Pods')
Warnings about run script phases lacking output
files and duplicate build files were present but are not the build-breaking error.

Relevant error logs:
1:  ##[group]Runner Image Provisioner
2:  Hosted Compute Agent
...

961:  Installing React-RCTText (0.81.4)
962:  Installing React-RCTVibration (0.81.4)
963:  Installing React-RuntimeApple (0.81.4)
964:  Installing React-RuntimeCore (0.81.4)
965:  Installing React-RuntimeHermes (0.81.4)
966:  Installing React-callinvoker (0.81.4)
967:  Installing React-cxxreact (0.81.4)
968:  Installing React-debug (0.81.4)
969:  Installing React-defaultsnativemodule (0.81.4)
970:  Installing React-domnativemodule (0.81.4)
971:  Installing React-featureflags (0.81.4)
972:  Installing React-featureflagsnativemodule (0.81.4)
973:  Installing React-graphics (0.81.4)
974:  Installing React-hermes (0.81.4)
975:  Installing React-idlecallbacksnativemodule (0.81.4)
976:  Installing React-jserrorhandler (0.81.4)
977:  Installing React-jsi (0.81.4)
...

1284:  ▸ Copying ExecutionContextManager.h
1285:  ▸ Copying ExecutionContext.h
1286:  ▸ Copying ConsoleMessage.h
1287:  ▸ Copying Base64.h
1288:  ▸ Copying React-jsiexecutor-umbrella.h
1289:  ▸ Copying JSINativeModules.h
1290:  ▸ Copying JSIExecutor.h
1291:  ▸ Copying threadsafe.h
1292:  ▸ Copying jsilib.h
1293:  ▸ Copying jsi.h
1294:  ▸ Copying jsi-inl.h
1295:  ▸ Copying instrumentation.h
1296:  ▸ Copying decorator.h
1297:  ▸ Copying React-jsi-umbrella.h
1298:  ▸ Copying JSIDynamic.h
1299:  ▸ Copying React-jserrorhandler-umbrella.h
1300:  ▸ Copying React-idlecallbacksnativemodule-umbrella.h
1301:  ▸ Copying React-hermes-umbrella.h
1302:  ▸ Copying HermesExecutorFactory.h
1303:  ▸ Copying React-graphics-umbrella.h
1304:  ▸ Copying React-featureflagsnativemodule-umbrella.h
1305:  ▸ Copying React-featureflags-umbrella.h
1306:  ▸ Copying React-domnativemodule-umbrella.h
1307:  ▸ Copying React-defaultsnativemodule-umbrella.h
1308:  ▸ Copying React-debug-umbrella.h
1309:  ▸ Copying TraceSection.h
1310:  ▸ Copying SystraceSection.h
1311:  ▸ Copying SharedProxyCxxModule.h
1312:  ▸ Copying RecoverableError.h
1313:  ▸ Copying ReactNativeVersion.h
...

1316:  ▸ Copying RAMBundleRegistry.h
1317:  ▸ Copying NativeToJsBridge.h
1318:  ▸ Copying NativeModule.h
1319:  ▸ Copying MoveWrapper.h
1320:  ▸ Copying ModuleRegistry.h
1321:  ▸ Copying MethodCall.h
1322:  ▸ Copying MessageQueueThread.h
1323:  ▸ Copying JsArgumentHelpers.h
1324:  ▸ Copying JsArgumentHelpers-inl.h
1325:  ▸ Copying JSModulesUnbundle.h
1326:  ▸ Copying JSIndexedRAMBundle.h
1327:  ▸ Copying JSExecutor.h
1328:  ▸ Copying JSBundleType.h
1329:  ▸ Copying JSBigString.h
1330:  ▸ Copying Instance.h
1331:  ▸ Copying ErrorUtils.h
1332:  ▸ Copying CxxNativeModule.h
...

1675:  ▸ Copying RCTI18nUtil.h
1676:  ▸ Copying RCTI18nManager.h
1677:  ▸ Copying RCTHTTPRequestHandler.h
1678:  ▸ Copying RCTGIFImageDecoder.h
1679:  ▸ Copying RCTFrameUpdate.h
1680:  ▸ Copying RCTFrameAnimation.h
1681:  ▸ Copying RCTFont.h
1682:  ▸ Copying RCTFileRequestHandler.h
1683:  ▸ Copying RCTFileReaderModule.h
1684:  ▸ Copying RCTFPSGraph.h
1685:  ▸ Copying RCTExceptionsManager.h
1686:  ▸ Copying RCTEventEmitter.h
1687:  ▸ Copying RCTEventDispatcherProtocol.h
1688:  ▸ Copying RCTEventDispatcher.h
1689:  ▸ Copying RCTEventAnimation.h
1690:  ▸ Copying RCTErrorInfo.h
1691:  ▸ Copying RCTErrorCustomizer.h
1692:  ▸ Copying RCTDynamicTypeRamp.h
...

1842:  ▸ Compiling SocketRocket-dummy.m
1843:  ▸ Compiling SRWebSocket.m
1844:  ▸ Compiling SRURLUtilities.m
1845:  ▸ Compiling SRSecurityPolicy.m
1846:  ▸ Compiling SRSIMDHelpers.m
1847:  ▸ Compiling SRRunLoopThread.m
1848:  ▸ Compiling SRRandom.m
1849:  ▸ Compiling SRProxyConnect.m
1850:  ▸ Compiling SRPinningSecurityPolicy.m
1851:  ▸ Compiling SRMutex.m
1852:  ▸ Compiling SRLog.m
1853:  ▸ Compiling SRIOConsumerPool.m
1854:  ▸ Compiling SRIOConsumer.m
1855:  ▸ Compiling SRHash.m
1856:  ▸ Compiling SRHTTPConnectMessage.m
1857:  ▸ Compiling SRError.m
1858:  ▸ Compiling SRDelegateController.m
...

2161:  ▸ Compiling RNCSafeAreaViewManager.m
2162:  ▸ Compiling RNCSafeAreaViewLocalData.m
2163:  ▸ Compiling RNCSafeAreaViewEdges.m
2164:  ▸ Compiling RNCSafeAreaViewEdgeMode.m
2165:  ▸ Compiling RNCSafeAreaView.m
2166:  ▸ Compiling RNCSafeAreaUtils.m
2167:  ▸ Compiling RNCSafeAreaShadowView.m
2168:  ▸ Compiling RNCSafeAreaProviderManager.m
2169:  ▸ Compiling RNCSafeAreaProvider.m
2170:  ▸ Compiling RNCOnInsetsChangeEvent.m
2171:  ▸ Compiling RCTText_vers.c
2172:  ▸ Compiling React-RCTText-dummy.m
2173:  ▸ Running script 'Create Symlinks to Header Folders'
2174:  ▸ Touching ReactCommon.framework (in target 'ReactCommon' from project 'Pods')
2175:  ▸ Processing React-Core-Info.plist
2176:  ▸ Processing React-jserrorhandler-Info.plist
2177:  ▸ Compiling StackTraceParser.cpp
2178:  ▸ Compiling JsErrorHandler.cpp
2179:  ▸ Compiling NSTextStorage+FontScaling.m
2180:  ▸ Compiling React_jserrorhandler_vers.c
2181:  ▸ Touching React_graphics.framework (in target 'React-graphics' from project 'Pods')
2182:  ▸ Compiling React-jserrorhandler-dummy.m
2183:  ▸ Compiling RCTUtils.mm
...

2272:  ▸ Compiling React-Core-dummy.m
2273:  ▸ Compiling RCTModalHostViewManager.m
2274:  ▸ Compiling RCTModalHostViewController.m
2275:  ▸ Compiling RCTModalHostView.m
2276:  ▸ Compiling RCTLayoutAnimationGroup.m
2277:  ▸ Compiling RCTLayoutAnimation.m
2278:  ▸ Compiling RCTLayout.m
2279:  ▸ Compiling RCTKeyCommands.m
2280:  ▸ Compiling RCTJSThread.m
2281:  ▸ Compiling RCTJSStackFrame.m
2282:  ▸ Compiling RCTImageSource.m
2283:  ▸ Compiling RCTI18nUtil.m
2284:  ▸ Compiling RCTFrameUpdate.m
2285:  ▸ Compiling RCTEventEmitter.m
2286:  ▸ Compiling RCTEventDispatcher.m
2287:  ▸ Compiling RCTErrorInfo.m
2288:  ▸ Compiling RCTDisplayLink.m
...

2294:  ▸ Compiling RCTConstants.m
2295:  ▸ Compiling RCTComponentEvent.m
2296:  ▸ Compiling RCTCallableJSModules.m
2297:  ▸ Compiling RCTConvert+CoreLocation.m
2298:  ▸ Compiling RCTBundleManager.m
2299:  ▸ Compiling RCTBridgeModuleDecorator.m
2300:  ▸ Compiling RCTBridgeConstants.m
2301:  ▸ Compiling RCTBorderDrawing.m
2302:  ▸ Compiling RCTAssert.m
2303:  ▸ Compiling RCTActivityIndicatorView.m
2304:  ▸ Compiling RCTActivityIndicatorViewManager.m
2305:  ▸ Running script 'Create Symlinks to Header Folders'
2306:  ▸ Compiling RCTTypedModuleConstants.mm
2307:  ▸ Compiling RCTConvertHelpers.mm
2308:  ▸ Compiling RCTTypeSafety_vers.c
2309:  ▸ Touching React_jserrorhandler.framework (in target 'React-jserrorhandler' from project 'Pods')
2310:  ▸ Touching React.framework (in target 'React-Core' from project 'Pods')
...

2785:  private var gppSectionChangeSubscription: UsercentricsDisposableEvent<GppSectionChangePayload>?
2786:  ^~~~~~~~~~~~~~~~~~~~~~~
2787:  ❌  /Users/runner/work/react-native-sdk/react-native-sdk/ios/Manager/UsercentricsManager.swift:111:115: cannot find type 'GppSectionChangePayload' in scope
2788:  func onGppSectionChange(callback: @escaping (GppSectionChangePayload) -> Void) -> UsercentricsDisposableEvent<GppSectionChangePayload> {
2789:  ^~~~~~~~~~~~~~~~~~~~~~~
2790:  ❌  /Users/runner/work/react-native-sdk/react-native-sdk/ios/Manager/UsercentricsManager.swift:111:50: cannot find type 'GppSectionChangePayload' in scope
2791:  func onGppSectionChange(callback: @escaping (GppSectionChangePayload) -> Void) -> UsercentricsDisposableEvent<GppSectionChangePayload> {
2792:  ^~~~~~~~~~~~~~~~~~~~~~~
2793:  ▸ Compiling ReactAppDependencyProvider_vers.c
2794:  ▸ Compiling RNCWebViewImpl.m
2795:  ▸ Compiling RNCWebViewDecisionManager.m
2796:  ▸ Compiling RNCWKProcessPoolManager.m
2797:  ▸ Compiling RCTConvert+WKDataDetectorTypes.m
2798:  Run script build phase '[CP-User] [Hermes] Replace Hermes for the right configuration, if needed' will be run during every build because it does not specify any outputs. To address this issue, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'hermes-engine' from project 'Pods')
2799:  Run script build phase 'Bundle React Native code and images' will be run during every build because it does not specify any outputs. To address this issue, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'sample' from project 'sample')
2800:  Testing failed:
2801:  Run script build phase 'Create Symlinks to Header Folders' will be run during every build because it does not specify any outputs. To address this issue, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'fmt' from project 'Pods')
2802:  Cannot find type 'GppSectionChangePayload' in scope
2803:  Skipping duplicate build file in Copy Headers build phase: /Users/runner/work/react-native-sdk/react-native-sdk/sample/node_modules/react-native/ReactCommon/yoga/yoga/enums/Align.h (in target 'Yoga' from project 'Pods')
2804:  Cannot find type 'GppSectionChangePayload' in scope
2805:  Skipping duplicate build file in Copy Headers build phase: /Users/runner/work/react-native-sdk/react-native-sdk/sample/node_modules/react-native/ReactCommon/yoga/yoga/enums/FlexDirection.h (in target 'Yoga' from project 'Pods')
2806:  Cannot find type 'GppSectionChangePayload' in scope
2807:  Run script build phase 'Create Symlinks to Header Folders' will be run during every build because it does not specify any outputs. To address this issue, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'Yoga' from project 'Pods')
2808:  Cannot find type 'GppSectionChangePayload' in scope
2809:  Run script build phase 'Create Symlinks to Header Folders' will be run during every build because it does not specify any outputs. To address this issue, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'ReactCommon' from project 'Pods')
2810:  Cannot find type 'GppSectionChangePayload' in scope
2811:  Skipping duplicate build file in Copy Headers build phase: /Users/runner/work/react-native-sdk/react-native-sdk/sample/ios/build/generated/ios/react/renderer/components/safeareacontext/ComponentDescriptors.h (in target 'ReactCodegen' from project 'Pods')
2812:  Cannot find type 'GppSectionChangePayload' in scope
2813:  Command SwiftCompile failed with a nonzero exit code
2814:  Testing cancelled because the build failed.
2815:  ** TEST FAILED **
2816:  The following build commands failed:
2817:  EmitSwiftModule normal arm64 (in target 'react-native-usercentrics' from project 'Pods')
...

2850:  Skipping duplicate build file in Compile Sources build phase: /Users/runner/work/react-native-sdk/react-native-sdk/sample/ios/build/generated/ios/react/renderer/components/safeareacontext/States.cpp (in target 'ReactCodegen' from project 'Pods')
2851:  Skipping duplicate build file in Compile Sources build phase: /Users/runner/work/react-native-sdk/react-native-sdk/sample/ios/build/generated/ios/react/renderer/components/safeareacontext/States.cpp (in target 'ReactCodegen' from project 'Pods')
2852:  Run script build phase 'Create Symlinks to Header Folders' will be run during every build because it does not specify any outputs. To address this issue, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'ReactCodegen' from project 'Pods')
2853:  Run script build phase 'Create Symlinks to Header Folders' will be run during every build because it does not specify any outputs. To address this issue, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'React-utils' from project 'Pods')
2854:  Run script build phase 'Create Symlinks to Header Folders' will be run during every build because it does not specify any outputs. To address this issue, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'React-runtimescheduler' from project 'Pods')
2855:  Run script build phase 'Create Symlinks to Header Folders' will be run during every build because it does not specify any outputs. To address this issue, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'React-runtimeexecutor' from project 'Pods')
2856:  Run script build phase 'Create Symlinks to Header Folders' will be run during every build because it does not specify any outputs. To address this issue, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'React-rendererdebug' from project 'Pods')
2857:  Run script build phase 'Create Symlinks to Header Folders' will be run during every build because it does not specify any outputs. To address this issue, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'React-renderercss' from project 'Pods')
2858:  Run script build phase 'Create Symlinks to Header Folders' will be run during every build because it does not specify any outputs. To address this issue, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'React-rendererconsistency' from project 'Pods')
2859:  Run script build phase 'Create Symlinks to Header Folders' will be run during every build because it does not specify any outputs. To address this issue, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'React-performancetimeline' from project 'Pods')
2860:  Run script build phase 'Create Symlinks to Header Folders' will be run during every build because it does not specify any outputs. To address this issue, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'React-microtasksnativemodule' from project 'Pods')
2861:  Run script build phase 'Create Symlinks to Header Folders' will be run during every build because it does not specify any outputs. To address this issue, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'React-jsitooling' from project 'Pods')
2862:  Run script build phase 'Create Symlinks to Header Folders' will be run during every build because it does not specify any outputs. To address this issue, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'React-jsinspectortracing' from project 'Pods')
2863:  Run script build phase 'Create Symlinks to Header Folders' will be run during every build because it does not specify any outputs. To address this issue, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'React-jsinspectornetwork' from project 'Pods')
2864:  Run script build phase 'Create Symlinks to Header Folders' will be run during every build because it does not specify any outputs. To address this issue, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'React-jsinspectorcdp' from project 'Pods')
2865:  Run script build phase 'Create Symlinks to Header Folders' will be run during every build because it does not specify any outputs. To address this issue, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'React-jserrorhandler' from project 'Pods')
2866:  Run script build phase 'Create Symlinks to Header Folders' will be run during every build because it does not specify any outputs. To address this issue, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'React-idlecallbacksnativemodule' from project 'Pods')
...

2871:  Run script build phase 'Create Symlinks to Header Folders' will be run during every build because it does not specify any outputs. To address this issue, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'React-defaultsnativemodule' from project 'Pods')
2872:  Run script build phase 'Create Symlinks to Header Folders' will be run during every build because it does not specify any outputs. To address this issue, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'React-debug' from project 'Pods')
2873:  Run script build phase 'Create Symlinks to Header Folders' will be run during every build because it does not specify any outputs. To address this issue, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'React-RuntimeHermes' from project 'Pods')
2874:  Run script build phase 'Create Symlinks to Header Folders' will be run during every build because it does not specify any outputs. To address this issue, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'React-RuntimeCore' from project 'Pods')
2875:  Run script build phase 'Create Symlinks to Header Folders' will be run during every build because it does not specify any outputs. To address this issue, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'React-RuntimeApple' from project 'Pods')
2876:  Run script build phase 'Create Symlinks to Header Folders' will be run during every build because it does not specify any outputs. To address this issue, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'React-RCTRuntime' from project 'Pods')
2877:  Run script build phase 'Create Symlinks to Header Folders' will be run during every build because it does not specify any outputs. To address this issue, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'React-RCTFBReactNativeSpec' from project 'Pods')
2878:  Run script build phase 'Create Symlinks to Header Folders' will be run during every build because it does not specify any outputs. To address this issue, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'React-NativeModulesApple' from project 'Pods')
2879:  Run script build phase 'Create Symlinks to Header Folders' will be run during every build because it does not specify any outputs. To address this issue, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'React-Mapbuffer' from project 'Pods')
2880:  Run script build phase 'Create Symlinks to Header Folders' will be run during every build because it does not specify any outputs. To address this issue, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'React-ImageManager' from project 'Pods')
2881:  Run script build phase 'Create Symlinks to Header Folders' will be run during every build because it does not specify any outputs. To address this issue, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'React-FabricImage' from project 'Pods')
2882:  Run script build phase 'Create Symlinks to Header Folders' will be run during every build because it does not specify any outputs. To address this issue, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'React-FabricComponents' from project 'Pods')
2883:  Run script build phase 'Create Symlinks to Header Folders' will be run during every build because it does not specify any outputs. To address this issue, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'React-Fabric' from project 'Pods')
2884:  Run script build phase 'Create Symlinks to Header Folders' will be run during every build because it does not specify any outputs. To address this issue, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'RCT-Folly' from project 'Pods')
2885:  Testing workspace sample with scheme sample
2886:  (4 failures)
2887:  ##[error]Process completed with exit code 65.
2888:  ##[group]Run actions/upload-artifact@v4

@uc-brunosilva uc-brunosilva merged commit a3f7a22 into master Mar 19, 2026
2 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:L This PR changes 100-499 lines, ignoring generated files

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants