Skip to content

Link Firebase Analytics into the iOS and tvOS apps with -ObjC - #237

Open
pappz wants to merge 1 commit into
mainfrom
fix/link-firebase-analytics
Open

pappz wants to merge 1 commit into
mainfrom
fix/link-firebase-analytics

Conversation

@pappz

@pappz pappz commented Sep 29, 2026 •

Copy link
Copy Markdown
Contributor

Description

FirebaseAnalytics and GoogleAppMeasurement ship as static frameworks and nothing in the app references their symbols, so the linker dropped every Analytics object file. FirebaseCore then found no FIRAnalytics class at runtime and never started Analytics, while Crashlytics and Performance kept working. Firebase's Swift Package Manager guide requires -ObjC for Analytics; add it to the NetBird and NetBird TV targets.

Summary by CodeRabbit

  • Chores
    • Updated the build configuration for the iOS and tvOS apps. This behind-the-scenes change does not alter available features, screens, or user workflows. No new user-facing capabilities or visible changes are included; existing app behavior remains unchanged on both platforms. Users can continue using the apps as before.

FirebaseAnalytics and GoogleAppMeasurement ship as static frameworks and
nothing in the app references their symbols, so the linker dropped every
Analytics object file. FirebaseCore then found no FIRAnalytics class at
runtime and never started Analytics, while Crashlytics and Performance
kept working. Firebase's Swift Package Manager guide requires -ObjC for
Analytics; add it to the NetBird and NetBird TV targets.
@coderabbitai

coderabbitai Bot commented Sep 29, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

Navigate logical layers of code changes, visualize relationships, and explore their blast radius.

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Advanced

Run ID: 3f313fc7-22c8-4747-a41b-5e99322eb368

📥 Commits

Reviewing files that changed from the base of the PR and between e05e267 and aa260e2.

📒 Files selected for processing (1)
  • NetBird.xcodeproj/project.pbxproj

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.


📝 Walkthrough

Walkthrough

The project now sets OTHER_LDFLAGS to -ObjC in the Debug and Release configurations for the iOS and TV apps.

Changes

App linker settings

Layer / File(s) Summary
Set linker flags
NetBird.xcodeproj/project.pbxproj
The iOS and TV app Debug and Release configurations now set OTHER_LDFLAGS to -ObjC.

Priority: ⬇️ Low

Estimated code review effort: 1 (Trivial) | ~4 minutes

Change: Bug fix

Suggested reviewers: evgeniychepelev

Merge Risk: ⚪ Minimal · up to aa260

The iOS and tvOS app configurations now pass -ObjC, with no repository-supplied linker flags lost; no material merge risk is established.

Security Architecture Review

Security architecture risk: 🟡 Moderate · up to aa260

Both apps may begin using Analytics where it was previously inactive. The inspected startup path does not establish a consent gate, and the production Firebase configuration is unavailable, so collection behavior needs confirmation before rollout.

Retained concerns

  • Medium · security · inferred: Making Analytics linkable in both apps may permit collection at startup without a demonstrated consent or collection-disablement gate. This is conditional on the production Firebase configuration and SDK behavior, neither of which was available for verification.
Security review details

Security Blast Radius

  • inferred — If production builds bundle valid Firebase configuration and Analytics starts, the potential exposure spans launches of both app targets. The changed flag does not target the network extensions.

Trust Boundaries and Controls

  • inferred — Linking Analytics may make the existing Firebase startup path a route to third-party telemetry. The inspected startup checks are not a consent check; whether data crosses that boundary remains unverified.

Hardening Proposals

  • proposed — Verify collection, identifiers, and transmission in production-equivalent builds of both apps. If consent or opt-out is required, establish collection controls before startup and verify their effect on retained SDK state and relaunch.
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly identifies the main change: linking Firebase Analytics into the iOS and tvOS apps by adding -ObjC.
Description check ✅ Passed The description uses the required Description section and explains the linker issue, runtime impact, affected targets, and reason for the -ObjC change.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR

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

A rabbit checks the linker line,
Four settings match and all align.
Debug and Release join the show,
For iOS and TV, flags now flow.
The rabbit hops beneath the moon,
And nibbles clover to the tune.

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

@pappz

pappz commented Sep 29, 2026

Copy link
Copy Markdown
Contributor Author

/testflight

@github-actions

Copy link
Copy Markdown

TestFlight builds uploaded 0.4.2 (2) for aa260e2 — iOS + tvOS

View workflow run

@pappz

pappz commented Sep 29, 2026

Copy link
Copy Markdown
Contributor Author

/testflight

@github-actions

Copy link
Copy Markdown

TestFlight builds uploaded 0.4.2 (2) for aa260e2 — iOS + tvOS

View workflow run

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant