Skip to content

fix: renamed xcuitest bundle identifier#32

Open
gmegidish wants to merge 3 commits intomainfrom
fix/runner-app-name
Open

fix: renamed xcuitest bundle identifier#32
gmegidish wants to merge 3 commits intomainfrom
fix/runner-app-name

Conversation

@gmegidish
Copy link
Copy Markdown
Member

No description provided.

@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Apr 15, 2026

Warning

Rate limit exceeded

@gmegidish has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 2 minutes and 25 seconds before requesting another review.

Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 2 minutes and 25 seconds.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: cdb2badb-9950-4e91-9b58-a4e1c01c41fb

📥 Commits

Reviewing files that changed from the base of the PR and between cfde58f and 22cb9f5.

📒 Files selected for processing (1)
  • DeviceKit/View/BroadcastStarterView.swift

Walkthrough

This pull request refactors the UI test target naming convention and related build configuration. The UI test target name changed from devicekit-iosUITests to devicekit-ios-uitests across the Makefile, Xcode project file, build schemes, and patch script. Associated bundle identifiers were simplified by removing the hyphen in the main bundle identifier (e.g., com.mobilenext.devicekit-ios to com.mobilenext.devicekit). Code signing settings were updated from Automatic to Manual, and the development team identifier was cleared. A new TEST_TARGET build variable was introduced to consolidate runner app path references.

🚥 Pre-merge checks | ✅ 2 | ❌ 1

❌ Failed checks (1 inconclusive)

Check name Status Explanation Resolution
Description check ❓ Inconclusive No description was provided by the author, making it impossible to assess if it relates to the changeset. Add a description explaining the reason for renaming the bundle identifier and any impacts on the build or test process.
✅ Passed checks (2 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly summarizes the main change: renaming the xcuitest bundle identifier across Makefile, Xcode project, scheme, and build scripts.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

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

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/runner-app-name

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

Copy link
Copy Markdown

@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: 2

🧹 Nitpick comments (1)
scripts/patch-runner.sh (1)

10-10: Make the runner bundle name an input instead of hardcoding it here.

TEST_TARGET is now centralized in Makefile, but this line leaves one more copy of the runner name behind. Passing the runner app name/path into the script would keep the Makefile as the single source of truth and avoid another drift on the next rename.

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

In `@scripts/patch-runner.sh` at line 10, Change RUNNER_APP to be derived from an
input (positional argument or environment variable) instead of the hardcoded
name: read a runner-app argument (or $RUNNER_APP_INPUT) and set RUNNER_APP to
that value if provided, otherwise fall back to the existing construction using
RUNNER_DIR; update callers (Makefile) to pass TEST_TARGET (or the runner path)
into the script so the Makefile remains the single source of truth. Ensure the
script still uses the RUNNER_DIR fallback when no input is provided and keep the
variable name RUNNER_APP unchanged for downstream usage.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@devicekit-ios.xcodeproj/project.pbxproj`:
- Line 940: The project renamed the broadcast extension bundle ID to
com.mobilenext.devicekit.BroadcastUploadExtension but the extension lookup in
DeviceKit/View/BroadcastStarterView.swift still uses the old hardcoded string
"com.mobilenext.devicekit-ios.BroadcastUploadExtension"; update that hardcoded
identifier in BroadcastStarterView.swift to the new bundle ID everywhere it
appears (both occurrences flagged) so the app can find the renamed
BroadcastUploadExtension; verify any other code that references the old string
is similarly updated.

---

Nitpick comments:
In `@scripts/patch-runner.sh`:
- Line 10: Change RUNNER_APP to be derived from an input (positional argument or
environment variable) instead of the hardcoded name: read a runner-app argument
(or $RUNNER_APP_INPUT) and set RUNNER_APP to that value if provided, otherwise
fall back to the existing construction using RUNNER_DIR; update callers
(Makefile) to pass TEST_TARGET (or the runner path) into the script so the
Makefile remains the single source of truth. Ensure the script still uses the
RUNNER_DIR fallback when no input is provided and keep the variable name
RUNNER_APP unchanged for downstream usage.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: ccd49cd2-6282-440c-a323-a662c8065e1f

📥 Commits

Reviewing files that changed from the base of the PR and between 4735bdd and cfde58f.

📒 Files selected for processing (4)
  • Makefile
  • devicekit-ios.xcodeproj/project.pbxproj
  • devicekit-ios.xcodeproj/xcshareddata/xcschemes/devicekit-ios.xcscheme
  • scripts/patch-runner.sh

);
MARKETING_VERSION = 1.0;
PRODUCT_BUNDLE_IDENTIFIER = "com.mobilenext.devicekit-ios";
PRODUCT_BUNDLE_IDENTIFIER = com.mobilenext.devicekit;
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🔴 Critical

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail

echo "Bundle identifiers defined in the Xcode project:"
rg -n 'PRODUCT_BUNDLE_IDENTIFIER = ' devicekit-ios.xcodeproj/project.pbxproj

echo
echo "Places where both the host app and runner app are installed or packaged together:"
rg -n '\$\(SCHEME\)\.app|\$\(TEST_TARGET\)-Runner\.app' Makefile

Repository: mobile-next/devicekit-ios

Length of output: 1538


🏁 Script executed:

fd -t f 'BroadcastStarterView.swift' --exec cat -n {} \;

Repository: mobile-next/devicekit-ios

Length of output: 1635


Keep the UI test runner bundle identifier distinct from the app, and update the hardcoded broadcast extension identifier.

The app target and the UI test target both resolve to com.mobilenext.devicekit (lines 800/858). Since both are installed together via xcrun simctl install (Makefile:110), they will contend for the same bundle identifier. The UI test target needs its own unique identifier, e.g., with a .uitests suffix.

Additionally, BroadcastStarterView.swift:6 hardcodes com.mobilenext.devicekit-ios.BroadcastUploadExtension, but the project now defines the broadcast extension as com.mobilenext.devicekit.BroadcastUploadExtension (lines 940, 991). This mismatch will cause the broadcast picker to fail at runtime.

Comment thread devicekit-ios.xcodeproj/project.pbxproj
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