Skip to content

Conversation

@thymikee
Copy link
Contributor

@thymikee thymikee commented Oct 1, 2025

Summary

When the iOS project's scheme has non-app target included and it's ordered as first on the list, our current logic would fail and make you use --target flag to fix it.
What we can do, however, is filtering for app or framework (for brownfield case) WRAPPER_EXTENSION first, and avoid processing unrelated targets (which we had some logic before for "React" or "React-Core" included in older RN versions).

Ported from react-native-community/cli#2707

Also sneaked in better error messages for when Cocoapods fail

Test plan

Add a static library target, convert it to a group (for CocoaPods) and update scheme to list it first
image

  • run:ios works
  • package:ios works

@changeset-bot
Copy link

changeset-bot bot commented Oct 1, 2025

🦋 Changeset detected

Latest commit: 75a2630

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 13 packages
Name Type
@rock-js/platform-apple-helpers Patch
@rock-js/config Patch
@rock-js/platform-android Patch
@rock-js/platform-ios Patch
@rock-js/plugin-brownfield-android Patch
@rock-js/plugin-brownfield-ios Patch
@rock-js/plugin-metro Patch
@rock-js/plugin-repack Patch
@rock-js/provider-github Patch
@rock-js/provider-s3 Patch
@rock-js/test-helpers Patch
@rock-js/tools Patch
@rock-js/welcome-screen Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vercel
Copy link

vercel bot commented Oct 1, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Preview Comments Updated (UTC)
rock Ignored Ignored Preview Oct 1, 2025 2:54pm

@thymikee thymikee merged commit 2dbae42 into main Oct 1, 2025
5 checks passed
@thymikee thymikee deleted the fix/non-app-target-ios branch October 1, 2025 15:41
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.

2 participants